.shortlist-opener {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 7px;
 min-height: 42px;
 padding: 8px 10px;
 border: 1px solid #72747a;
 background: #28292d;
 color: #fff;
 font: inherit;
 font-size: 12px;
 font-weight: 700;
 white-space: nowrap;
 cursor: pointer;
}

.shortlist-opener:hover { border-color: #fff; background: #36373c; }
.shortlist-opener:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.shortlist-count {
 display: inline-grid;
 place-items: center;
 min-width: 19px;
 height: 19px;
 padding: 0 4px;
 border-radius: 999px;
 background: #b22231;
 color: #fff;
 font-size: 11px;
 line-height: 1;
 font-variant-numeric: tabular-nums;
}

.product-header.shortlist-enabled > nav { margin-inline-start: auto; }
.product-header.shortlist-enabled > .shortlist-opener { flex-shrink: 0; }

[data-shortlist-save] {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 7px;
 width: 100%;
 min-height: 44px;
 margin: 9px 0;
 padding: 9px 12px;
 border: 1px solid #aeb0b5;
 border-radius: 3px;
 background: #fff;
 color: #292a2e;
 font: inherit;
 font-size: 13px;
 font-weight: 700;
 line-height: 1.4;
 text-align: center;
 cursor: pointer;
}

[data-shortlist-save]:hover { border-color: #a21d2b; color: #a21d2b; background: #fff5f6; }
[data-shortlist-save]:focus-visible,
.shortlist-dialog :is(button, a, input, textarea):focus-visible {
 outline: 2px solid #a21d2b;
 outline-offset: 2px;
}

.shortlist-dialog {
 box-sizing: border-box;
 width: min(620px, calc(100% - 28px));
 max-width: none;
 max-height: calc(100vh - 32px);
 max-height: calc(100dvh - 32px);
 margin: auto;
 padding: 0;
 overflow: hidden;
 border: 1px solid #a5a6aa;
 border-radius: 8px;
 background: #fff;
 color: #18191c;
 box-shadow: 0 20px 60px #0004;
 font: inherit;
 text-align: start;
 -webkit-text-size-adjust: 100%;
 text-size-adjust: 100%;
}

.shortlist-dialog[open] { display: flex; flex-direction: column; }
.shortlist-dialog::backdrop { background: #111b; }
.shortlist-dialog *, .shortlist-dialog *::before, .shortlist-dialog *::after { box-sizing: border-box; }
.shortlist-dialog [hidden], .shortlist-toast[hidden] { display: none !important; }

.shortlist-dialog .shortlist-header {
 position: static;
 inset: auto;
 display: flex;
 flex: 0 0 auto;
 align-items: center;
 justify-content: space-between;
 gap: 14px;
 width: 100%;
 height: auto;
 min-height: 0;
 margin: 0;
 padding: 16px 20px;
 border: 0;
 background: #18191c;
 color: #fff;
 box-shadow: none;
}

.shortlist-header h2 { margin: 0; font-size: 22px; line-height: 1.3; color: inherit; }
.shortlist-header p { margin: 4px 0 0; color: #dbdbde; font-size: 13px; line-height: 1.45; }

.shortlist-close {
 display: inline-grid;
 flex: 0 0 44px;
 width: 44px;
 min-height: 44px;
 padding: 0;
 place-items: center;
 border: 1px solid #72747a;
 border-radius: 3px;
 background: transparent;
 color: #fff;
 font: inherit;
 font-size: 25px;
 line-height: 1;
 cursor: pointer;
}

.shortlist-close:hover { background: #36373c; }
.shortlist-dialog .shortlist-close:focus-visible { outline-color: #fff; }

.shortlist-body {
 flex: 1 1 auto;
 min-height: 0;
 padding: 16px 20px;
 overflow: auto;
 overscroll-behavior: contain;
}

.shortlist-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.shortlist-item {
 display: grid;
 grid-template-columns: auto 64px minmax(0, 1fr) auto;
 align-items: center;
 gap: 12px;
 min-width: 0;
 padding: 10px;
 border: 1px solid #d8d9dc;
 border-radius: 4px;
 background: #fff;
}

.shortlist-item input[type="checkbox"] {
 flex-shrink: 0;
 width: 20px;
 height: 20px;
 margin: 0;
 accent-color: #ac2030;
 cursor: pointer;
}

.shortlist-item img {
 display: block;
 width: 100%;
 max-width: 64px;
 height: 58px;
 object-fit: contain;
 background: #f3f3f5;
 border-radius: 3px;
}

.shortlist-item-info { min-width: 0; overflow-wrap: anywhere; }
.shortlist-item-info :is(h3, h4, p) { margin: 0; }
.shortlist-item-info > a { color: #18191c; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.shortlist-item-info .shortlist-item-meta { margin: 3px 0 0; color: #5c6069; font-size: 12px; line-height: 1.5; }
.shortlist-item-info .shortlist-item-price { margin: 3px 0 0; color: #982132; font-size: 13px; font-weight: 700; line-height: 1.5; }

.shortlist-remove {
 min-width: 44px;
 min-height: 44px;
 padding: 4px;
 border: 1px solid transparent;
 border-radius: 3px;
 background: transparent;
 color: #625e63;
 font: inherit;
 font-size: 12px;
 white-space: nowrap;
 cursor: pointer;
}

.shortlist-remove:hover { color: #982132; background: #fff2f3; }

.shortlist-empty {
 margin: 0;
 padding: 24px 16px;
 border: 1px dashed #bfc0c6;
 border-radius: 4px;
 color: #545760;
 text-align: center;
 font-size: 14px;
 line-height: 1.6;
}

.shortlist-fields {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 12px;
 margin: 16px 0 0;
 padding: 0;
 border: 0;
}

.shortlist-fields label { min-width: 0; color: #34363b; font-size: 13px; font-weight: 700; }
.shortlist-fields label > :is(input, textarea, select) { display: block; margin-top: 4px; }
.shortlist-fields label:has(textarea) { grid-column: 1 / -1; }

.shortlist-fields :is(input, textarea, select),
.shortlist-dialog .shortlist-preview {
 box-sizing: border-box;
 width: 100%;
 min-width: 0;
 min-height: 42px;
 padding: 9px 10px;
 border: 1px solid #afb1b7;
 border-radius: 4px;
 background: #fff;
 color: #18191c;
 font: inherit;
 font-size: 16px;
 line-height: 1.5;
}

.shortlist-dialog textarea.shortlist-preview {
 min-height: 145px;
 max-height: 45vh;
 background: #f7f7f8;
 resize: vertical;
}

.shortlist-dialog .shortlist-footer {
 position: relative;
 display: flex;
 flex: 0 0 auto;
 flex-wrap: wrap;
 align-items: center;
 justify-content: flex-end;
 gap: 8px;
 width: 100%;
 margin: 0;
 padding: 12px 20px;
 border-top: 1px solid #dedfe2;
 background: #fff;
 color: #18191c;
 box-shadow: 0 -5px 12px #0001;
}

.shortlist-footer > :is(p, .shortlist-note, .shortlist-error) { flex-basis: 100%; margin: 0; }

.shortlist-button, .shortlist-line {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-width: 0;
 min-height: 44px;
 padding: 9px 14px;
 border: 1px solid #93959c;
 border-radius: 4px;
 background: #fff;
 color: #292a2e;
 font: inherit;
 font-size: 14px;
 font-weight: 700;
 line-height: 1.35;
 text-align: center;
 text-decoration: none;
 cursor: pointer;
}

.shortlist-button:hover { border-color: #62656c; background: #f4f4f6; }

.shortlist-primary, .shortlist-line {
 border-color: #a7212f;
 background: #a7212f;
 color: #fff;
}

.shortlist-primary:hover, .shortlist-line:hover { border-color: #861522; background: #861522; color: #fff; }

.shortlist-dialog :is(button:disabled, [aria-disabled="true"]) {
 opacity: .55;
 cursor: not-allowed;
}

.shortlist-dialog a[aria-disabled="true"] { pointer-events: none; }

.shortlist-note, .shortlist-error { color: #555962; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.shortlist-error { color: #9a1726; font-weight: 700; }

.shortlist-toast {
 position: fixed;
 z-index: 100;
 inset-inline: 12px;
 bottom: max(16px, env(safe-area-inset-bottom));
 width: max-content;
 max-width: calc(100% - 24px);
 margin-inline: auto;
 padding: 12px 16px;
 border-radius: 4px;
 background: #202126;
 color: #fff;
 box-shadow: 0 6px 18px #0004;
 font-size: 14px;
 line-height: 1.4;
 text-align: center;
 pointer-events: none;
 overflow-wrap: anywhere;
}

@media (max-width: 800px) {
 .shortlist-opener { min-height: 36px; gap: 4px; padding: 6px; font-size: 11px; }
 .shortlist-count { min-width: 16px; height: 16px; padding-inline: 3px; font-size: 10px; }
}

@media (max-width: 700px) {
 .product-header.shortlist-enabled { grid-template-columns: minmax(0, 1fr) auto auto auto; }
 .product-header.shortlist-enabled > .shortlist-opener { grid-column: 4; grid-row: 1; }
}

@media (max-width: 450px) {
 .product-header.shortlist-enabled { padding-inline: 12px; column-gap: 5px; }
 .product-header.shortlist-enabled > nav a:nth-child(n+2) { padding-inline: 5px; white-space: nowrap; }
 .shortlist-dialog .shortlist-header { padding: 10px 12px; }
 .shortlist-header h2 { font-size: 20px; }
 .shortlist-body { padding: 12px; }
 .shortlist-item { grid-template-columns: auto 42px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
 .shortlist-item img { max-width: 42px; height: 44px; }
 .shortlist-item-info > a { font-size: 14px; }
 .shortlist-fields { grid-template-columns: minmax(0, 1fr); }
 .shortlist-dialog .shortlist-footer { padding: 10px 12px; }
 .shortlist-footer > :is(button, a) { flex: 1 1 120px; }
}

.shortlist-just-saved {border-color:#a7212f;background:#fff0f2;color:#a7212f;}
.shortlist-footer > div {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;width:100%;}
.shortlist-footer [data-shortlist-selection] {margin-inline-end:auto;color:#4d5059;font-size:13px;}
.shortlist-note a {color:#8c1c29;text-decoration:underline;text-underline-offset:.15em;}
.shortlist-item-price del {color:#676973;font-weight:400;}
@media (max-width:450px) {
 .shortlist-footer > div > :is(button,a) {flex:1 1 auto;padding-inline:8px;}
 .shortlist-footer [data-shortlist-preview-actions] > .shortlist-line {flex-basis:100%;}
}

.header-actions > .header-line-icon,
.product-header nav > .header-line-icon {
 display: inline-grid;
 place-items: center;
 box-sizing: border-box;
 width: 44px;
 min-height: 44px;
 padding: 0;
}
.header-line-icon span {
 position: relative;
 display: grid;
 place-items: center;
 width: 28px;
 height: 23px;
 border-radius: 11px;
 background: #06c755;
 color: #082810;
 font: 800 9px/1 Arial, sans-serif;
 letter-spacing: -.15px;
}
.header-line-icon span::after {
 position: absolute;
 bottom: -3px;
 left: 8px;
 border: 3px solid transparent;
 border-top-color: #06c755;
 border-left-color: #06c755;
 content: "";
}
.shortlist-opener { min-width: 44px; min-height: 44px; }

@media (max-width: 700px) {
 .product-header.shortlist-enabled { grid-template-columns: minmax(0, 1fr) auto auto; }
 .product-header.shortlist-enabled > .shortlist-opener { grid-column: 3; }
 .product-header nav > a.header-line-icon {
  grid-column: 2;
  grid-row: 1;
  border: 1px solid #505258;
  min-height: 44px;
  padding: 0;
 }
}
