.xp-selection-actions {
    position: absolute;
    z-index: 2;
    inset: 8px 8px auto auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.xp-selection-legacy { position: relative; }
.xp-selection-toggle, .xp-selection-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d9dce0;
    border-radius: 6px;
    background: #fff;
    color: #20262d;
    cursor: pointer;
    flex: 0 0 auto;
}
.xp-selection-toggle:hover, .xp-selection-link:hover, .xp-selection-link[aria-current="page"] {
    border-color: #ed1232;
    background: #fff0f3;
}
.xp-selection-toggle[aria-pressed="true"] { border-color: #ed1232; background: #ed1232; }
.xp-selection-toggle img, .xp-selection-link img {
    display: block;
    margin: 0;
    width: 20px;
    height: 20px;
    filter: brightness(0);
}
.xp-selection-toggle[aria-pressed="true"] img { filter: brightness(0) invert(1); }
.xp-product-title-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.xp-product-title-actions .xp-selection-actions { position: static; flex-direction: row; gap: 8px; }
.xp-product-title-actions .xp-selection-toggle { width: 44px; height: 44px; }
.xp-selection-toggle:focus-visible, .xp-selection-link:focus-visible,
.xp-selection-page button:focus-visible, .xp-selection-scroll:focus-visible {
    outline: 2px solid #155798;
    outline-offset: 2px;
}
.xp-selection-header-actions, .xp-selection-links { display: flex; align-items: center; gap: 8px; }
.xp-selection-header-actions .shell-header-cart { flex: 1 0 110px; }
.xp-selection-link[hidden], .xp-selection-links[hidden], .xp-selection-page [hidden],
.xp-selection-notice[hidden] { display: none !important; }
.site-header.site-header--image .shell-desktop-controls:has(.xp-selection-links:not([hidden])) {
    grid-template-columns: 176px minmax(0, 1fr) max-content;
}
.xp-selection-count {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #ed1232;
    color: #fff;
    text-align: center;
    font: 700 10px/15px 'Fira Sans', sans-serif;
}
.xp-selection-notice {
    position: fixed;
    z-index: 80;
    right: 24px;
    bottom: 24px;
    max-width: min(340px, calc(100vw - 48px));
    padding: 12px 16px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    color: #20262d;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 6px 24px rgb(30 35 41 / 15%);
}
.xp-selection-page { min-width: 0; min-height: 310px; padding-top: 28px; padding-bottom: 52px; color: #20262d; }
.xp-selection-page.xp-selection-favorites { color: var(--xp-card-ink, #242424); }
.xp-selection-document > .xp-selection-compare { min-height: 0; padding-bottom: 0; }
.xp-selection-document > .blue-form { --blue: var(--home-blue, #0e55a0); }
.xp-selection-document > .blue-form .blue-form_input-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.xp-selection-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.xp-selection-page h1 { font-size: 38px; line-height: 1.14; margin: 0; overflow-wrap: anywhere; }
.xp-selection-catalog-link { color: #155798; text-decoration: underline; text-underline-offset: 3px; }
.xp-selection-status { margin: 12px 0; color: #535f6c; }
.xp-selection-status:empty { display: none; }
.xp-selection-filter { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 4px; border: 1px solid #e2e5e9; border-radius: 6px; background: #f5f6f8; }
.xp-selection-filter button, .xp-selection-remove, .xp-selection-pager button {
    color: #20262d;
    background: #fff;
    border: 1px solid #d9dce0;
    border-radius: 5px;
    cursor: pointer;
    min-height: 36px;
    padding: 5px 10px;
    font: inherit;
    font-size: 14px;
}
.xp-selection-filter button { border-color: transparent; background: transparent; }
.xp-selection-filter button[aria-pressed="true"] { background: #fff; border-color: #d9dce0; color: #155798; font-weight: 700; }
.xp-selection-remove:hover, .xp-selection-pager button:not(:disabled):hover { color: #c2102b; border-color: #ed1232; }
.xp-selection-scroll { overflow-x: auto; border: 1px solid #e1e5e9; border-radius: 6px; margin-top: 16px; }
.xp-selection-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.xp-selection-table th, .xp-selection-table td { min-width: 172px; max-width: 250px; border-bottom: 1px solid #e1e5e9; padding: 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.xp-selection-table th + th, .xp-selection-table td { border-left: 1px solid #e1e5e9; }
.xp-selection-table thead th { background: #fff; }
.xp-selection-table th:first-child { position: sticky; left: 0; z-index: 1; width: 162px; min-width: 162px; max-width: 162px; background: #f4f6f8; font-weight: 600; }
.xp-selection-table tbody td { background: #fff; }
.xp-selection-table tbody tr:nth-child(even) td { background: #f8fafb; }
.xp-selection-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.xp-selection-model { display: grid; grid-template-rows: 112px auto auto auto auto; justify-items: start; width: clamp(148px, 14vw, 205px); gap: 7px; }
.xp-selection-model-image { width: 100%; height: 112px; grid-row: 1; object-fit: contain; }
.xp-selection-model-name { grid-row: 2; font-weight: 700; min-width: 0; }
.xp-selection-model-price { font-weight: 700; }
.xp-selection-stock { font-size: 12px; font-weight: 400; color: #526052; }
.xp-selection-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.xp-selection-pager button { width: 36px; font-size: 20px; }
.xp-selection-pager button:disabled { opacity: .45; cursor: default; }
.xp-selection-favorites .xp-cards[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.xp-selection-compact-header, .xp-selection-mobile-controls, .xp-selection-compact-label { display: none; }

@media (max-width: 768px) {
    .product-title-row:has(.xp-product-title-actions .xp-selection-actions) { flex-wrap: wrap; }
    .product-title-row:has(.xp-product-title-actions .xp-selection-actions) > .product-title { flex-basis: 100%; }
    .xp-product-title-actions { margin-left: auto; }
    .xp-product-title-actions .xp-selection-toggle { width: 40px; height: 40px; }
    .xp-selection-favorites .xp-cards[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .xp-selection-header-actions, .xp-selection-links { gap: 6px; }
    .xp-selection-toggle, .xp-selection-link { width: 36px; height: 36px; }
    .xp-selection-toggle img, .xp-selection-link img { width: 18px; height: 18px; }
    .xp-selection-actions { gap: 5px; }
    .xp-selection-page { padding-top: 20px; }
    .xp-selection-page h1 { font-size: 28px; }
    .xp-selection-model { width: 146px; }
    .xp-selection-table th, .xp-selection-table td { min-width: 166px; padding: 10px; }
    .xp-selection-table th:first-child { width: 100px; min-width: 100px; max-width: 100px; }
    .xp-selection-scroll { overflow: auto; max-height: clamp(280px, 58dvh, 620px); }
    .xp-selection-mobile-controls:not(:empty) { display: grid; gap: 7px; margin-top: 12px; }
    .xp-selection-mobile-controls button { justify-self: start; }
    .xp-selection-scroll-hint { color: #535f6c; font-size: 13px; margin: 0; }
    .xp-selection-pair-select { max-width: 100%; min-width: 0; width: 100%; min-height: 36px; border: 1px solid #d9dce0; border-radius: 5px; background: #fff; color: #20262d; font: inherit; }
    .xp-selection-compact-header { display: table-row; }
    .xp-selection-table .xp-selection-compact-header th { position: sticky; top: 0; z-index: 3; background: #fff; line-height: 1.25; font-size: 13px; }
    .xp-selection-table .xp-selection-compact-header th:first-child { z-index: 4; background: #f4f6f8; }
    .xp-selection-table tbody th { overflow-wrap: break-word; hyphens: auto; }
    .xp-selection-compact-label { display: inline; }
    .xp-selection-full-label { display: none; }
    .xp-selection-scroll--pair .xp-selection-table { table-layout: fixed; width: 100%; }
    .xp-selection-scroll--pair .xp-selection-table :is(th,td):not(:first-child) { min-width: 0; max-width: none; padding: 6px; }
    .xp-selection-scroll--pair .xp-selection-table th:first-child { width: 84px; min-width: 84px; max-width: 84px; padding-inline: 5px; font-size: 12px; }
    .xp-selection-scroll--pair .xp-selection-model { width: 100%; min-width: 0; grid-template-rows: 72px auto auto auto auto; }
    .xp-selection-scroll--pair .xp-selection-model-image { height: 72px; }
}
@media (max-width: 420px) {
    .site-header .xp-selection-header-actions:has(.xp-selection-links:not([hidden])) .mobile-cart .shell-cart-label { display: none; }
    .xp-selection-notice { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
}
