/**
 * NorthForged Diesel — cart/currency gap styles (Piece D).
 *
 * The drawer shell, free-shipping bar track, floating pill shell, and badge
 * are already styled in style.css. This file only adds what the v2 drawer
 * render (theme.js) needs and style.css lacks: toast, line items, drawer
 * footer rows, util-bar left group, the .on toggle class, and the hidden
 * count badge.
 */

:root {
	--nfd-good: #5fc487; /* success green for the free-shipping unlocked state */
}

/* ---------- utility bar: left group (mockup .u-left) ---------- */
.nfd-u-left { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nfd-u-left span { display: inline-flex; align-items: center; gap: 6px; }
.nfd-u-left svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 640px) {
	.nfd-u-left span:nth-child(2),
	.nfd-u-left span:nth-child(3) { display: none; }
}

/* ---------- currency toggle: mockup .on class (style.css styles aria-pressed) ---------- */
.nfd-currency button.on { background: var(--nfd-orange); color: #fff; }

/* ---------- header cart icon + badge ---------- */
.nfd-cart-link svg { width: 20px; height: 20px; flex: none; }
.nfd-cart-count[hidden] { display: none; } /* class rule's display beats UA [hidden] without this */

/* ---------- drawer line items (port of the mockup .ci family) ---------- */
#cartDrawerCount { color: var(--nfd-muted); font-size: 1.125rem; font-weight: 400; }
.nfd-ci { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nfd-border); }
.nfd-ci img { width: 74px; height: 56px; object-fit: contain; object-position: center; background: #fff; border-radius: 7px; flex: none; }
.nfd-thumb-ph { width: 74px; height: 56px; flex: none; border-radius: 7px; background: var(--nfd-panel); border: 1px dashed var(--nfd-border); }
.nfd-inf { flex: 1; min-width: 0; }
.nfd-ci h4 { margin: 0 0 2px; font-size: 0.9rem; line-height: 1.3; }
.nfd-fp { color: var(--nfd-muted); font-size: 0.78rem; }
.nfd-row2 { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.nfd-qty { display: inline-flex; align-items: center; border: 1px solid var(--nfd-border); border-radius: 7px; overflow: hidden; }
.nfd-qty button { width: 26px; height: 26px; border: 0; background: var(--nfd-panel); color: var(--nfd-text); font-weight: 800; cursor: pointer; }
.nfd-qty button:hover { background: var(--nfd-border); }
.nfd-qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.nfd-lp { font-weight: 800; font-variant-numeric: tabular-nums; }
.nfd-was { color: var(--nfd-muted); font-size: 0.78rem; }
.nfd-rm { background: none; border: 0; color: #e05252; font-size: 0.8rem; font-weight: 700; padding: 0; cursor: pointer; }
.nfd-rm:hover { text-decoration: underline; }

/* ---------- drawer footer rows (mockup .cartfoot .row) ---------- */
.nfd-frow { display: flex; justify-content: space-between; font-size: 0.92rem; }
.nfd-ftotal { font-size: 1.15rem; font-weight: 800; border-top: 1px dashed var(--nfd-border); padding-top: 9px; margin-top: 4px; }
.nfd-note { font-size: 0.78rem; color: var(--nfd-muted); }

/* ---------- free-shipping unlocked ---------- */
.nfd-ship-ok { color: var(--nfd-good); }

/* ---------- floating cart pill internals ---------- */
.nfd-float-cart svg { width: 23px; height: 23px; color: var(--nfd-orange); flex: none; }
.nfd-fc-meta { display: flex; flex-direction: column; line-height: 1.18; }
.nfd-fc-meta b { font-size: 0.92rem; font-weight: 800; white-space: nowrap; }
.nfd-fc-meta span { font-size: 0.75rem; color: var(--nfd-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nfd-fc-go { font-family: var(--nfd-font-head); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nfd-orange); border-left: 1px solid var(--nfd-border); padding-left: 10px; white-space: nowrap; }

/* ---------- toast (port of the mockup .toast) ---------- */
.nfd-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 80px); background: var(--nfd-text); color: var(--nfd-black); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; z-index: 120; transition: transform 0.25s ease; box-shadow: 0 14px 34px rgba(0,0,0,0.5); display: flex; gap: 10px; align-items: center; max-width: 92vw; }
.nfd-toast.show { transform: translate(-50%, 0); }
.nfd-toast button { background: var(--nfd-orange); color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font-weight: 700; cursor: pointer; }

/* ---------- empty cart ---------- */
.nfd-emptycart { text-align: center; color: var(--nfd-muted); padding: 38px 10px; }

/* ---------- footer fine print (mockup .fine) ---------- */
.nfd-fine { border-top: 1px solid var(--nfd-border); padding: 18px 0 26px; font-size: 0.82rem; color: var(--nfd-muted); line-height: 1.65; }
.nfd-fine p { margin: 0; }
