.offcart-dialog {
    --offcart-width: 440px;
    --offcart-radius: 4px;
    --offcart-cta-bg: #EACF32;
    --offcart-cta-text: #2B2420;
    --offcart-cta-hover: #DDBF1C;
    --offcart-link: #2B2420;
    width: min(var(--offcart-width), 100vw);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    color: #2B2420;
    background: #fff;
    font: inherit;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 280ms cubic-bezier(.2,.6,.2,1), opacity 200ms ease-out;
}
.offcart-dialog[open].is-open { transform: translateX(0); opacity: 1; }
.offcart-dialog[open].is-closing { transform: translateX(100%); opacity: 0; transition-duration: 200ms; }
.offcart-dialog--left { margin:0 auto 0 0; transform:translateX(-100%); }
.offcart-dialog--left[open].is-closing { transform:translateX(-100%); }
.offcart-dialog::backdrop { background:rgba(43,36,32,.48); opacity:0; transition:opacity 200ms ease-out; }
.offcart-dialog[open].is-open::backdrop { opacity:1; }
.offcart-dialog[open].is-closing::backdrop { opacity:0; }
.offcart-shell { height:100%; display:flex; flex-direction:column; background:#fff; }
.offcart-dialog .offcart-shell p, .offcart-dialog .offcart-shell h2, .offcart-dialog .offcart-shell h3, .offcart-dialog .offcart-shell ul, .offcart-dialog .offcart-shell li, .offcart-dialog .offcart-shell dl, .offcart-dialog .offcart-shell dt, .offcart-dialog .offcart-shell dd { margin:0; padding:0; }
.offcart-header { flex:none; min-height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; border-bottom:1px solid #E7E3DF; }
.offcart-header h2 { margin:0; font:inherit; font-size:22px; font-weight:600; line-height:1.25; outline:none; }
.offcart-count { margin-left:10px; font-size:14px; font-weight:400; color:#5A5049; }
.offcart-close { width:44px; height:44px; display:grid; place-items:center; border:0; background:transparent; color:inherit; padding:0; cursor:pointer; }
.offcart-body { flex:1 1 auto; min-height:0; position:relative; }
.offcart-body.is-refreshing::after { content:""; position:absolute; top:10px; right:12px; width:12px; height:12px; border:2px solid #D6D0C9; border-top-color:#5A5049; border-radius:50%; animation:offcart-spin .7s linear infinite; z-index:2; }
.offcart-dialog--left .offcart-body.is-refreshing::after { right:auto; left:12px; }
.offcart-content { height:100%; min-height:0; display:flex; flex-direction:column; }
.offcart-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 24px; }
.offcart-items { display:block; }
.offcart-item { display:grid; grid-template-columns:72px minmax(0,1fr); gap:16px; padding:20px 0; border-bottom:1px solid #E7E3DF; transition:background-color 600ms ease; }
.offcart-item.is-added { background:#F7F4EF; margin-inline:-24px; padding-inline:24px; }
.offcart-thumb { width:72px; height:72px; border-radius:4px; background:#E3E4E4; overflow:hidden; align-self:start; }
.offcart-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.offcart-item-main { min-width:0; }
.offcart-added { display:flex; align-items:center; gap:6px; font-size:13px; line-height:16px; font-weight:600; margin-bottom:4px; }
.offcart-item-title { margin:0; font:inherit; font-size:16px; line-height:1.3; font-weight:600; }
.offcart-dialog .offcart-item-title a { color:inherit; text-decoration:none; }
.offcart-dialog .offcart-item-title a:hover, .offcart-dialog .offcart-item-title a:focus, .offcart-dialog .offcart-item-title a:active { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.offcart-item-meta { margin-top:3px; color:#5A5049; font-size:14px; line-height:1.35; }
.offcart-item-controls { margin-top:12px; display:grid; grid-template-columns:auto auto minmax(70px,1fr); align-items:center; gap:10px; }
.offcart-stepper { display:grid; grid-template-columns:36px 42px 36px; height:36px; box-sizing:border-box; border:1px solid #E7E3DF; border-radius:var(--offcart-radius); overflow:visible; }
.offcart-stepper button { position:relative; width:36px; min-width:36px; height:100%; min-height:0; border:0; background:#fff; color:#5A5049; font:inherit; font-size:20px; line-height:1; cursor:pointer; }
.offcart-stepper button:first-child { border-radius:calc(var(--offcart-radius) - 1px) 0 0 calc(var(--offcart-radius) - 1px); }
.offcart-stepper button:last-child { border-radius:0 calc(var(--offcart-radius) - 1px) calc(var(--offcart-radius) - 1px) 0; }
.offcart-stepper button[aria-disabled="true"] { color:#B8B0A8; cursor:default; }
.offcart-stepper output { display:grid; place-items:center; border-left:1px solid #E7E3DF; border-right:1px solid #E7E3DF; font-size:15px; font-weight:500; font-variant-numeric:tabular-nums; }
.offcart-link, .offcart-continue { appearance:none; border:0; background:transparent; padding:0; color:var(--offcart-link); text-decoration:underline; text-underline-offset:3px; font:inherit; cursor:pointer; }
.offcart-remove, .offcart-undo .offcart-link { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.offcart-remove { color:#5A5049; text-decoration-color:#B9B1A9; }
.offcart-line-price { grid-column:3; position:relative; margin-left:auto; text-align:right; white-space:nowrap; }
.offcart-line-price strong { display:block; font-size:15px; }
.offcart-line-price del { display:block; color:#5A5049; font-size:13px; }
.offcart-line-price ins { text-decoration:none; }
.offcart-line-price small { display:block; color:#5A5049; font-size:13px; }
.offcart-stock-note, .offcart-item-error { margin-top:8px; font-size:13px; color:#5A5049; }
.offcart-item-error { color:#B3261E; }
.offcart-item.is-updating .offcart-line-price { opacity:.45; }
.offcart-item.is-optimistic-restore .offcart-item-controls button { pointer-events:none; opacity:.55; }
.offcart-item.is-updating .offcart-line-price::before { content:""; position:absolute; left:-20px; top:50%; width:12px; height:12px; margin:-8px 0 0 0; border:2px solid #D6D0C9; border-top-color:#2B2420; border-radius:50%; animation:offcart-spin .7s linear infinite; pointer-events:none; }
.offcart-undo { margin:12px 0; padding:12px; display:flex; justify-content:space-between; gap:12px; background:#F5F3F0; font-size:14px; }
.offcart-undo > span { min-width:0; }
.offcart-undo [data-offcart-undo] { flex:none; white-space:nowrap; }
.offcart-messages { padding-top:12px; }
.offcart-body > .offcart-messages { padding:12px 24px 0; }
.offcart-message { padding:10px 12px; background:#F5F3F0; font-size:13px; }
.offcart-message--error { color:#B3261E; }
.offcart-footer { flex:none; border-top:1px solid #E7E3DF; padding:16px 24px calc(20px + env(safe-area-inset-bottom)); background:#fff; box-shadow:0 -6px 16px rgba(43,36,32,.07); }
.offcart-summary { display:grid; gap:6px; margin-bottom:12px; }
.offcart-summary.is-updating { opacity:.55; }
.offcart-summary-row { display:flex; justify-content:space-between; gap:16px; color:#5A5049; font-size:14px; }
.offcart-summary-row--primary { align-items:baseline; color:#2B2420; font-size:16px; }
.offcart-summary-row--primary strong { font-size:22px; }
.offcart-summary-row small { font-size:14px; font-weight:400; color:#5A5049; }
.offcart-actions { display:grid; gap:14px; }
.offcart-cta { min-height:52px; padding:0 18px; box-sizing:border-box; border-radius:var(--offcart-radius); display:flex; align-items:center; justify-content:center; gap:16px; text-decoration:none; font-weight:600; }
.offcart-cta--custom { background:var(--offcart-cta-bg); color:var(--offcart-cta-text); }
.offcart-cta--custom:hover { background:var(--offcart-cta-hover); color:var(--offcart-cta-text); }
.offcart-dialog a.offcart-cta--custom, .offcart-dialog a.offcart-cta--custom:visited { background:var(--offcart-cta-bg); color:var(--offcart-cta-text); }
.offcart-dialog a.offcart-cta--custom:hover, .offcart-dialog a.offcart-cta--custom:focus-visible, .offcart-dialog a.offcart-cta--custom:active { background:var(--offcart-cta-hover); color:var(--offcart-cta-text); }
.offcart-continue { justify-self:center; min-height:44px; text-decoration-color:#B9B1A9; text-decoration-thickness:1px; }
.offcart-empty { padding:48px 24px; }
.offcart-dialog .offcart-empty h3 { margin:0 0 12px; font:inherit; font-size:24px; font-weight:600; }
.offcart-empty-text { color:#5A5049; font-size:16px; }
.offcart-dialog .offcart-empty-text a { color:var(--offcart-link); text-decoration:underline; }
.offcart-dialog .offcart-empty-text a:hover, .offcart-dialog .offcart-empty-text a:focus, .offcart-dialog .offcart-empty-text a:active { color:var(--offcart-link); }
.offcart-empty-continue { width:100%; margin-top:28px; cursor:pointer; }
.offcart-empty-continue.offcart-cta--custom { border:0; font:inherit; font-weight:600; }
.offcart-skeleton { padding:20px 24px; }
.offcart-add-pending { padding:0 24px; }
.offcart-add-pending .offcart-skeleton-line { padding-top:16px; }
.offcart-skeleton-line { display:grid; grid-template-columns:72px 1fr; gap:16px; padding:20px 0; border-bottom:1px solid #E7E3DF; }
.offcart-skeleton-line span, .offcart-skeleton-line i { background:#ECE9E5; border-radius:3px; animation:offcart-pulse 1.3s ease-in-out infinite; }
.offcart-skeleton-line span { width:72px; height:72px; }
.offcart-skeleton-line i { height:56px; align-self:center; }
.offcart-add-error { margin-top:8px; color:#B3261E; font-size:13px; }
.offcart-phase-placeholder { display:none; }
.offcart-shortcode-button { min-width:44px; min-height:44px; }
html.offcart-lock { overflow:hidden; }
html.offcart-lock-gutter { scrollbar-gutter:stable; }
.offcart-dialog :focus-visible { outline:2px solid #2B2420; outline-offset:2px; }
.offcart-dialog [tabindex="-1"]:focus { outline:none; }
.offcart-sr { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@keyframes offcart-spin { to { transform:rotate(360deg); } }
@keyframes offcart-pulse { 50% { opacity:.55; } }

@media (pointer:coarse) {
    .offcart-stepper { height:40px; }
    .offcart-stepper button::before { content:""; position:absolute; left:50%; top:50%; width:44px; height:44px; transform:translate(-50%,-50%); }
}
@media (hover:hover) {
    .offcart-dialog .offcart-close:hover { background:#F3F1EE; }
    .offcart-dialog .offcart-stepper button:not([aria-disabled="true"]):hover { background:#F3F1EE; color:#2B2420; }
    .offcart-dialog .offcart-remove:hover { color:#2B2420; text-decoration-color:#2B2420; text-decoration-thickness:2px; }
    .offcart-dialog .offcart-continue:hover { text-decoration-color:currentColor; text-decoration-thickness:2px; }
}
@media (max-width:599px) {
    .offcart-dialog { width:100vw; height:100vh; height:100dvh; }
    .offcart-header { min-height:56px; padding:0 16px; }
    .offcart-header h2 { font-size:20px; }
    .offcart-scroll { padding:0 16px; }
    .offcart-item { grid-template-columns:64px minmax(0,1fr); gap:12px; padding:16px 0; }
    .offcart-item.is-added { margin-inline:-16px; padding-inline:16px; }
    .offcart-thumb { width:64px; height:64px; }
    .offcart-item-controls { grid-template-columns:auto auto minmax(60px,1fr); gap:8px; }
    .offcart-footer { padding:16px 16px calc(16px + env(safe-area-inset-bottom)); }
    .offcart-empty { padding:40px 16px; }
    .offcart-body > .offcart-messages { padding:12px 16px 0; }
}
@media (max-height:599px) {
    .offcart-footer { display:block; padding-top:12px; padding-bottom:calc(12px + env(safe-area-inset-bottom)); }
    .offcart-summary { margin:0 0 8px; }
    .offcart-summary-row:not(.offcart-summary-row--primary) { display:none; }
    .offcart-summary-row--primary { display:flex; flex-direction:row; align-items:baseline; justify-content:space-between; gap:12px; }
    .offcart-summary-row--primary > span { min-width:0; font-size:13px; line-height:1.2; white-space:nowrap; }
    .offcart-summary-row--primary small { font-size:13px; white-space:nowrap; }
    .offcart-summary-row--primary strong { flex:none; line-height:1.15; }
    .offcart-actions { display:grid; min-width:0; gap:4px; }
    .offcart-cta { min-height:48px; width:100%; white-space:nowrap; }
    .offcart-cta > span { white-space:nowrap; }
    .offcart-actions > .offcart-continue { display:inline-flex; align-items:center; justify-content:center; min-height:40px; }

    .offcart-dialog.offcart-compact-inline .offcart-footer { display:flex; align-items:center; gap:16px; }
    .offcart-dialog.offcart-compact-inline .offcart-summary { flex:none; margin:0; }
    .offcart-dialog.offcart-compact-inline .offcart-summary-row--primary { flex-direction:column; align-items:flex-start; gap:2px; }
    .offcart-dialog.offcart-compact-inline .offcart-actions { display:grid; gap:4px; flex:1 1 auto; min-width:0; }
    .offcart-dialog.offcart-compact-inline .offcart-cta { min-width:0; }
}
@media (max-height:479px) {
    .offcart-dialog.offcart-compact-landscape .offcart-header { min-height:52px; }
    .offcart-dialog.offcart-compact-landscape .offcart-footer { display:grid; grid-template-columns:minmax(0,1fr) max-content; grid-template-rows:auto auto; align-items:center; gap:4px 12px; padding-top:8px; padding-bottom:calc(8px + env(safe-area-inset-bottom)); }
    .offcart-dialog.offcart-compact-landscape .offcart-summary { grid-column:1; grid-row:1; min-width:0; margin:0; }
    .offcart-dialog.offcart-compact-landscape .offcart-summary-row--primary { flex-direction:row; align-items:baseline; gap:8px; min-width:0; }
    .offcart-dialog.offcart-compact-landscape .offcart-summary-row--primary > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .offcart-dialog.offcart-compact-landscape .offcart-summary-row--primary small { display:none; }
    .offcart-dialog.offcart-compact-landscape .offcart-summary-row--primary strong { flex:none; }
    .offcart-dialog.offcart-compact-landscape .offcart-actions { display:contents; }
    .offcart-dialog.offcart-compact-landscape .offcart-cta { grid-column:2; grid-row:1; width:auto; min-width:max-content; min-height:48px; white-space:nowrap; }
    .offcart-dialog.offcart-compact-landscape .offcart-cta > span { overflow:visible; text-overflow:clip; white-space:nowrap; }
    .offcart-dialog.offcart-compact-landscape .offcart-continue { grid-column:1 / -1; grid-row:2; display:inline-flex; align-items:center; justify-content:center; min-height:32px; }
}
@media (prefers-reduced-motion:reduce) {
    .offcart-dialog, .offcart-dialog--left, .offcart-dialog[open].is-closing, .offcart-dialog--left[open].is-closing { transform:none; transition:opacity 170ms ease; }
    .offcart-item { transition:none; }
    .offcart-skeleton-line span, .offcart-skeleton-line i { animation:none; }
}
