/* cart.css — Phase 1C commerce surfaces, F2-branded (navy #032268 / gold #EEC011,
   Oswald + Epilogue, pill buttons). Scoped under .f2- so it never touches the existing
   USMC-styled builder chrome (that reskin is 1E). */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Epilogue:wght@400;500;600;700&display=swap');

:root {
  --f2-navy: #032268; --f2-navy-deep: #04163F; --f2-gold: #EEC011;
  --f2-ink: #04163F; --f2-mute: #6b7280; --f2-line: #e6e6ea; --f2-bg: #f4f4f3;
}

/* Purchase panel (injected under the Save Design action) */
.f2-purchase { margin-top: 16px; border: 1px solid var(--f2-line); border-radius: 14px; padding: 18px 20px;
  background: #fff; font-family: 'Epilogue', system-ui, sans-serif; }
.f2-purchase h3 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  font-size: 14px; color: var(--f2-navy); margin: 0 0 14px; }
.f2-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.f2-field { display: flex; flex-direction: column; gap: 6px; }
.f2-field > label { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--f2-mute); }
.f2-seg { display: inline-flex; border: 1px solid var(--f2-navy); border-radius: 300px; overflow: hidden; }
.f2-seg button { border: 0; background: #fff; color: var(--f2-navy); font-family: 'Epilogue', sans-serif;
  font-weight: 600; font-size: 13px; padding: 9px 20px; cursor: pointer; transition: background .15s; }
.f2-seg button.is-active { background: var(--f2-navy); color: #fff; }
.f2-select, .f2-qty { font-family: 'Epilogue', sans-serif; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--f2-line); border-radius: 10px; background: #fff; color: var(--f2-ink); }
.f2-qty { width: 68px; }
.f2-btn { font-family: 'Epilogue', sans-serif; font-weight: 700; font-size: 14px; border: 0; border-radius: 300px;
  padding: 12px 26px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s; }
.f2-btn:hover { filter: brightness(.96); }
.f2-btn-gold { background: var(--f2-gold); color: var(--f2-navy); }
.f2-btn-navy { background: var(--f2-navy); color: #fff; }
.f2-btn:disabled { opacity: .55; cursor: default; filter: none; }
.f2-hint { font-size: 12px; color: var(--f2-mute); margin-top: 12px; line-height: 1.5; }

/* (Floating cart FAB removed — the nav "Cart" item is the single cart trigger.) */

/* Drawer */
.f2-scrim { position: fixed; inset: 0; background: rgba(4, 22, 63, .45); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 1001; }
.f2-scrim.is-open { opacity: 1; visibility: visible; }
.f2-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 392px; max-width: 92vw; background: var(--f2-bg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1); z-index: 1002; display: flex;
  flex-direction: column; font-family: 'Epilogue', sans-serif; box-shadow: -12px 0 40px rgba(4, 22, 63, .22); }
.f2-drawer.is-open { transform: translateX(0); }
.f2-drawer-head { background: var(--f2-navy); color: #fff; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.f2-drawer-head h2 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 18px; margin: 0; }
.f2-drawer-close { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.f2-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.f2-line { background: #fff; border: 1px solid var(--f2-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.f2-line-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f2-line-title { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 14px; color: var(--f2-navy); }
.f2-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 300px; white-space: nowrap; }
.f2-badge-digital { background: #e7edff; color: var(--f2-navy); }
.f2-badge-physical { background: #fff3cf; color: #7a5c00; }
.f2-line-meta { font-size: 12px; color: var(--f2-mute); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.f2-line-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #9aa1b0; margin-top: 6px; }
.f2-remove { background: transparent; border: 0; color: #b42318; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.f2-drawer-foot { border-top: 1px solid var(--f2-line); padding: 18px 20px; background: #fff; }
.f2-checkout { width: 100%; }
.f2-empty { text-align: center; color: var(--f2-mute); padding: 48px 12px; font-size: 14px; }

/* Toast */
.f2-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--f2-navy-deep);
  color: #fff; font-family: 'Epilogue', sans-serif; font-size: 14px; padding: 12px 22px; border-radius: 300px; z-index: 1100;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(4, 22, 63, .3); }
.f2-toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.f2-toast.is-error { background: #8a1c13; }
