.cart-popover{position:absolute;right:0;top:calc(100% + 14px);width:410px;max-width:calc(100vw - 40px);max-height:min(730px,calc(100dvh - 100px));display:flex;flex-direction:column;background:var(--theme-header);border:1px solid var(--theme-border);border-radius:16px;box-shadow:0 20px 60px #0007;z-index:120;overflow:hidden;color:var(--text);animation:notification-in .16s ease-out}
.cart-popover[hidden]{display:none}
.cart-popover>header{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid var(--theme-border);flex:none}
.cart-popover-symbol{display:grid;place-items:center;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--theme-accent) 20%,var(--theme-border));border-radius:10px;background:color-mix(in srgb,var(--theme-primary) 10%,transparent);color:var(--theme-accent);flex:none}
.cart-popover-symbol .icon{width:20px;height:20px}
.cart-popover>header>div{flex:1;min-width:0}.cart-popover>header p{margin:4px 0 0;font-size:11px;color:var(--muted)}
.cart-popover h2{margin:0;font-size:17px;font-weight:650;letter-spacing:-.3px}
.cart-popover-close{display:grid;place-items:center;width:30px;height:30px;color:var(--muted);border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);cursor:pointer;flex:none}
.cart-popover-close .icon{width:17px;height:17px}
.cart-popover-close:hover{background:var(--theme-raised);color:var(--text)}
.cart-popover-items{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--theme-border) transparent;padding:14px;display:grid;gap:10px}
.cart-preview-item{padding:13px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface)}
.cart-preview-heading{display:flex;align-items:center;gap:12px}
.cart-preview-heading>img{width:76px;height:76px;object-fit:contain;background:linear-gradient(150deg,color-mix(in srgb,var(--theme-primary) 9%,var(--theme-raised)),var(--theme-surface));border:1px solid var(--theme-border);border-radius:10px;flex:none;padding:5px}
.cart-preview-heading>div{flex:1;min-width:0}
.cart-preview-heading h3{font-size:13px;line-height:1.45;margin:0 0 8px;overflow-wrap:anywhere}
.cart-preview-badges{display:flex;flex-wrap:wrap;gap:5px}
.cart-warranty{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid color-mix(in srgb,var(--theme-accent) 22%,var(--theme-border));border-radius:6px;background:color-mix(in srgb,var(--theme-primary) 10%,transparent);color:var(--theme-accent);font-size:10px;line-height:1.4;white-space:nowrap}
.cart-warranty .warranty-icon{width:14px;height:14px;flex:none}
.cart-example{font-size:9px;color:var(--muted);align-self:center}
.cart-preview-heading>button{display:grid;place-items:center;width:28px;height:28px;flex:none;padding:5px;border:1px solid var(--theme-border);border-radius:7px;color:var(--muted);background:var(--theme-header);cursor:pointer;align-self:flex-start}
.cart-preview-heading>button:hover{background:#ff696f18;border-color:#ff696f66;color:#ff696f}
.cart-preview-heading>button .icon{width:15px;height:15px}
.cart-preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:11px;border-top:1px solid var(--theme-border)}
.cart-preview-bottom>strong{font-size:18px;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.cart-preview-bottom .listing-activity{margin:0;padding:0;min-height:20px}
.cart-preview-bottom .example-listing-label{display:none}
.cart-preview-bottom .presence-tooltip{left:auto;right:0}
.cart-popover>.cart-preview-summary{display:block;flex:none;width:auto;max-width:none;margin:0;padding:18px;border:0;border-top:1px solid var(--theme-border);background:var(--theme-surface)}
.cart-preview-total{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:500;color:var(--muted)}
.cart-preview-total strong{font-size:23px;font-weight:650;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.cart-warranty-note{margin:7px 0 0;font-size:10px;color:var(--muted);line-height:1.5}
.cart-terms{display:flex;gap:9px;align-items:flex-start;margin:18px 0;font-size:11px;line-height:1.5;color:var(--muted)}
.cart-terms input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--theme-primary)}
.cart-terms a{color:var(--theme-accent)}
.cart-preview-actions{display:flex;gap:8px}
.cart-preview-actions>.button{flex:1;min-width:0;justify-content:center;font-size:12px;min-height:42px;padding:11px 8px;border-radius:9px;text-align:center}
.cart-preview-actions>.button:disabled{opacity:.45;cursor:not-allowed}
.cart-clear{border:1px solid var(--theme-border);border-radius:9px;padding:9px 12px;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.cart-clear:hover{background:var(--theme-raised);color:var(--text)}
.cart-popover :is(button,a,input):focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.cart-popover-empty{display:grid;justify-items:center;padding:45px 20px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}
.cart-popover-empty>.icon{width:34px;height:34px;color:var(--theme-accent);margin-bottom:15px}
.cart-popover-empty h3{margin:0;color:var(--text);font-size:15px}.cart-popover-empty p{margin:8px 0 18px}.cart-popover-empty a{color:var(--theme-accent)}
html[data-theme] .catalog-card .card-action-tray .cart-add{background:var(--theme-primary);border-color:var(--theme-primary-hover);color:var(--theme-on-primary)}
html[data-theme] .catalog-card .card-action-tray .cart-add.is-in-cart{background:var(--theme-surface);border-color:var(--theme-border);color:var(--muted)}
html[data-theme] .catalog-card .card-action-tray .cart-add:hover{filter:brightness(1.15)}
.cart-header>[data-cart-count]:not(:empty){background:var(--theme-primary);color:var(--theme-on-primary);border-radius:999px;min-width:16px;height:16px;display:grid;place-items:center;padding:0 4px;font-size:10px;font-weight:700;top:-2px;right:-1px}
@media(max-width:640px){.cart-popover{position:fixed;left:12px;right:12px;top:102px;width:auto;max-width:none;max-height:calc(100dvh - 116px)}.cart-popover>header,.cart-popover>.cart-preview-summary{padding:15px}.cart-popover-items{padding:12px}.cart-preview-heading{gap:9px}.cart-preview-heading>img{width:62px;height:62px}.cart-preview-heading h3{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cart-popover{animation:none}}
