/* =====================================================
   Cart drawer, checkout, thank-you — Aussie Peptide Co
   ===================================================== */

/* ---------- Drawer ---------- */
#apcCartDrawer { width: min(460px, 100vw); border: 0; box-shadow: -12px 0 40px rgba(1, 49, 25, .18); }
#apcCartDrawer .offcanvas-body { padding: 0; display: flex; flex-direction: column; }
#apcCartDrawerBody { display: flex; flex-direction: column; height: 100%; }
#apcCartDrawer.is-busy #apcCartDrawerBody { opacity: .55; pointer-events: none; }
.apc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-light); }
.apc-drawer-title { font-size: var(--fs-lg); margin: 0; }
.apc-drawer-title small { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); margin-left: 4px; }
.apc-drawer-close { background: none; border: 0; font-size: 1.1rem; color: var(--text-muted); padding: 6px; }
.apc-drawer-close:hover { color: var(--text-dark); }
.apc-drawer-scroll { flex: 1; overflow-y: auto; padding: 18px 22px; }
.apc-drawer-items { list-style: none; margin: 0; padding: 0; }
.apc-drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; }
.apc-drawer-thumb img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-section); border-radius: 10px; }
.apc-drawer-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apc-drawer-name { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--text-dark); }
.apc-drawer-sku { font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace; }
.apc-drawer-price { font-weight: 700; color: var(--brand-dark); margin-top: 4px; }
.apc-drawer-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.apc-drawer-remove { background: none; border: 0; color: var(--text-muted); padding: 2px; }
.apc-drawer-remove:hover { color: #c23a4c; }
.apc-qty { display: inline-flex; align-items: center; background: var(--bg-section); border-radius: 8px; overflow: hidden; }
.apc-qty-btn { width: 30px; height: 32px; border: 0; background: transparent; font-weight: 700; color: var(--text-dark); cursor: pointer; }
.apc-qty-btn:hover { background: var(--brand-light); color: var(--brand); }
.apc-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.apc-qty-value { min-width: 28px; text-align: center; font-weight: 700; font-size: var(--fs-sm); }
.apc-drawer-note, .apc-co-note { display: flex; gap: 12px; background: #fff8e8; border: 1px solid #f7e2b0; border-radius: var(--radius-md); padding: 12px 14px; margin: 6px 0 14px; font-size: var(--fs-sm); }
.apc-drawer-note i, .apc-co-note i { color: var(--gold); font-size: 1.2rem; }
.apc-drawer-note strong, .apc-co-note strong { display: block; color: #6a4a00; }
.apc-drawer-note span, .apc-co-note span { color: #7a5a10; font-size: var(--fs-xs); }
.apc-drawer-suggest { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.apc-suggest-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 10px 12px; }
.apc-suggest-item img { width: 48px; height: 48px; object-fit: contain; background: var(--bg-section); border-radius: 8px; }
.apc-suggest-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.apc-suggest-name { font-weight: 600; font-size: var(--fs-sm); color: var(--text-dark); }
.apc-suggest-price { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.apc-suggest-add { border: 1.5px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.apc-suggest-add:hover, .apc-suggest-add.added { background: var(--brand); color: #fff; }
.apc-suggest-add.loading { opacity: .5; }
.apc-drawer-more { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--border-light); border-radius: var(--radius-md); padding: 12px; color: var(--text-dark); font-weight: 600; font-size: var(--fs-sm); }
.apc-drawer-more:hover { border-color: var(--brand); color: var(--brand); }
.apc-drawer-foot { border-top: 1px solid var(--border-light); padding: 16px 22px 20px; background: #fff; }
.apc-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.apc-drawer-subtotal span { font-weight: 600; color: var(--text-muted); }
.apc-drawer-subtotal strong { font-family: var(--font-heading); font-size: var(--fs-xl); color: var(--brand-dark); }
.apc-drawer-gst, .apc-drawer-shipnote { text-align: right; font-size: var(--fs-xs); color: var(--text-muted); }
.apc-drawer-checkout { width: 100%; text-align: center; margin-top: 12px; padding: 14px; font-size: var(--fs-base); }
.apc-drawer-continue { display: block; width: 100%; background: none; border: 0; margin-top: 10px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.apc-drawer-continue:hover { color: var(--brand); }
.apc-drawer-empty { text-align: center; padding: 60px 24px; }
.apc-drawer-empty i { font-size: 3rem; color: var(--brand); opacity: .4; display: block; margin-bottom: 12px; }
.apc-drawer-empty h3 { font-size: var(--fs-lg); }
.apc-drawer-empty p { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Free shipping bar ---------- */
.apc-freeship { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; }
.apc-freeship-title { display: block; font-family: var(--font-heading); font-size: var(--fs-sm); color: var(--text-dark); }
.apc-freeship-title i { color: var(--brand); }
.apc-freeship-sub { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.apc-freeship .apc-progress { margin: 10px 0 12px; }
.apc-freeship-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apc-tier { background: var(--bg-section); border-radius: 10px; padding: 10px 12px; border: 1px solid transparent; }
.apc-tier small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.apc-tier strong { display: block; font-size: var(--fs-sm); margin-top: 2px; }
.apc-tier span { font-size: var(--fs-xs); color: var(--text-muted); }
.apc-tier.is-unlocked { border-color: var(--brand); background: var(--brand-light); }
.apc-tier.is-unlocked strong { color: var(--brand); }

/* ---------- Checkout: distraction-free ---------- */
body.apc-checkout-minimal .announcement-bar, body.apc-checkout-minimal .topbar, body.apc-checkout-minimal .site-header, body.apc-checkout-minimal .site-footer, body.apc-checkout-minimal .newsletter-section, body.apc-checkout-minimal .page-hero, body.apc-checkout-minimal .shop-breadcrumb, body.apc-checkout-minimal #backToTop { display: none !important; }
body.apc-checkout-minimal .site-main { min-height: 100vh; }
body.apc-checkout-minimal .woo-page-section { padding: 0; }
body.apc-checkout-minimal .woo-page-section > .container { max-width: none; padding: 0; }
.apc-checkout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 992px) { .apc-checkout { grid-template-columns: 42% 58%; } }
.apc-co-panel { background: #0f2a1c; background: linear-gradient(160deg, #123a26 0%, #013119 100%); color: var(--text-on-dark); }
.apc-co-panel-inner { max-width: 440px; margin: 0 auto; padding: 44px 28px 60px; }
@media (min-width: 992px) { .apc-co-panel-inner { position: sticky; top: 0; margin-left: auto; margin-right: 0; padding-right: 48px; } }
.apc-co-logo img { max-width: 210px; margin-bottom: 36px; }
.apc-co-items { list-style: none; margin: 0 0 14px; padding: 0; }
.apc-co-item { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.apc-co-thumb img { width: 44px; height: 44px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: 8px; }
.apc-co-name { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.apc-co-price { font-weight: 700; color: #fff; font-size: var(--fs-sm); }
.apc-qty-dark { background: rgba(255,255,255,.1); }
.apc-qty-dark .apc-qty-btn { color: #fff; }
.apc-qty-dark .apc-qty-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.apc-qty-dark .apc-qty-value { color: #fff; }
.apc-co-note { background: rgba(245, 166, 35, .12); border-color: rgba(245, 166, 35, .35); }
.apc-co-note strong { color: #f5d28a; }
.apc-co-note span { color: #d9c9a2; }
.apc-co-note a { display: inline-block; margin-top: 6px; color: #fff; font-weight: 700; text-decoration: underline; font-size: var(--fs-xs); }
.apc-co-more { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: var(--fs-sm); margin: 6px 0 18px; }
.apc-co-more:hover { color: var(--gold); }
.apc-co-totals { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin-bottom: 18px; }
.apc-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: var(--fs-sm); }
.apc-co-totals .apc-total-row > span { color: var(--text-on-dark-muted); }
.apc-co-totals .apc-total-row > span:last-child, .apc-co-totals .apc-total-row .amount { color: #fff; font-weight: 600; }
.apc-co-totals .apc-total-due { flex-direction: column; align-items: flex-start; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding-top: 14px; }
.apc-co-totals .apc-total-due > span:first-child { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; display: flex; flex-direction: column; }
.apc-co-totals .apc-total-due small { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text-on-dark-muted); margin-top: 2px; order: 2; }
.apc-co-totals .apc-total-amount, .apc-co-totals .apc-total-amount .amount { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.apc-co-panel .apc-freeship { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.apc-co-panel .apc-freeship-title { color: #fff; }
.apc-co-panel .apc-freeship-sub, .apc-co-panel .apc-tier span, .apc-co-panel .apc-tier small { color: var(--text-on-dark-muted); }
.apc-co-panel .apc-tier { background: rgba(255,255,255,.06); }
.apc-co-panel .apc-tier strong { color: #fff; }
.apc-co-panel .apc-tier.is-unlocked { border-color: var(--gold); }
.apc-co-panel .apc-progress { background: rgba(255,255,255,.12); }
.apc-co-panel .apc-progress span { background: var(--gold); }
.apc-co-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: var(--fs-xs); color: var(--text-on-dark-muted); }
.apc-co-trust i { color: var(--gold); margin-right: 3px; }

.apc-co-form { background: #fff; }
.apc-co-form-inner { max-width: 640px; margin: 0 auto; padding: 32px 28px 80px; }
@media (min-width: 992px) { .apc-co-form-inner { margin-left: 0; padding-left: 56px; } }
.apc-co-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; font-size: var(--fs-sm); }
.apc-co-back { color: var(--text-muted); font-weight: 600; }
.apc-co-back:hover { color: var(--brand); }
.apc-co-secure { color: var(--brand); font-weight: 600; }
.apc-co-heading, .woocommerce-checkout .apc-co-form h3 { font-family: var(--font-heading); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dark); font-weight: 700; margin: 30px 0 14px; }
.woocommerce-checkout .apc-co-form h3:first-child { margin-top: 0; }
.woocommerce-checkout .apc-co-form form.checkout { display: block; }
.woocommerce-checkout .apc-co-form #customer_details { grid-row: auto; grid-column: auto; }
.woocommerce-checkout .apc-co-form #order_review { grid-column: auto; background: none; padding: 0; position: static; border-radius: 0; }
.woocommerce-checkout .apc-co-form .col2-set { display: block; }
.woocommerce-checkout .apc-co-form .col2-set .col-1, .woocommerce-checkout .apc-co-form .col2-set .col-2 { width: 100%; }
.woocommerce-checkout .apc-co-form .woocommerce-billing-fields h3::before { content: ""; }
.woocommerce-checkout .apc-co-form form .form-row label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-dark); }
.woocommerce-checkout .apc-co-form form .form-row .input-text, .woocommerce-checkout .apc-co-form form .form-row select, .woocommerce-checkout .apc-co-form form .form-row textarea, .woocommerce-checkout .apc-co-form .select2-container .select2-selection--single { border-radius: 10px; padding: 12px 14px; }
.woocommerce-checkout .apc-co-form form .form-row textarea { min-height: 90px; }
.woocommerce-checkout .apc-co-form #billing_email_field, .woocommerce-checkout .apc-co-form #billing_phone_field { width: 100%; }
.woocommerce-checkout .apc-co-form .woocommerce-shipping-fields h3 label { display: flex !important; gap: 8px; align-items: center; letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.woocommerce-checkout .apc-co-form .woocommerce-additional-fields h3 { display: none; }
.apc-option-card { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border-light); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; }
.apc-option-card:hover { border-color: #b7c7bd; }
.apc-option-card input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.apc-option-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.apc-option-body strong { font-size: var(--fs-sm); color: var(--text-dark); }
.apc-option-body strong i { color: var(--brand); margin-right: 4px; }
.apc-option-body span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.apc-option-price { font-weight: 700; color: var(--text-dark); white-space: nowrap; font-size: var(--fs-sm); }
.apc-ship-list { list-style: none; margin: 14px 0 0; padding: 0; }
.apc-ship-item.is-selected .apc-option-card, .apc-option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.apc-delivery-options { margin-top: 16px; }
.apc-option-safe .apc-option-body span { font-size: 11.5px; }
.apc-ship-note { color: var(--text-muted); font-size: var(--fs-sm); }
.apc-coupon { display: flex; gap: 10px; }
.apc-coupon .input-text { flex: 1; border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 14px; }
.apc-coupon .btn { padding: 10px 22px; }
.apc-coupon-msg .woocommerce-message, .apc-coupon-msg .woocommerce-error { margin-top: 10px; }
.apc-review-totals { background: var(--bg-section); border-radius: 12px; padding: 8px 16px; }
.apc-review-totals .apc-total-row > span:first-child { color: var(--text-muted); font-weight: 500; }
.apc-review-totals .apc-total-coupon { color: var(--brand); }
.apc-review-totals .apc-total-due { border-top: 1px solid var(--border-light); margin-top: 6px; padding-top: 12px; }
.apc-review-totals .apc-total-due > span:first-child { color: var(--text-dark); font-weight: 700; display: flex; flex-direction: column; }
.apc-review-totals .apc-total-due small { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.apc-review-totals .apc-total-amount, .apc-review-totals .apc-total-amount .amount { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 800; color: var(--brand-dark); }
.woocommerce-checkout .apc-co-form #payment { background: transparent; margin-top: 30px; }
.woocommerce-checkout .apc-co-form #payment::before { content: "Payment"; display: block; font-family: var(--font-heading); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods { border: 0; margin: 0; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li { border: 1.5px solid var(--border-light); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li label { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods input[type=radio] { accent-color: var(--brand); }
.pay-badge { display: inline-block; background: var(--brand-light); color: var(--brand); border: 1px solid #cfe0d4; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.woocommerce-checkout .apc-co-form #payment .payment_box { background: #fff; }
.woocommerce-checkout .apc-co-form .woocommerce-terms-and-conditions-wrapper { margin-top: 20px; }
.woocommerce-checkout .apc-co-form #place_order { width: 100%; padding: 16px; font-size: var(--fs-base); border-radius: 12px; margin-top: 10px; }
.woocommerce-checkout .apc-co-form .woocommerce-privacy-policy-text { margin-bottom: 8px; }
.woocommerce-checkout .apc-co-form .blockUI.blockOverlay { border-radius: 12px; }
.woocommerce-checkout .apc-co-form .woocommerce-NoticeGroup { margin-bottom: 20px; }

/* ---------- Thank you ---------- */
.apc-thankyou { max-width: 1040px; margin: 0 auto; }
.apc-ty-hero { text-align: center; padding: 20px 0 30px; }
.apc-ty-hero.is-failed i { font-size: 3rem; color: #c23a4c; }
.apc-ty-check { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 30px rgba(22, 67, 44, .25); margin-bottom: 16px; }
.apc-ty-hero h1 { font-size: var(--fs-3xl); margin-bottom: 8px; }
.apc-ty-lead { color: var(--text-muted); max-width: 560px; margin: 0 auto 22px; }
.apc-ty-overview { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.apc-ty-overview li { background: var(--bg-section); border-radius: 10px; padding: 10px 16px; text-align: left; min-width: 150px; }
.apc-ty-overview li span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.apc-ty-overview li strong { font-size: var(--fs-base); color: var(--text-dark); }
.apc-ty-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.apc-ty-card h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.apc-ty-card h2 i { color: var(--brand); margin-right: 6px; }
.apc-ty-pay { border-color: #cfe0d4; background: var(--brand-light); }
.apc-pay-details { background: #fff; border-radius: 12px; padding: 6px 16px; margin-top: 12px; }
.apc-pay-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-light); font-size: var(--fs-sm); }
.apc-pay-row:last-child { border: 0; }
.apc-pay-row span { color: var(--text-muted); }
.apc-pay-row strong { color: var(--brand-dark); cursor: pointer; }
.apc-pay-row strong i { color: var(--text-muted); font-size: .85em; margin-left: 4px; }
.apc-pay-row strong.copied i::before { content: "\f26a"; color: var(--brand); }
.apc-ty-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.apc-ty-steps li { position: relative; padding: 0 0 16px 44px; counter-increment: s; }
.apc-ty-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-family: var(--font-heading); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.apc-ty-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 0; border-left: 2px dashed var(--border-light); }
.apc-ty-steps strong { display: block; }
.apc-ty-steps span { font-size: var(--fs-sm); color: var(--text-muted); }
.apc-ty-help { font-size: var(--fs-sm); color: var(--text-muted); margin: 6px 0 0; }
.apc-ty-details .woocommerce-order-details__title, .apc-ty-details .woocommerce-column__title { font-size: var(--fs-md); margin: 0 0 12px; }
.apc-ty-details .woocommerce-table--order-details { font-size: var(--fs-sm); }
.apc-ty-details .woocommerce-bacs-bank-details { padding: 14px; margin-bottom: 14px; }
.apc-ty-details .woocommerce-bacs-bank-details h2 { font-size: var(--fs-md); }
.apc-ty-details .woocommerce-columns--addresses { grid-template-columns: 1fr; margin-top: 16px; }
.apc-ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.woocommerce-order .woocommerce-order-overview, .woocommerce-order > p.woocommerce-notice { display: none; }

/* refinements */
.woocommerce-checkout .apc-co-form #billing_country_field { display: none !important; }
.woocommerce-checkout .apc-co-form .apc-contact-last { margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--border-light); }
.apc-total-amount, .apc-total-amount .amount, .apc-total-due small { white-space: nowrap; }
.apc-review-totals .apc-total-due { align-items: center; }
.woocommerce-checkout .apc-co-form #shipping_country_field { display: none !important; }

/* order-received: no page hero, no wrapping totals */
body.woocommerce-order-received .page-hero, body.woocommerce-order-received .shop-breadcrumb { display: none; }
.apc-ty-overview li strong, .apc-ty-overview .amount { white-space: nowrap; }
.pdp-coa-prose { max-width: 820px; margin: 0 auto 24px; }

.apc-total-due small .amount, .apc-total-due .woocommerce-Price-currencySymbol, .apc-total-amount .woocommerce-Price-currencySymbol { display: inline !important; white-space: nowrap; }
.apc-review-totals .apc-total-due small { display: block; }
.apc-total-amount { text-align: right; }


/* ---------- Checkout v2: two-column fields, wider form, clear selected state, feature list ---------- */
@media (min-width: 992px) { .apc-checkout { grid-template-columns: 38% 62%; } }
.apc-co-form-inner { max-width: 820px; }
.woocommerce-checkout .apc-co-form .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .apc-co-form .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.woocommerce-checkout .apc-co-form .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-checkout .apc-co-form .woocommerce-shipping-fields__field-wrapper .form-row { width: 100% !important; margin-right: 0 !important; float: none; display: block; }
.woocommerce-checkout .apc-co-form form .form-row { margin-bottom: 12px; }
.woocommerce-checkout .apc-co-form .apc-contact-last { margin-bottom: 12px; padding-bottom: 0; border-bottom: 0; }
.woocommerce-checkout .apc-co-form #billing_first_name_field, .woocommerce-checkout .apc-co-form #billing_last_name_field { margin-top: 8px; }
.woocommerce-checkout .apc-co-form form .form-row .input-text, .woocommerce-checkout .apc-co-form form .form-row select, .woocommerce-checkout .apc-co-form .select2-container .select2-selection--single { padding: 10px 13px; }
.woocommerce-checkout .apc-co-form form .form-row textarea { min-height: 64px; }
@media (max-width: 575px) { .woocommerce-checkout .apc-co-form .woocommerce-billing-fields__field-wrapper, .woocommerce-checkout .apc-co-form .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; } }
.apc-co-heading, .woocommerce-checkout .apc-co-form h3 { margin: 22px 0 12px; }
.apc-freeship { padding: 12px 14px; }
.apc-freeship-tiers { gap: 8px; }
.apc-tier { padding: 8px 10px; }

/* shipping + payment cards: unselected white, selected green */
.apc-option-card { background: #fff; border: 1.5px solid var(--border-light); box-shadow: none; }
.apc-ship-item .apc-option-card { padding: 12px 14px; margin-bottom: 8px; }
.apc-ship-item .apc-option-card, .apc-ship-item .apc-option-card * { transition: none; }
.apc-ship-item.is-selected .apc-option-card, .apc-ship-item .apc-option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(22, 67, 44, .12); }
.apc-ship-item:not(.is-selected) .apc-option-card:not(:has(input:checked)) { background: #fff; border-color: var(--border-light); }
.apc-ship-item .apc-option-price { color: var(--text-dark); }
.apc-ship-item.is-selected .apc-option-price, .apc-ship-item .apc-option-card:has(input:checked) .apc-option-price { color: var(--brand); }
.apc-ship-item.is-selected .apc-option-body strong::after, .apc-ship-item .apc-option-card:has(input:checked) .apc-option-body strong::after { content: "Selected"; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: #fff; border: 1px solid var(--brand); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li { background: #fff; }

/* left panel feature list */
.apc-co-features { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 12px; }
.apc-co-features li { display: flex; gap: 12px; align-items: flex-start; }
.apc-co-feature-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(245, 166, 35, .15); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.apc-co-feature-text { display: flex; flex-direction: column; }
.apc-co-feature-text strong { color: #fff; font-size: var(--fs-sm); }
.apc-co-feature-text span { color: var(--text-on-dark-muted); font-size: var(--fs-xs); }
.apc-co-trust { display: none; }


/* ---------- Checkout v3: one-row shipping, one-row payment, no duplicate summary ---------- */
.apc-ship-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.apc-ship-item .apc-option-card { margin: 0; height: 100%; }
.woocommerce-checkout .apc-co-form .apc-review-totals, .woocommerce-checkout .apc-co-form .apc-review > .apc-co-heading:nth-last-of-type(1) { display: none; }
.apc-review-totals-hidden { position: absolute; left: -9999px; }
.woocommerce-checkout .apc-co-form #payment { margin-top: 22px; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods.apc-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li { margin: 0; display: flex; align-items: center; min-height: 54px; cursor: pointer; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li .payment_box { display: none !important; }
.woocommerce-checkout .apc-co-form #payment ul.payment_methods li label { cursor: pointer; width: 100%; }
.apc-pay-desc:empty { display: none; }
.apc-pay-desc { background: var(--bg-section); border-radius: 12px; padding: 12px 16px; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-muted); }
.apc-pay-desc p:last-child { margin: 0; }
.apc-pay-desc fieldset { border: 0; padding: 0; margin: 0; }
.woocommerce-checkout .apc-co-form .woocommerce-terms-and-conditions-wrapper { margin-top: 14px; }
.woocommerce-checkout .apc-co-form .woocommerce-privacy-policy-text { font-size: 11px; }
.woocommerce-checkout .apc-co-form #place_order { margin-top: 6px; padding: 14px; }
.woocommerce-checkout .apc-co-form form .form-row.notes { margin-bottom: 8px; }
.woocommerce-checkout .apc-co-form form .form-row textarea { min-height: 54px; }
.apc-coupon .input-text { padding: 10px 13px; }
.apc-coupon .btn { padding: 8px 20px; }
@media (max-width: 575px) { .apc-ship-list { grid-template-columns: 1fr; } }

/* compact free-shipping block on the checkout form */
.apc-review .apc-freeship { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title tiers" "sub tiers" "bar tiers"; column-gap: 16px; align-items: center; padding: 10px 14px; }
.apc-review .apc-freeship-title { grid-area: title; }
.apc-review .apc-freeship-sub { grid-area: sub; }
.apc-review .apc-freeship .apc-progress { grid-area: bar; margin: 6px 0 0; }
.apc-review .apc-freeship-tiers { grid-area: tiers; display: flex; gap: 8px; }
.apc-review .apc-tier { padding: 6px 10px; min-width: 120px; }
.apc-review .apc-tier small { font-size: 9px; }
.apc-review .apc-tier strong { font-size: var(--fs-xs); }
@media (max-width: 767px) { .apc-review .apc-freeship { display: block; } .apc-review .apc-freeship-tiers { margin-top: 8px; } }

/* collapsible coupon + delivery instructions */
.apc-coupon-toggle, .apc-notes-toggle { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 4px; }
.apc-notes-toggle { margin: 4px 0 10px; }
.apc-coupon-toggle:hover, .apc-notes-toggle:hover { text-decoration: underline; }
.apc-coupon { margin-top: 8px; }
.apc-coupon[hidden] { display: none; }
#order_comments_field[hidden] { display: none !important; }

/* product thumbnails: never crop, always contain */
.apc-drawer-thumb img, .apc-suggest-item img, .apc-co-thumb img, .coa-product img, .woocommerce table.shop_table td.product-thumbnail img, .pdp-thumb img, .strength-card img { object-fit: contain; object-position: center; background: #fff; }
.apc-drawer-thumb img, .apc-co-thumb img { padding: 3px; }


/* ---------- Cart page ---------- */
.woocommerce-cart .woo-page-section { padding: 36px 0 70px; }
.apc-cart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.apc-cart-title { font-size: var(--fs-2xl); margin: 4px 0 0; }
.apc-cart-title small { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 500; color: var(--text-muted); }
.apc-cart-continue { color: var(--brand); font-weight: 700; font-size: var(--fs-sm); }
.apc-cart-items { display: flex; flex-direction: column; gap: 12px; }
.apc-cart-item { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 16px 18px; }
.apc-cart-thumb img { width: 88px; height: 88px; object-fit: contain; background: var(--bg-section); border-radius: 12px; padding: 4px; }
.apc-cart-cat { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 2px; }
.apc-cart-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-md); color: var(--text-dark); }
.apc-cart-name:hover { color: var(--brand); }
.apc-cart-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
.apc-cart-meta span:first-child { font-family: ui-monospace, monospace; }
.apc-cart-backorder { display: block; font-size: var(--fs-xs); color: #6f42c1; }
.apc-cart-qty .quantity.pdp-qty-control { display: inline-flex; }
.apc-cart-qty .pdp-qty-btn { width: 32px; height: 36px; }
.apc-cart-qty .qty { width: 44px; height: 36px; }
.apc-cart-total, .apc-cart-total .amount { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-md); color: var(--brand-dark); min-width: 84px; text-align: right; }
.apc-cart-remove a.remove { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-section); color: var(--text-muted) !important; font-size: 1rem; text-decoration: none; }
.apc-cart-remove a.remove:hover { background: #fdeef0; color: #c23a4c !important; }
.apc-cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 2px 0; }
.apc-cart-coupon { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 4px 4px 4px 12px; }
.apc-cart-coupon > i { color: var(--brand); }
.apc-cart-coupon .input-text { border: 0; padding: 8px 6px; width: 170px; font-size: var(--fs-sm); background: transparent; }
.apc-cart-coupon .input-text:focus { outline: 0; }
.apc-cart-update { background: none; }
.apc-cart-update:disabled { opacity: .45; }
.apc-cart-note { margin-top: 18px; }
.apc-cart-suggest { margin-top: 26px; }
.apc-cart-suggest h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.apc-cart-suggest-item { height: 100%; }
.apc-cart-side { position: sticky; top: 100px; }
.apc-summary { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.apc-summary-title { font-size: var(--fs-lg); margin-bottom: 14px; }
.apc-summary .apc-freeship { background: var(--bg-section); border: 0; }
.apc-summary-shipping { margin-top: 16px; }
.apc-summary-label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.apc-summary .apc-ship-list { grid-template-columns: 1fr; gap: 8px; margin-top: 0; }
.apc-summary .apc-option-card { padding: 10px 12px; }
.apc-summary .apc-option-body strong::after { display: none !important; }
.apc-summary .woocommerce-shipping-destination { display: none; }
.apc-summary-totals { margin-top: 16px; background: var(--bg-section); }
.apc-summary .wc-proceed-to-checkout { margin-top: 14px; }
.apc-summary .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; text-align: center; background: var(--brand); color: #fff; border-radius: 10px; padding: 14px; font-family: var(--font-heading); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: var(--fs-sm); }
.apc-summary .wc-proceed-to-checkout .checkout-button:hover { background: var(--brand-hover); color: #fff; }
.apc-summary-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--fs-xs); color: var(--text-muted); }
.apc-summary-pay { background: var(--bg-section); border-radius: 6px; padding: 4px 9px; font-weight: 600; color: var(--text-dark); }
.apc-summary-pay i { color: var(--brand); }
.apc-summary-trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border-light); display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--text-muted); }
.apc-summary-trust i { color: var(--brand); margin-right: 4px; }
.apc-cart-empty { text-align: center; max-width: 560px; margin: 30px auto 50px; }
.apc-cart-empty-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 18px; }
.apc-cart-empty h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.apc-cart-empty p { color: var(--text-muted); margin-bottom: 22px; }
.apc-cart-empty-featured { margin-top: 20px; }
.woocommerce-cart .cart-empty, .woocommerce-cart .return-to-shop { display: none; }
.woocommerce-cart .blockUI.blockOverlay { border-radius: var(--radius-lg); }
@media (max-width: 767px) {
	.apc-cart-item { grid-template-columns: 72px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty total"; }
	.apc-cart-thumb { grid-area: thumb; }
	.apc-cart-thumb img { width: 72px; height: 72px; }
	.apc-cart-info { grid-area: info; }
	.apc-cart-qty { grid-area: qty; }
	.apc-cart-total { grid-area: total; }
	.apc-cart-remove { grid-area: remove; justify-self: end; }
	.apc-cart-side { position: static; }
}

/* The review wrapper carries WooCommerce's refresh class (so totals update live); keep it unstyled. */
.apc-review.woocommerce-checkout-review-order-table { width: auto; border: 0; border-radius: 0; background: transparent; overflow: visible; font-size: inherit; }
.apc-co-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.apc-co-price { text-align: right; min-width: 64px; font-variant-numeric: tabular-nums; }
