.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::backdrop { background: rgba(43,36,32,.48); opacity: 1; }
.offcart-shell { height:100%; display:flex; flex-direction:column; background:#fff; }
.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; }
.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; font-weight:600; margin-bottom:4px; }
.offcart-item-title { margin:0; font:inherit; font-size:16px; line-height:1.3; font-weight:600; }
.offcart-item-title a { color:inherit; text-decoration:none; }
.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:40px 42px 40px; height:40px; border:1px solid #D6D0C9; border-radius:var(--offcart-radius); overflow:hidden; }
.offcart-stepper button { min-width:40px; border:0; background:#fff; color:#2B2420; font:inherit; font-size:20px; cursor:pointer; }
.offcart-stepper button[aria-disabled="true"] { color:#B8B0A8; cursor:default; }
.offcart-stepper output { display:grid; place-items:center; font-weight:600; }
.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; 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; position:relative; }
.offcart-item.is-updating .offcart-line-price::before { content:""; display:inline-block; width:12px; height:12px; margin-right:6px; border:2px solid #D6D0C9; border-top-color:#2B2420; border-radius:50%; animation:offcart-spin .7s linear infinite; }
.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-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-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; 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-continue { justify-self:center; min-height:44px; }
.offcart-continue--compact { display:none; margin:14px auto; }
.offcart-empty { padding:48px 24px; }
.offcart-empty h3 { margin:0 0 12px; font:inherit; font-size:24px; font-weight:600; }
.offcart-empty-text { color:#5A5049; font-size:16px; }
.offcart-empty-text a { color:var(--offcart-link); text-decoration:underline; }
.offcart-empty-continue { width:100%; margin-top:28px; cursor:pointer; }
.offcart-empty-continue.offcart-cta--custom { border:0; font:inherit; }
.offcart-skeleton { padding:20px 24px; }
.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; 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:44px; grid-template-columns:44px 42px 44px; }
    .offcart-stepper button { min-width:44px; min-height:44px; }
}
@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; }
}
@media (max-height:599px) {
    .offcart-footer { display:flex; align-items:center; gap:16px; padding-top:12px; padding-bottom:calc(12px + env(safe-area-inset-bottom)); }
    .offcart-summary { flex:none; margin:0; }
    .offcart-summary-row:not(.offcart-summary-row--primary) { display:none; }
    .offcart-summary-row--primary { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
    .offcart-summary-row--primary > span { 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 { line-height:1.15; }
    .offcart-actions { display:flex; flex:1 1 auto; min-width:0; }
    .offcart-cta { flex:1 1 auto; min-width:0; width:100%; white-space:nowrap; }
    .offcart-cta > span { white-space:nowrap; }
    .offcart-actions > .offcart-continue { display:none; }
    .offcart-continue--compact { display:block; }
}
@media (prefers-reduced-motion:reduce) {
    .offcart-dialog, .offcart-dialog[open].is-closing { transform:none; transition:opacity 170ms ease; }
    .offcart-item { transition:none; }
}
