/* Come to Ghana: cart drawer. Colours come from tokens.css with fallbacks. */
.cd-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; background: var(--accent, #006b3f); color: var(--on-accent, #fff); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.cd-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.cd-btn--header { margin-left: .75rem; }
.cd-btn--float { position: fixed; top: 1rem; right: 1rem; z-index: 60; }
.cd-badge { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; font-size: .8rem; line-height: 1.4rem; text-align: center; background: var(--on-accent, #fff); color: var(--accent, #006b3f); }
.cd-btn:focus-visible, .cd-drawer :is(button, a):focus-visible { outline: 3px solid var(--accent-bright, #f2a900); outline-offset: 3px; }
.cd-lock { overflow: hidden; }
.cd-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .35s; }
.cd-overlay.is-open { opacity: 1; }
.cd-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; width: min(26rem, 100%); background: var(--surface, #fff); color: var(--text, #111); box-shadow: none; visibility: hidden; transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s; }
.cd-drawer.is-open { transition-delay: 0s; transform: none; visibility: visible; box-shadow: -12px 0 40px rgba(0,0,0,.25); }
.cd-drawer[hidden], .cd-overlay[hidden] { display: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,.1); }
.cd-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.cd-close { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; background: rgba(0,0,0,.08); color: inherit; }
.cd-body { flex: 1; overflow-y: auto; padding: .5rem 1.25rem; }
.cd-lines { list-style: none; margin: 0; padding: 0; }
.cd-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.cd-info { display: grid; gap: .25rem; min-width: 0; }
.cd-name { font-size: 1.05rem; }
.cd-sum { font-size: .9rem; opacity: .75; }
.cd-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.cd-step { display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.cd-step button { width: 2.2rem; height: 2.2rem; border: 1.5px solid currentColor; border-radius: 50%; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; background: transparent; color: inherit; }
.cd-step button:disabled { opacity: .35; cursor: not-allowed; }
.cd-step output { min-width: 1.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-rm { border: 0; padding: .25rem 0; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; background: none; color: inherit; opacity: .8; }
.cd-rm:hover { opacity: 1; }
.cd-empty { display: grid; gap: .75rem; justify-items: start; padding: 2rem 0; }
.cd-empty-big { margin: 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.cd-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid rgba(0,0,0,.1); display: grid; gap: .6rem; }
.cd-foot:empty { display: none; }
.cd-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; }
.cd-total strong { font-size: 1.6rem; }
.cd-note { margin: 0; }
.cd-err { margin: 0; padding: .6rem .9rem; border-radius: .75rem; background: #fdecea; color: #7a1a12; }
.cd-go { width: 100%; }
@media (max-width: 520px) { .cd-label { display: none; } .cd-drawer { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cd-drawer, .cd-overlay, .cd-btn { transition: none; } }
