
/* Law 4 (v0.2.18): the old-basket suppression MOVED to its own toggle —
 * eor-legacy-basket.php, registry row fx_legacy_basket (OFF = suppressed,
 * ON = the Guardian's selection basket returns whole). The drawer no
 * longer owns that decision. */
#fx-drawer-overlay { position: fixed; inset: 0; background: rgba(31,58,36,.45); z-index: 99998; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#fx-drawer-overlay.fx-open { opacity: 1; pointer-events: auto; }
#fx-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 100vw); background: #FAFAF8; z-index: 99999; transform: translateX(105%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18); font-family: 'Jost', system-ui, sans-serif; color: #1A1A1A; box-sizing: border-box; }
#fx-drawer.fx-open { transform: translateX(0); }
#fx-drawer *, #fx-drawer *::before, #fx-drawer *::after { box-sizing: border-box; }
.fx-dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid #E2E8E2; }
.fx-dr-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 24px; color: #1F3A24; margin: 0; }
.fx-dr-close { background: none; border: none; font-size: 26px; line-height: 1; color: #4A5F4F; cursor: pointer; padding: 4px 8px; }
.fx-dr-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.fx-dr-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #C8DEC0; border-radius: 8px; padding: 10px; margin-bottom: 16px; }
.fx-dr-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
/* v0.2.51 — THE STACK: rows stack with the SAME layout; the ✕ sits at the
 * row's right edge (44px hit area, both viewports); a row note shows only
 * when set (a failed commit). The item's own text column flexes. */
.fx-dr-row { margin-bottom: 14px; }
.fx-dr-row .fx-dr-item { margin-bottom: 0; }
.fx-dr-row .fx-dr-item > div { flex: 1 1 auto; min-width: 0; }
.fx-dr-row .fx-dr-vase { margin-top: 8px; }
.fx-dr-row-x { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #C8DEC0; border-radius: 50%; background: #fff; color: #4A5F4F; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.fx-dr-row-x:hover { border-color: #C0392B; color: #C0392B; }
.fx-dr-row-note { display: none; font-size: 12.5px; color: #7a1f1f; background: #FDEBEB; border-left: 3px solid #C0392B; padding: 6px 10px; border-radius: 0 6px 6px 0; margin-top: 6px; }
.fx-dr-row-note.fx-show { display: block; }
.fx-dr-item-name { font-weight: 600; font-size: 14px; color: #1F3A24; }
.fx-dr-item-sub { font-size: 13px; color: #4A5F4F; }
.fx-dr-sec-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 19px; color: #1F3A24; margin: 18px 0 8px; text-align: center; }
.fx-dr-cal { background: #fff; border: 1px solid #C8DEC0; border-radius: 8px; padding: 10px; }
.fx-dr-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fx-dr-cal-nav button { background: none; border: none; font-size: 18px; color: #1F3A24; cursor: pointer; padding: 2px 10px; }
.fx-dr-cal-month { font-weight: 600; font-size: 14px; color: #1F3A24; }
.fx-dr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.fx-dr-cal-grid .fx-dr-dow { font-size: 11px; color: #7a8a7a; text-align: center; padding: 4px 0; }
.fx-dr-day { background: none; border: none; font-size: 13px; padding: 7px 0; text-align: center; border-radius: 6px; cursor: pointer; color: #1A1A1A; }
.fx-dr-day:hover:not(:disabled) { background: #E8F7D5; }
.fx-dr-day:disabled { color: #C6CEC6; text-decoration: line-through; cursor: default; }
.fx-dr-day.fx-sel { background: #1F3A24; color: #fff; font-weight: 600; }
.fx-dr-msg { width: 100%; min-height: 74px; border: 1px solid #C8DEC0; border-radius: 8px; padding: 10px; font-family: 'Jost', system-ui, sans-serif; font-size: 14px; resize: vertical; background: #fff; }
.fx-dr-msg:focus { outline: none; border-color: #85C727; }
.fx-dr-chars { font-size: 11px; color: #7a8a7a; text-align: right; margin-top: 3px; }
.fx-dr-vase { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #C8DEC0; border-radius: 8px; padding: 12px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.fx-dr-vase input { width: 18px; height: 18px; accent-color: #85C727; }
.fx-dr-vase-price { margin-left: auto; font-weight: 600; color: #1F3A24; }
.fx-dr-err { display: none; background: #FDEBEB; border-left: 4px solid #C0392B; color: #7a1f1f; font-size: 13px; padding: 9px 12px; border-radius: 0 6px 6px 0; margin-top: 10px; }
.fx-dr-err.fx-show { display: block; }
.fx-dr-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #E2E8E2; background: #FAFAF8; }
.fx-dr-btn-main { display: block; width: 100%; background: #1F3A24; color: #fff; border: none; border-radius: 8px; font-family: 'Jost', system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 0; cursor: pointer; text-align: center; text-decoration: none; }
.fx-dr-btn-main:hover { background: #2A6132; color: #fff; }
.fx-dr-btn-quiet { display: block; width: 100%; background: none; border: none; color: #4A5F4F; font-family: 'Jost', system-ui, sans-serif; font-size: 13px; padding: 10px 0 0; cursor: pointer; text-align: center; text-decoration: underline; }
.fx-dr-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #E2E8E2; }
.fx-dr-line img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.fx-dr-line-info { flex: 1 1 auto; min-width: 0; }
.fx-dr-line-name { font-size: 13.5px; font-weight: 600; color: #1F3A24; }
.fx-dr-line-sub { font-size: 12px; color: #4A5F4F; }
.fx-dr-line-price { font-size: 13.5px; font-weight: 600; color: #1F3A24; white-space: nowrap; }
/* v0.2.17 — per-item edit controls in the basket step (owner, 14 Aug):
 * a qty stepper and a remove ✕ on every line. */
.fx-dr-line-ctl { display: flex; align-items: center; gap: 8px; }
.fx-dr-lqty { display: inline-flex; align-items: center; border: 1px solid #C8DEC0; border-radius: 7px; background: #fff; overflow: hidden; }
.fx-dr-lqty button { background: none; border: none; width: 26px; height: 26px; font-size: 15px; line-height: 1; color: #1F3A24; cursor: pointer; }
.fx-dr-lqty button:hover { background: #E8F7D5; }
.fx-dr-lqty span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; color: #1F3A24; }
.fx-dr-lrm { background: none; border: none; color: #9AA79A; font-size: 17px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.fx-dr-lrm:hover { color: #C0392B; }
.fx-dr-line.fx-busy { opacity: .45; pointer-events: none; }
.fx-dr-empty { text-align: center; color: #4A5F4F; font-size: 14px; padding: 26px 0 10px; }
.fx-dr-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #1F3A24; padding: 12px 0 4px; }
.fx-dr-coupon { display: flex; gap: 8px; margin-top: 10px; }
.fx-dr-coupon input { flex: 1 1 auto; border: 1px solid #C8DEC0; border-radius: 8px; padding: 9px 10px; font-family: 'Jost', system-ui, sans-serif; font-size: 13px; background: #fff; min-width: 0; }
.fx-dr-coupon button { background: #E8F7D5; border: 1px solid #85C727; color: #1F3A24; border-radius: 8px; font-family: 'Jost', system-ui, sans-serif; font-size: 13px; font-weight: 600; padding: 0 16px; cursor: pointer; }
.fx-dr-coupon-msg { font-size: 12px; margin-top: 6px; color: #4A5F4F; }
.fx-dr-spin { text-align: center; color: #4A5F4F; font-size: 13px; padding: 30px 0; }
/* v0.2.8 — owner (13 Aug): "twice as wide on desktop; on mobile it is
 * perfect." Desktop doubles to 860px; the body breathes with more
 * padding and a taller message box. Mobile untouched. */
@media (min-width: 701px) {
	#fx-drawer { width: min(860px, 92vw); }
	.fx-dr-body { padding: 22px 34px; }
	.fx-dr-head { padding: 20px 34px 14px; }
	.fx-dr-foot { padding: 16px 34px calc(16px + env(safe-area-inset-bottom)); }
	.fx-dr-msg { min-height: 96px; }
	.fx-dr-day { padding: 10px 0; font-size: 14px; }
}
