﻿@import './mythemesdefault.css?v=20261009-accessible-coral';
/* Cart-specific layout. Shared navigation stays in site.css. */
.basket-page { max-width: 1220px; margin: 0 auto; padding: 34px 24px 60px; color: #292d34; }
.basket-page * { box-sizing: border-box; }
.basket-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.basket-eyebrow { color: #a33e28; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.basket-heading h1 { font-size: clamp(28px, 4vw, 38px); margin: 8px 0; letter-spacing: -.035em; }
.basket-heading p { margin: 0; color: #68707a; font-size: 14px; line-height: 1.6; max-width: 570px; }
.basket-link,.basket-continue { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #8e3c29; text-decoration: none; font-size: 14px; }
.basket-feedback { padding: 16px 18px; margin-bottom: 22px; background: #fff7e8; color: #6b4b20; border: 1px solid #eddbb7; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.basket-items { min-width: 0; }
.basket-select-all { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px 14px; color: #5c6570; font-size: 13px; }
.basket-select-all>span:first-child { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; }
.basket-page input[type=checkbox] { accent-color: #b83d25; width: 20px; height: 20px; margin: 0; flex-shrink: 0; cursor: pointer; }
.basket-select-all label { margin: 0; cursor: pointer; padding: 12px 0; }
.basket-item { border: 1px solid #e3e6e9; border-radius: 16px; background: #fff; margin-bottom: 16px; overflow: hidden; }
.basket-item.is-selected { border-color: #edc8bc; }
.basket-item-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; gap: 12px; background: #faf9f8; border-bottom: 1px solid #f0eeeb; }
.basket-item.is-selected .basket-item-top { background: #fff4ef; }
.basket-shop { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #5a514d; overflow-wrap: anywhere; }
.basket-shop-prefix { display: none; }
.basket-item-select { position: relative; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.basket-item-select label { position: absolute; inset: 0; width: 44px; height: 44px; padding: 0; margin: 0; overflow: hidden; font-size: 0; color: transparent; border: 0; cursor: pointer; }
.basket-item-main { display: flex; align-items: flex-start; gap: 18px; padding: 20px 18px 14px; }
.basket-media { position: relative; width: 130px; height: 130px; flex: 0 0 130px; border-radius: 12px; background: #f5f6f7; overflow: hidden; display: block; }
.basket-media img,.basket-media video { width: 100%; height: 100%; object-fit: contain; }
.CartVideoToggle { position: absolute; bottom: 5px; right: 5px; min-width: 44px; min-height: 44px; border: 1px solid #ddd; border-radius: 9px; background: #fff; color: #333; cursor: pointer; }
.basket-item-info { flex: 1; min-width: 0; }
.basket-item-info h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.basket-item-info h2 a { color: inherit; text-decoration: none; }
.basket-options { color: #646b75; font-size: 13px; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.basket-options-current,.basket-options-mobile-icon { display: none; }
.basket-price { font-size: 19px; color: #292d34; font-weight: 750; margin: 0 0 9px; }
.basket-price small { font-size: 11px; font-weight: 400; color: #717782; }
.basket-price-history { display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;margin-top:3px;line-height:1.4; }
.basket-price-history .card-price-previous,.basket-price-history .card-price-saving { font-size:max(13px,.8125rem); }
.basket-availability { color: #805420; font-size: 13px; line-height: 1.6; margin: 8px 0; }
.basket-price-change { font-size: 13px; line-height: 1.6; background: #fff7e8; border-radius: 9px; padding: 10px 12px; margin-top: 10px; color: #785321; }
.basket-price-change .basket-text-button { display: flex; padding-left: 0; }
.basket-item-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid #f0eeeb; }
.basket-save-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.basket-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 6px; border: 0; background: transparent; text-decoration: none; color: #8e3c29; cursor: pointer; font-size: 13px; line-height: 1.4; }
.basket-text-button:hover { text-decoration: underline; }
.basket-remove { color: #67707b; }
.basket-share { font-family: inherit; }
.basket-share:disabled { color: #737982; cursor: not-allowed; text-decoration: none; }
.basket-quantity,.basket-edit-quantity { display: inline-flex; align-items: center; gap: 8px; }
.basket-quantity label,.basket-edit-quantity label { margin: 0; color: #5c6570; font-size: 13px; }
.basket-quantity input,.basket-edit-quantity input { width: 76px; min-height: 44px; border-radius: 9px; border: 1px solid #d9dee3; background: #fff; color: #292d34; padding: 9px; font-size: 16px; text-align: center; }
.basket-page input:disabled { background: #f3f4f5; color: #7b828a; cursor: not-allowed; }
.basket-summary { border: 1px solid #e6e3df; border-radius: 16px; background: #fff; padding: 24px; position: sticky; top: calc(var(--rana-header-height, 116px) + 16px); }
.basket-summary h2 { margin: 0 0 24px; font-size: 20px; }
.basket-summary-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0; color: #4e5661; font-size: 14px; }
.basket-summary-total strong { font-size: 19px; color: #292d34; white-space: nowrap; }
.basket-summary>p,.basket-dialog>p { font-size: 13px; line-height: 1.7; color: #616a76; }
.basket-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; background:var(--ColorPrimary); color: #fff; border: 1px solid #b83d25; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center;background-image:var(--ColorPrimaryGradient);color:var(--ColorPrimaryText)!important}
.basket-primary:hover { color: #fff; background:var(--ColorPrimaryHover); border-color:var(--ColorPrimaryHover); text-decoration: none;background-image:none;color:var(--ColorPrimaryText)!important}
.basket-primary.aspNetDisabled,.basket-primary:disabled,.basket-primary[aria-disabled=true] { background: #e7e3e0; border-color: #e7e3e0; color: #686460; cursor: not-allowed; }
.basket-summary .basket-primary,.basket-dialog>.basket-primary { width: 100%; }
.basket-summary-hint { padding-top: 16px; margin-top: 18px; border-top: 1px solid #eee9e4; font-size: 12px !important; }
.basket-empty { padding: 70px 22px; text-align: center; border: 1px solid #e8e4df; border-radius: 18px; background: #fff; }
.basket-empty>i { color: #ba7056; font-size: 36px; margin-bottom: 16px; }
.basket-empty h2 { font-size: 24px; letter-spacing: -.025em; }
.basket-empty p { color: #6b737e; font-size: 14px; line-height: 1.7; margin: 14px auto 22px; }
.basket-mobile-summary { display: none; }
.basket-page :is(a,button,input):focus-visible { outline: 3px solid #a53b26; outline-offset: 3px; }
.basket-modal-backdrop { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(30,26,24,.48); }
.basket-dialog { width: min(100%,550px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.15); }
.basket-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.basket-dialog h2 { font-size: 24px; letter-spacing: -.025em; margin: 6px 0 0; }
.basket-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; background: transparent; color: #5a5c63; font-size: 18px; text-decoration: none; }
.basket-dialog-product { font-weight: 650; color: #333 !important; }
.basket-variant-options fieldset { border: 0; padding: 0; margin: 18px 0; }
.basket-variant-options legend { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.basket-option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.basket-option-values button { min-width: 44px; min-height: 44px; padding: 9px 13px; border: 1px solid #dadddf; border-radius: 9px; background: #fff; color: #434a52; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.basket-option-values button[aria-pressed=true] { color: #9a3420; background: #fff0e9; border-color: #bd624a; }
.basket-option-values button:disabled { color: #949494; background: #f5f5f5; cursor: not-allowed; text-decoration: line-through; }
.basket-option-values .basket-option-with-image { display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:80px;max-width:min(100%,160px);padding:8px;line-height:1.4; }
.basket-option-image { display:block;width:56px;height:56px;object-fit:contain;border:1px solid #e8e4df;border-radius:6px;background:#faf9f7; }
.basket-option-image[hidden] { display:none; }
.basket-option-values button:disabled .basket-option-image { opacity:.55; }
@media(max-width:768px) { .basket-option-image { width:48px;height:48px; }.basket-option-values .basket-option-with-image { min-width:72px; } }
.basket-variant-price { font-size: 23px !important; font-weight: 750; color: #272c33 !important; margin: 14px 0 8px; }
.basket-variant-message { min-height: 24px; }
.basket-edit-quantity { margin: 4px 0 24px; }
.basket-review-row { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #ece8e4; padding: 16px 0; font-size: 14px; }
.basket-review-row small { display: block; color: #717984; font-size: 12px; line-height: 1.5; margin-top: 7px; }
.basket-review-row>span { white-space: nowrap; }
@media(max-width:900px) { .basket-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; } .basket-summary { padding: 20px; } .basket-item-main { gap: 14px; } .basket-media { width: 100px; height: 110px; flex-basis: 100px; } .basket-item-actions { flex-wrap: wrap; } }
@media(max-width:768px) {
    .basket-page { padding: 24px 14px calc(155px + env(safe-area-inset-bottom)); }
    .basket-heading { gap: 12px; margin-bottom: 22px; align-items: start; }
    .basket-heading h1 { font-size: 28px; }
    .basket-heading p { font-size: 13px; }
    .basket-link { font-size: 13px; flex-shrink: 0; }
    .basket-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .basket-summary { position: static; padding: 20px; }
    .basket-summary>.basket-primary { display: none; }
    /* Flatten neutral wrappers into a compact selection / photo / details grid. */
    .basket-item { display: grid; grid-template-columns: 44px 100px minmax(0,1fr) 68px; column-gap: 10px; row-gap: 2px; padding: 10px 12px 0; border-radius: 10px; margin-bottom: 8px; }
    .basket-item.is-selected { border-color: #edc8bc; }
    .basket-item-top,.basket-item-main,.basket-item-info,.basket-item-actions { display: contents; }
    .basket-item-select { grid-column: 1; grid-row: 1 / span 4; align-self: center; justify-self: center; }
    .basket-media { grid-column: 2; grid-row: 1 / span 4; align-self: start; width: 100%; height: 104px; min-width: 0; border-radius: 5px; }
    .basket-item-info h2 { grid-column: 3 / -1; grid-row: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; }
    .basket-item-info h2 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .basket-item-info h2 a:focus-visible { display: block; overflow: visible; }
    .basket-shop { grid-column: 3 / -1; grid-row: 2; align-self: start; gap: 6px; min-width: 0; padding: 0; font-size: 13px; line-height: 1.4; color: #646b75; }
    .basket-shop>i { flex: 0 0 auto; font-size: 11px; }
    .basket-shop-prefix { display: inline; }
    .basket-options { grid-column: 3 / -1; grid-row: 3; margin: 0; min-width: 0; font-size: 13px; line-height: 1.4; color: #646b75; }
    .basket-item-info .basket-price { grid-column: 3; grid-row: 4; align-self: center; min-width: 0; margin: 0; padding: 2px 0; color: var(--ColorPrimary); font-size: 20px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
    .basket-item.has-price-history .basket-price { display:contents; }
    .basket-item.has-price-history .basket-unit-price { grid-column:3;grid-row:4;align-self:center;min-width:0;padding:2px 0; }
    .basket-item.has-price-history .basket-price-history { grid-column:3 / -1;grid-row:5;min-width:0;margin:0;align-self:center; }
    .basket-price small { display: inline; margin-left: 4px; font-size: 12px; line-height: 1.4; }
    .basket-quantity { grid-column: 4; grid-row: 4; align-self: center; justify-self: end; margin: 0; gap: 0; }
    .basket-quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .basket-quantity input { width: 68px; min-height: 44px; border-radius: 6px; padding: 8px 4px; background: #f7f7f8; }
    .basket-price-change,.basket-availability,.basket-item-info>.basket-text-button { grid-column: 3 / -1; min-width: 0; margin: 4px 0; }
    .basket-item-info>.basket-text-button { justify-self: start; }
    /* Edit the visible selection in-place instead of adding a second options row. */
    .basket-options.can-edit { display: none; }
    .basket-item-info>.basket-options-edit { grid-column: 3 / -1; grid-row: 3; justify-self: stretch; justify-content: space-between; gap: 8px; min-height: 44px; margin: 0; padding: 2px 0; color: #646b75; text-align: left; }
    .basket-options-edit .basket-options-current { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
    .basket-item-info>.basket-options-edit:focus-visible { outline: 2px solid var(--ColorInputFocus); outline-offset: -2px; }
    .basket-options-edit .basket-options-desktop-icon { display: none; }
    .basket-options-edit .basket-options-mobile-icon { display: inline; flex: 0 0 auto; font-size: 10px; }
    .basket-options-edit .basket-options-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .basket-save-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; margin-top: 4px; padding: 2px 0; border-top: 1px solid #eeefef; }
    .basket-save-actions .basket-text-button { gap: 6px; min-width: 0; min-height: 44px; padding: 4px; color: var(--ColorSecondary); font-size: 13px; line-height: 1.4; text-align: center; text-decoration: none; }
    .basket-save-actions .basket-text-button+.basket-text-button { border-left: 1px solid #eeefef; }
    .basket-save-actions .basket-text-button>i { flex: 0 0 auto; font-size: 14px; color: var(--ColorPrimary); }
    .basket-save-actions .basket-text-button>span { min-width: 0; overflow-wrap: anywhere; }
    .basket-save-actions .basket-text-button:hover { background: #fafafa; }
    .basket-save-actions .basket-text-button:focus-visible { outline: 2px solid var(--ColorInputFocus); outline-offset: -2px; }
    .basket-save-actions .basket-share:disabled,.basket-save-actions .basket-share:disabled>i { color: #737982; }
    .basket-mobile-summary { position: fixed; bottom: var(--basket-bottom-inset,64px); left: 0; right: 0; z-index: 950; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left)); background: rgba(255,255,255,.98); border-top: 1px solid #e7e3df; box-shadow: 0 -4px 20px rgba(0,0,0,.035); }
    .basket-mobile-summary>div { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #68707a; }
    .basket-mobile-summary strong { color: #292d34; font-size: 17px; }
    .basket-mobile-summary .basket-primary { min-height: 44px; padding: 10px 14px; font-size: 14px; }
    .basket-modal-backdrop { padding: max(16px,env(safe-area-inset-top)) 0 0; align-items: flex-end; }
    .basket-dialog { width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 20px 20px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
    .basket-dialog h2 { font-size: 22px; }
    .basket-empty { padding: 48px 18px; }
    .basket-empty h2 { font-size: 22px; }
}
@media(max-width:540px) { .basket-item { grid-template-columns: 44px 88px minmax(0,1fr) 64px; column-gap: 8px; } .basket-media { height: 96px; } .basket-quantity input { width: 64px; } }
@media(max-width:420px) {
    .basket-page { padding-left: 12px; padding-right: 12px; }
    .basket-item { grid-template-columns: 44px 82px minmax(0,1fr); padding: 8px 10px 0; }
    .basket-item-info .basket-price { grid-column: 3 / -1; padding-right: 74px; }
    .basket-item.has-price-history .basket-unit-price { grid-column:3 / -1; }
    .basket-item.has-price-history .basket-price-history { padding-right:74px; }
    .basket-quantity { grid-column: 3 / -1; grid-row: 4; }
    .basket-item.has-price-history .basket-quantity { grid-row:5; }
    .basket-media { height: 94px; }
}
@media(max-width:360px) {
    .basket-item { grid-template-columns: 44px 76px minmax(0,1fr); }
    .basket-item-info .basket-price { padding-right: 0; }
    .basket-item.has-price-history .basket-price-history { padding-right:0; }
    .basket-quantity { grid-row: 5; margin-top: 2px; }
    .basket-item.has-price-history .basket-quantity { grid-row:6; }
}
@media(prefers-reduced-motion:reduce) { .basket-page * { scroll-behavior: auto !important; } }

/* Keep the cart editor/review close controls and drag handle reachable while options scroll. */
@media(max-width:768px) {
    .basket-dialog[data-mobile-sheet] { padding-top:0; }
    .basket-dialog[data-mobile-sheet] .basket-dialog-heading { position:sticky;top:0;z-index:2;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 12px;align-items:center; }
    .basket-dialog-heading > .mobile-sheet-handle { grid-column:1 / -1;justify-self:center; }
    .basket-dialog-heading > h2 { grid-column:1;min-width:0; }
    .basket-dialog-heading > .basket-icon-button { grid-column:2; }
}

/* Cart editing/review uses the same bounded sheet, with persistent header and actions. */
.basket-dialog-body,.basket-dialog-actions { display:contents; }
.basket-dialog-actions>.basket-primary { width:100%; }
.basket-dialog .basket-icon-button:focus-visible { outline:2px solid var(--ColorInputFocus);outline-offset:-2px; }
.basket-dialog-body>p { font-size:13px;line-height:1.7;color:#616a76; }
@media(max-width:768px) {
 .basket-modal-backdrop { inset:var(--basket-sheet-top,0px) 0 var(--basket-sheet-bottom,0px);padding:0; }
 .basket-dialog[data-mobile-sheet] { display:flex;flex-direction:column;min-width:0;min-height:0;height:auto;--mobile-sheet-viewport-height:var(--basket-sheet-height,100dvh);max-height:var(--mobile-sheet-height-limit,min(86dvh,calc(100dvh - 24px)));padding:0;overflow:hidden;border-radius:18px 18px 0 0; }
 .basket-dialog[data-mobile-sheet] .basket-dialog-heading { flex:0 0 auto;padding:0 18px 12px;margin:0;border-bottom:1px solid #ece8e4; }
 .basket-dialog-heading>div { grid-column:1;min-width:0; }
 .basket-dialog-heading .basket-eyebrow { margin-top:0; }
 .basket-dialog[data-mobile-sheet] .basket-dialog-body { display:block;flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 18px 20px;scroll-padding:16px; }
 .basket-dialog[data-mobile-sheet] .basket-dialog-actions { display:block;flex:0 0 auto;padding:12px 18px max(20px,env(safe-area-inset-bottom));border-top:1px solid #ece8e4;background:#fff; }
 .basket-dialog-actions>.basket-primary { display:flex;width:100%;min-height:44px;align-items:center;justify-content:center; }
}
