/* Cart v2 — the owner's July 2026 cart design (mockup at ?epss_preview=cart), scoped to .epss-c2.
   Markup: woocommerce/cart/cart-v2.php + cart-empty-v2.php. Logic: mu-plugins/epss-cart2.php. */

body.epss-c2-on.woocommerce-cart { background: #fafafa; }
body.epss-c2-on.woocommerce-cart .epss-content { max-width: 1340px !important; padding: 34px 22px 80px !important; }
body.epss-c2-on.woocommerce-cart .epss-content > .woocommerce { max-width: none !important; padding: 0 !important; background: none !important; }
/* The page's [epss_recently_viewed] block isn't part of the design (the old cart hid it too). */
body.epss-c2-on .epss-rv-wrap, body.epss-c2-on .epss-rv-grid, body.epss-c2-on .epss-rv-empty { display: none !important; }

.epss-c2 {
	--green: #2CA660; --green-dk: #1E7A52; --green-deep: #15663D;
	--ink: #222222; --muted: #717171; --line: #EBEBEB; --line2: #DDDDDD;
	--soft: 0 6px 20px rgba(0,0,0,.08); --soft2: 0 2px 8px rgba(0,0,0,.05);
	color: var(--ink); font-family: Roboto, system-ui, Arial, sans-serif; -webkit-font-smoothing: antialiased;
	transition: opacity .15s;
}
.epss-c2 *, .epss-c2 *::before, .epss-c2 *::after { box-sizing: border-box; }
.epss-c2.is-busy { opacity: .55; pointer-events: none; }
.epss-c2 a { color: inherit; }

/* EPSS brand heading — Roboto Slab, green fill + black stroke */
.epss-c2 h1, .epss-c2 .sec__t, .epss-c2 .totals h3, .epss-c2 .empty h3 {
	font-family: "Roboto Slab", serif; font-weight: 800; letter-spacing: .005em; color: #34C26E;
	-webkit-text-stroke: 2px #000; paint-order: stroke fill;
}
.epss-c2 h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
.epss-c2 .sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.epss-c2 .grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.epss-c2__notices:empty { display: none; }
.epss-c2__notices { margin-bottom: 18px; }

/* section card */
.epss-c2 .sec { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft2); }
.epss-c2 .sec + .sec { margin-top: 22px; }
.epss-c2 .sec__head { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; padding: 20px 24px 16px; }
.epss-c2 .sec__ic { width: 48px; height: 48px; border-radius: 14px; background: #f4f8f5; display: flex; align-items: center; justify-content: center; flex: none; }
.epss-c2 .sec__ic svg { width: 34px; height: 34px; }
.epss-c2 .sec--ship .sec__ic { background: #eef6f1; }
.epss-c2 .sec__t { font-size: 19px; -webkit-text-stroke: 1.2px #000; flex: 1 1 0; min-width: 0; }
.epss-c2 .sec__t small { display: block; font-family: Roboto, sans-serif; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; -webkit-text-stroke: 0; letter-spacing: 0; }
.epss-c2 .sec__tline { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.epss-c2 .pk-addr { font-family: Roboto, sans-serif; font-weight: 600; font-size: 13px; color: var(--muted); -webkit-text-stroke: 0; letter-spacing: 0; white-space: nowrap; }
.epss-c2 .sec__body { padding: 0 24px 8px; }
.epss-c2 .secnote { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin: 10px 0; }

/* store pill dropdown (a <details>, so it works without JS) */
.epss-c2 .storepick { position: relative; z-index: 5; display: inline-block; }
.epss-c2 .storepick > summary { list-style: none; }
.epss-c2 .storepick > summary::-webkit-details-marker { display: none; }
.epss-c2 .sp-head { display: inline-flex; align-items: center; gap: 7px; background: #f1f7f3; border: 1.5px solid #d5e6db; border-radius: 999px; padding: 5px 13px 5px 8px; min-height: 36px; cursor: pointer;
	font-family: Roboto, sans-serif; font-weight: 700; font-size: 14.5px; color: var(--green-deep); -webkit-text-stroke: 0; letter-spacing: 0; transition: border-color .15s, background .15s; }
.epss-c2 .sp-head:hover, .epss-c2 .storepick[open] .sp-head { border-color: var(--green); background: #e8f2ec; }
.epss-c2 .sp-head .sp-pin { width: 22px; height: 22px; flex: none; }
.epss-c2 .sp-car { color: var(--green); font-size: 12px; transition: transform .15s; }
.epss-c2 .storepick[open] .sp-car { transform: rotate(180deg); }
.epss-c2 .storemenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(0,0,0,.18); padding: 8px; z-index: 60; }
.epss-c2 .storemenu, .epss-c2 .storemenu * { font-family: Roboto, sans-serif; -webkit-text-stroke: 0; paint-order: normal; letter-spacing: 0; }
.epss-c2 .storemenu__h { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 6px; }
.epss-c2 .storeitem { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.epss-c2 .storeitem small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.epss-c2 .storeitem:hover { background: #f4faf6; }
.epss-c2 .storeitem.on { background: #eafaf1; color: var(--green-dk); }
.epss-c2 .storeitem .pin { width: 24px; height: 24px; flex: none; }
.epss-c2 .storeitem .chk { margin-left: auto; width: 17px; height: 17px; fill: var(--green); flex: none; }

/* pickup mini-map */
.epss-c2 .pickloc { padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
/* isolation keeps Leaflet's internal z-indexes (up to 1000) inside the map box, under the fixed bars */
.epss-c2 .pickmap { width: 100%; height: 190px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eaf1ea; position: relative; isolation: isolate; z-index: 0; }
.epss-c2 .pickmap .leaflet-div-icon { background: transparent; border: 0; }
.epss-c2 .pickmap .epss-map-storepin { cursor: pointer; }
.epss-c2 .pickloc__dir { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--green-dk); text-decoration: underline; }

/* item — mobile-first card, columns on desktop */
.epss-c2 .item { display: grid; grid-template-columns: 80px 1fr auto;
	grid-template-areas: "thumb name price" "thumb variant qty" "ship ship ship";
	gap: 10px 14px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.epss-c2 .sec__body > .item:first-child, .epss-c2 .pickloc + .item, .epss-c2 .secnote + .item { border-top: 0; }
.epss-c2 .thumb { grid-area: thumb; width: 80px; height: 80px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.epss-c2 .thumb img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.epss-c2 .c-name { grid-area: name; min-width: 0; align-self: end; }
.epss-c2 .c-name .nm { font-weight: 700; font-size: 15px; line-height: 1.3; }
.epss-c2 .c-name .nm a { text-decoration: none; color: var(--ink); }
.epss-c2 .c-name .nm a:hover { text-decoration: underline; }
.epss-c2 .c-name .sku { color: var(--muted); font-size: 13px; margin-top: 3px; }
.epss-c2 .c-variant { grid-area: variant; align-self: start; display: flex; flex-wrap: wrap; gap: 6px; }
.epss-c2 .variant { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green-dk); background: #eafaf1; border: 1px solid #cdebda; border-radius: 20px; padding: 5px 12px; }
.epss-c2 .variant.none { color: var(--muted); background: #f5f5f5; border-color: var(--line); font-weight: 400; }
.epss-c2 .c-price { grid-area: price; justify-self: end; font-weight: 800; font-size: 16px; text-align: right; }
.epss-c2 .c-price .each { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.epss-c2 .c-qty { grid-area: qty; justify-self: end; }
.epss-c2 .qty { display: inline-flex; align-items: center; gap: 8px; }
.epss-c2 .qty button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; font-size: 18px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.epss-c2 .qty button:hover { border-color: #222; }
.epss-c2 .qty-in { width: 34px; text-align: center; font-size: 15px; font-weight: 700; border: 0; background: transparent; padding: 0; -moz-appearance: textfield; }
.epss-c2 .qty-in::-webkit-outer-spin-button, .epss-c2 .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.epss-c2 .qty--one b { min-width: 20px; text-align: center; }
.epss-c2 .c-ship { grid-area: ship; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.epss-c2 .eta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.epss-c2 .eta svg { width: 16px; height: 16px; flex: none; fill: var(--green); }
.epss-c2 .eta .cost { margin-left: auto; color: var(--muted); font-weight: 700; }
.epss-c2 .eta--out { color: #A23B00; }
.epss-c2 .eta--out a { color: var(--green-dk); font-weight: 700; text-decoration: underline; }
.epss-c2 .lowstock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #B26B00; }
.epss-c2 .lowstock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F9A825; }
.epss-c2 .item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.epss-c2 .linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 2px; min-height: 40px; text-decoration: none; }
.epss-c2 a.linkbtn span { text-decoration: underline; }
.epss-c2 a.linkbtn:hover { color: var(--green-dk); }
.epss-c2 .linkbtn.rm { color: #8a8a8a; }
.epss-c2 .linkbtn.rm:hover { color: #C62828; }
.epss-c2 .linkbtn.locked { color: var(--muted); font-weight: 600; cursor: default; }
.epss-c2 .mini { width: 15px; height: 15px; flex: none; }
.epss-c2 .mini2 { width: 20px; height: 20px; flex: none; }
.epss-c2 .item-actions .sep { color: var(--line2); }

/* section-level shipping: one shipment, one fee */
.epss-c2 .shipchooser { padding: 16px 0 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.epss-c2 .shipchooser__h { font-weight: 800; font-size: 14px; }
.epss-c2 .shipchooser__h small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.epss-c2 .segship { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin-top: 11px; }
.epss-c2 .segopt { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line2); border-radius: 14px; padding: 11px 14px; cursor: pointer; background: #fff; text-decoration: none; color: var(--ink); min-height: 44px; transition: border-color .12s, background .12s; }
.epss-c2 .segopt:hover { border-color: #222; }
.epss-c2 .segopt.on { border-color: var(--green); background: #f2fbf6; box-shadow: inset 0 0 0 1px var(--green); }
.epss-c2 .segradio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3d3c9; flex: none; position: relative; }
.epss-c2 .segopt.on .segradio { border-color: var(--green); }
.epss-c2 .segopt.on .segradio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.epss-c2 .segbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.epss-c2 .segbody .l1 { font-weight: 700; font-size: 13.5px; }
.epss-c2 .segbody .l2 { color: var(--muted); font-size: 12px; margin-top: 2px; }
.epss-c2 .segcost { font-weight: 800; font-size: 14px; white-space: nowrap; }
.epss-c2 .moreopts > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green-dk); text-decoration: underline; list-style: none; padding: 4px 2px; }
.epss-c2 .moreopts > summary::-webkit-details-marker { display: none; }
.epss-c2 .moreopts .segship { margin-top: 8px; max-width: none; }
.epss-c2 .zipbox { margin-top: 12px; }
.epss-c2 .zipbox > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green-dk); text-decoration: underline; list-style: none; }
.epss-c2 .zipbox > summary::-webkit-details-marker { display: none; }
.epss-c2 .zipbox[open] > summary { margin-bottom: 10px; }
.epss-c2 .zipbox__row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.epss-c2 .zipbox__row select, .epss-c2 .zipbox__row input { flex: 1 1 140px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; }
.epss-c2 .zipbox__row button, .epss-c2 .coupon-form button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.epss-c2 .zipbox__row button:hover, .epss-c2 .coupon-form button:hover { background: var(--green-dk); }

.epss-c2-back { display: inline-block; margin: 18px 4px 0; font-weight: 700; font-size: 14px; color: var(--green-dk); text-decoration: none; }
.epss-c2-back:hover { text-decoration: underline; }
.epss-c2 .cart-collaterals:empty { display: none; }

/* summary */
.epss-c2 .totals { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft); padding: 22px 22px 24px; }
.epss-c2 .totals h3 { margin: 0 0 16px; font-size: 19px; -webkit-text-stroke: 1.2px #000; }
.epss-c2 .totals__sw { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.epss-c2 .tr { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; padding: 9px 0; }
.epss-c2 .tr .k { color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.epss-c2 .tr .ki { width: 22px; height: 22px; flex: none; display: inline-flex; }
.epss-c2 .tr .ki svg { width: 22px; height: 22px; }
.epss-c2 .tr--coupon .coupon-x { font-size: 12px; color: #8a8a8a; text-decoration: underline; }
.epss-c2 .tr.big { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 800; }
.epss-c2 .totals__note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }
.epss-c2 .cta { display: block; text-align: center; margin-top: 18px; width: 100%; background: var(--green); color: #fff !important; border: 0; border-radius: 12px; padding: 15px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s; }
.epss-c2 .cta:hover { background: var(--green-dk); }
.epss-c2 .coupon-box { margin-top: 14px; }
.epss-c2 .coupon-box > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green-dk); text-decoration: underline; list-style: none; }
.epss-c2 .coupon-box > summary::-webkit-details-marker { display: none; }
.epss-c2 .coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.epss-c2 .coupon-form input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; font-size: 14px; }
.epss-c2 .reassure { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.epss-c2 .reassure div { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #555; }
.epss-c2 .reassure svg { width: 20px; height: 20px; flex: none; }

/* swatches (summary + mobile bar) */
.epss-c2 .mbar__sw { position: relative; width: 44px; height: 44px; flex: none; }
.epss-c2 .mbar__sw img { width: 100%; height: 100%; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 9px; margin: 0; }
.epss-c2 .mbar__sw .badge { position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; }
.epss-c2 .mbar__sw .badge svg { width: 13px; height: 13px; display: block; }

/* fixed mobile checkout bar */
.epss-c2 .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.12); display: none; flex-direction: column; gap: 9px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
.epss-c2 .mbar__row { display: flex; align-items: center; gap: 12px; }
.epss-c2 .mbar__swatches { display: flex; gap: 7px; flex: 1; min-width: 0; overflow-x: auto; padding: 4px 0; }
.epss-c2 .mbar .mbar__sw { width: 40px; height: 40px; }
.epss-c2 .mbar__sum { flex: none; display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.epss-c2 .mbar__break { font-size: 11.5px; color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.35; }
.epss-c2 .mbar__break b { color: var(--ink); font-weight: 700; }
.epss-c2 .mbar__break .free { color: var(--green-deep); font-weight: 700; }
.epss-c2 .mbar__total { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: right; line-height: 1.05; white-space: nowrap; }
.epss-c2 .mbar__total b { font-size: 20px; font-weight: 900; color: var(--ink); display: block; }
.epss-c2 .mbar .mbar__cta { margin: 0; padding: 14px; font-weight: 800; font-size: 15.5px; }
.epss-c2 .mbar.hidden { display: none !important; }
@media (max-width: 899px) { .epss-c2 .mbar { display: flex; } .epss-c2 { padding-bottom: 132px; } }

/* undo toast */
.epss-c2 .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #222; color: #fff; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.28); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 260; max-width: 92vw; }
.epss-c2 .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.epss-c2 .toast .undo { background: none; border: 0; color: #7ee2a8; font-weight: 800; cursor: pointer; font-size: 14px; text-decoration: underline; padding: 0; }
@media (max-width: 899px) { .epss-c2 .toast { bottom: 150px; } }

/* empty state */
.epss-c2 .empty { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft2); padding: 52px 24px; text-align: center; }
.epss-c2 .empty h3 { margin: 0 0 6px; font-size: 21px; -webkit-text-stroke: 1.4px #000; }
.epss-c2 .empty p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.epss-c2 .empty a { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 12px; font-weight: 700; }

/* without JS the quantity box needs its Update button; with JS it auto-saves */
.epss-c2-js .epss-c2-nojs { display: none; }
.epss-c2-nojs { padding: 12px 0 0; }

@media (min-width: 620px) {
	.epss-c2 .item { grid-template-columns: 96px 1fr auto; gap: 14px 18px; }
	.epss-c2 .thumb { width: 96px; height: 96px; }
}
@media (min-width: 900px) {
	.epss-c2 .grid { grid-template-columns: 1fr 348px; gap: 32px; align-items: start; }
	.epss-c2 .totals { position: sticky; top: 22px; }
}
@media (max-width: 560px) {
	.epss-c2 h1 { font-size: 28px; }
	.epss-c2 .sec__head, .epss-c2 .sec__body { padding-left: 16px; padding-right: 16px; }
	.epss-c2 .pk-addr { white-space: normal; }
	.epss-c2 .storemenu { min-width: 250px; }
}

/* Phones: give the product name the full width; price + quantity get their own row. */
@media (max-width: 619px) {
	.epss-c2 .item { grid-template-columns: 72px 1fr auto; grid-template-areas: "thumb name name" "thumb variant variant" "thumb price qty" "ship ship ship"; gap: 8px 12px; }
	.epss-c2 .thumb { width: 72px; height: 72px; }
	.epss-c2 .c-price { justify-self: start; text-align: left; align-self: center; }
	.epss-c2 .c-name { align-self: start; }
}

/* notices inside the cart use the full content width */
.epss-c2 .epss-c2__notices .woocommerce-message,
.epss-c2 .epss-c2__notices .woocommerce-info,
.epss-c2 .epss-c2__notices .woocommerce-error { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.epss-c2 .epss-c2__notices .woocommerce-notices-wrapper { max-width: none !important; margin: 0 !important; padding: 0 !important; }
