/* Comflo storefront runtime: the cart drawer, checkout and toasts. Colours and radius come
   from the theme's CSS variables, so the drawer looks like part of the store. */
.cf-drawer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); }
.cf-drawer[hidden] { display: none; }
.cf-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 440px); overflow-y: auto; padding: 20px; background: var(--bg, #fff); color: var(--fg, #111); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); animation: cf-in .22s ease; font-family: var(--font-body, system-ui, sans-serif); }
@keyframes cf-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cf-panel { animation: none; } }
.cf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cf-title { flex: 1; margin: 0; font-family: var(--font-heading, inherit); font-size: 1.35rem; }
.cf-icon { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cf-icon:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.cf-icon:focus-visible, .cf-qty button:focus-visible, .cf-method input:focus-visible { outline: 2px solid var(--accent, #111); outline-offset: 2px; }
.cf-muted { opacity: .7; }
.cf-small { font-size: .85rem; }
.cf-items { display: grid; gap: 14px; margin-bottom: 18px; }
.cf-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.cf-thumb { width: 64px; height: 64px; border-radius: calc(var(--radius, 8px) * .6); object-fit: cover; background: color-mix(in srgb, currentColor 8%, transparent); }
.cf-item-name { font-weight: 600; }
.cf-price { white-space: nowrap; }
.cf-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cf-qty button { min-width: 30px; height: 30px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.cf-qty .cf-remove { border: 0; min-width: 0; padding: 0; margin-left: auto; text-decoration: underline; font-size: .85rem; opacity: .75; }
.cf-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-size: 1.05rem; }
.cf-form textarea { resize: vertical; }
.cf-methods { border: 0; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.cf-method { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: var(--radius, 8px); cursor: pointer; }
.cf-method:has(input:checked) { border-color: var(--accent, currentColor); box-shadow: 0 0 0 1px var(--accent, currentColor); }
.cf-note { white-space: pre-line; padding: 12px 14px; border-radius: var(--radius, 8px); background: color-mix(in srgb, var(--accent, #888) 10%, transparent); font-size: .92rem; }
.cf-error { color: var(--sale, #b42318); font-weight: 500; }
.cf-panel .button { margin-top: 10px; }
.cf-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1001; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: #111; color: #fff; font: 500 .92rem/1.4 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.lead-form__status.is-success { color: inherit; font-weight: 600; }
.lead-form__status.is-error { color: var(--sale, #b42318); }
[data-comflo-cart-count][hidden] { display: none !important; }
