/* ==========================================================
   Samaia Checkout — WooCommerce classic checkout, Samaia style
   Colours come from WooCommerce → Samaia Checkout.
   ========================================================== */
:root {
  --sco-accent: #1F2421; --sco-accent-text: #F3F1EA; --sco-bg: #E3E1DA; --sco-panel: #F3F1EA; --sco-text: #1F2421;
  --sco-soft: color-mix(in srgb, var(--sco-text) 62%, transparent);
  --sco-line: color-mix(in srgb, var(--sco-text) 18%, transparent);
  --sco-line-strong: color-mix(in srgb, var(--sco-text) 38%, transparent);
  --sco-brand: #67031B;
  --sco-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sco-display-weight: 400; /* weight of the titles (400 = regular, 800 = the old heavy look) */
  --sco-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --sco-ease: cubic-bezier(.76, 0, .24, 1);
  --sco-gutter: clamp(18px, 2.4vw, 40px);
}
body.samaia-checkout-page {
  margin: 0; background: var(--sco-bg); color: var(--sco-text);
  font-family: var(--sco-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.samaia-checkout-page *, .samaia-checkout-page *::before, .samaia-checkout-page *::after { box-sizing: border-box; }
.samaia-checkout-page a { color: inherit; }
.samaia-checkout-page :focus-visible { outline: 2px solid var(--sco-text); outline-offset: 2px; }
.samaia-checkout-page .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.sco-head { border-bottom: 1px solid var(--sco-line); background: var(--sco-bg); }
.sco-head__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; padding: 18px var(--sco-gutter); }
.sco-logo { display: block; width: var(--sco-logo-w, 52px); }
.sco-logo img, .sco-logo svg { display: block; width: 100%; height: auto; }
.sco-logo svg { fill: var(--sco-brand); }
.sco-logo__bg { fill: #F3F1EA; }
.sco-steps { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--sco-soft); }
.sco-steps a { text-decoration: none; }
.sco-steps a:hover { color: var(--sco-text); }
.sco-steps [aria-current] { color: var(--sco-text); }
.sco-steps__sep { width: 18px; height: 1px; background: var(--sco-line-strong); }
.sco-secure { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.sco-secure svg { width: 17px; height: 17px; }

/* ---------- Page ---------- */
.sco-wrap { max-width: 1320px; margin: 0 auto; padding: 44px var(--sco-gutter) 12vh; }
.sco-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.sco-title { margin: 0; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 82%; font-size: clamp(34px, 4.2vw, 64px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.sco-is-thanks .sco-title { text-transform: none; font-size: clamp(30px, 3.4vw, 52px); max-width: 18ch; }
.sco-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.sco-back svg { width: 9px; }

/* ---------- Notices ---------- */
.samaia-checkout-page .woocommerce-notices-wrapper:empty { display: none; }
.samaia-checkout-page .woocommerce-error, .samaia-checkout-page .woocommerce-message, .samaia-checkout-page .woocommerce-info {
  list-style: none; margin: 0 0 18px; padding: 14px 18px; background: var(--sco-panel); border: 0; border-left: 3px solid var(--sco-text);
  font-size: 13.5px; font-weight: 500;
}
.samaia-checkout-page .woocommerce-error { border-left-color: var(--sco-brand); color: var(--sco-brand); background: #F4DFE1; }
.samaia-checkout-page .woocommerce-error li { margin: 2px 0; }
.samaia-checkout-page .woocommerce-error::before, .samaia-checkout-page .woocommerce-message::before, .samaia-checkout-page .woocommerce-info::before { display: none; }
.samaia-checkout-page .woocommerce-info a, .samaia-checkout-page .woocommerce-message a { font-weight: 700; }
.samaia-checkout-page .woocommerce-form-login, .samaia-checkout-page .checkout_coupon { margin: -8px 0 22px; padding: 18px; background: var(--sco-panel); border: 0; }

/* ---------- Two columns ---------- */
.samaia-checkout-page form.checkout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  column-gap: clamp(28px, 4.5vw, 80px); align-items: start;
}
.samaia-checkout-page form.checkout > * { grid-column: 1; min-width: 0; }
.samaia-checkout-page form.checkout > .sco-summary { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: 24px; }
body.admin-bar.samaia-checkout-page form.checkout > .sco-summary { top: 56px; }
.samaia-checkout-page .woocommerce-NoticeGroup { grid-column: 1 / -1; }

/* ---------- Sections ---------- */
.samaia-checkout-page .col2-set { display: flex; flex-direction: column; gap: 34px; width: auto; float: none; }
.samaia-checkout-page .col2-set .col-1, .samaia-checkout-page .col2-set .col-2 { width: auto; float: none; max-width: none; }
.samaia-checkout-page #customer_details h3, .sco-step h3 {
  margin: 0 0 16px; padding: 0; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%;
  font-size: 22px; letter-spacing: -.015em; line-height: 1.1;
}
.sco-step--payment { margin-top: 40px; }
.samaia-checkout-page #ship-to-different-address { font-size: 16px; font-family: var(--sco-body); font-weight: 700; letter-spacing: 0; }
.samaia-checkout-page #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }

/* ---------- Fields ---------- */
.samaia-checkout-page .woocommerce-billing-fields__field-wrapper,
.samaia-checkout-page .woocommerce-shipping-fields__field-wrapper,
.samaia-checkout-page .woocommerce-additional-fields__field-wrapper,
.samaia-checkout-page .woocommerce-account-fields .create-account {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px;
}
.samaia-checkout-page .form-row { margin: 0; padding: 0; grid-column: 1 / -1; width: auto; float: none; }
.samaia-checkout-page .form-row-first { grid-column: 1; }
.samaia-checkout-page .form-row-last { grid-column: 2; }
.samaia-checkout-page .form-row label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.samaia-checkout-page .form-row label .required { color: var(--sco-brand); text-decoration: none; border: 0; }
.samaia-checkout-page .form-row label .optional { font-weight: 500; color: var(--sco-soft); }
.samaia-checkout-page .form-row .woocommerce-input-wrapper { display: block; }
.samaia-checkout-page input.input-text, .samaia-checkout-page textarea, .samaia-checkout-page select,
.samaia-checkout-page .select2-container .select2-selection--single {
  width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 1px solid var(--sco-line-strong); border-radius: 0;
  background: var(--sco-panel); color: var(--sco-text); font: inherit; font-size: 15px; box-shadow: none; outline: 0;
  transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.samaia-checkout-page textarea { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.samaia-checkout-page input.input-text:hover, .samaia-checkout-page textarea:hover, .samaia-checkout-page .select2-selection--single:hover { border-color: var(--sco-text); }
.samaia-checkout-page input.input-text:focus, .samaia-checkout-page textarea:focus, .samaia-checkout-page select:focus,
.samaia-checkout-page .select2-container--focus .select2-selection--single, .samaia-checkout-page .select2-container--open .select2-selection--single {
  border-color: var(--sco-text); box-shadow: inset 0 0 0 1px var(--sco-text);
}
.samaia-checkout-page input::placeholder, .samaia-checkout-page textarea::placeholder { color: var(--sco-soft); opacity: .8; }
.samaia-checkout-page .woocommerce-invalid input.input-text, .samaia-checkout-page .woocommerce-invalid .select2-selection { border-color: var(--sco-brand) !important; box-shadow: inset 0 0 0 1px var(--sco-brand) !important; }
.samaia-checkout-page .woocommerce-validated input.input-text { border-color: var(--sco-line-strong); }
.samaia-checkout-page .checkout-inline-error-message { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--sco-brand); }
.samaia-checkout-page select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231F2421' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px; }

/* select2 (country / state) */
.samaia-checkout-page .select2-container { width: 100% !important; }
.samaia-checkout-page .select2-container .select2-selection--single { display: flex; align-items: center; }
.samaia-checkout-page .select2-selection__rendered { padding: 0 !important; line-height: 1.3 !important; color: var(--sco-text) !important; }
.samaia-checkout-page .select2-selection__arrow { height: 48px !important; right: 10px !important; }
.select2-dropdown { border: 1px solid var(--sco-text) !important; border-radius: 0 !important; background: var(--sco-panel) !important; font-family: var(--sco-body); }
.select2-search--dropdown .select2-search__field { height: 40px; border: 1px solid var(--sco-line-strong) !important; border-radius: 0; padding: 0 10px; font: inherit; }
.select2-results__option { padding: 9px 12px !important; font-size: 14px; }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background: var(--sco-text) !important; color: var(--sco-panel) !important; }

/* checkboxes and radios */
.samaia-checkout-page input[type="checkbox"], .samaia-checkout-page input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--sco-text);
  background: transparent; display: inline-grid; place-items: center; cursor: pointer; vertical-align: -4px;
}
.samaia-checkout-page input[type="radio"] { border-radius: 50%; }
.samaia-checkout-page input[type="checkbox"]:checked { background: var(--sco-text); }
.samaia-checkout-page input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.8px solid var(--sco-panel); border-bottom: 1.8px solid var(--sco-panel); transform: translateY(-1px) rotate(-45deg); }
.samaia-checkout-page input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sco-text); }
.samaia-checkout-page .woocommerce-form__label-for-checkbox, .samaia-checkout-page .form-row .checkbox { display: inline-flex !important; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; }

/* ---------- Payment ---------- */
.samaia-checkout-page #payment { background: transparent; border: 0; border-radius: 0; }
.samaia-checkout-page #payment ul.payment_methods { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sco-line-strong); }
.samaia-checkout-page #payment ul.payment_methods li { margin: 0; padding: 0; border-top: 1px solid var(--sco-line); background: var(--sco-panel); line-height: 1.4; }
.samaia-checkout-page #payment ul.payment_methods li:first-child { border-top: 0; }
.samaia-checkout-page #payment ul.payment_methods li > input[type="radio"] { position: absolute; margin: 20px 0 0 18px; }
.samaia-checkout-page #payment ul.payment_methods li > label { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 14px 18px 14px 48px; font-size: 14.5px; font-weight: 600; cursor: pointer; margin: 0; }
.samaia-checkout-page #payment ul.payment_methods li > label img { max-height: 24px; width: auto; margin-left: auto; }
.samaia-checkout-page #payment ul.payment_methods li.wc_payment_method:has(> input:checked) { background: #fff; }
.samaia-checkout-page #payment div.payment_box { position: relative; margin: 0; padding: 0 18px 18px 48px; background: transparent; color: var(--sco-soft); font-size: 13.5px; border-radius: 0; }
.samaia-checkout-page #payment div.payment_box::before { display: none; }
.samaia-checkout-page #payment div.payment_box p:last-child { margin-bottom: 0; }
.samaia-checkout-page #payment div.payment_box fieldset { border: 0; padding: 0; margin: 10px 0 0; }
.samaia-checkout-page #payment .woocommerce-notice--info, .samaia-checkout-page #payment .woocommerce-info { margin: 0; border-left: 0; }
.samaia-checkout-page #payment div.form-row.place-order { margin-top: 22px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.samaia-checkout-page .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--sco-soft); }
.samaia-checkout-page .woocommerce-privacy-policy-text p { margin: 0; }
.samaia-checkout-page .woocommerce-privacy-policy-text a, .samaia-checkout-page .woocommerce-terms-and-conditions-link { color: var(--sco-text); font-weight: 600; }
.samaia-checkout-page .woocommerce-terms-and-conditions { max-height: 220px; overflow: auto; padding: 16px; background: var(--sco-panel); font-size: 13px; }
.samaia-checkout-page #place_order {
  width: 100%; height: 60px; margin: 0; padding: 0 24px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--sco-accent); color: var(--sco-accent-text); font-family: var(--sco-body); font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 12px; transition: opacity .3s; float: none;
}
.samaia-checkout-page #place_order:hover { opacity: .88; }
.samaia-checkout-page #place_order::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='10' rx='1'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='10' rx='1'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Order summary ---------- */
.samaia-checkout-page #order_review_heading { display: none; }
.sco-summary { background: var(--sco-panel); }
.sco-summary__inner { padding: 26px 26px 22px; }
.sco-summary__title { margin: 0 0 14px; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%; font-size: 22px; letter-spacing: -.015em; line-height: 1.1; }
.samaia-checkout-page table.woocommerce-checkout-review-order-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; }
.samaia-checkout-page .woocommerce-checkout-review-order-table thead { display: none; }
.samaia-checkout-page .woocommerce-checkout-review-order-table td, .samaia-checkout-page .woocommerce-checkout-review-order-table th {
  padding: 12px 0; border: 0; border-top: 1px solid var(--sco-line); background: transparent; text-align: left; vertical-align: top; font-weight: 500;
}
.samaia-checkout-page .woocommerce-checkout-review-order-table tbody tr:first-child td { border-top: 0; }
.samaia-checkout-page .woocommerce-checkout-review-order-table td.product-total, .samaia-checkout-page .woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.samaia-checkout-page .woocommerce-checkout-review-order-table .product-quantity { display: none; }
.sco-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.sco-item__img { position: relative; display: block; width: 64px; aspect-ratio: 4 / 5; background: var(--sco-bg); }
.sco-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sco-item__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; background: var(--sco-text); color: var(--sco-panel); font-size: 11px; font-weight: 700; border-radius: 99px; }
.sco-item__name { font-weight: 700; line-height: 1.3; padding-top: 2px; }
.samaia-checkout-page .woocommerce-checkout-review-order-table .product-name .wc-item-meta, .samaia-checkout-page .woocommerce-checkout-review-order-table .product-name dl.variation {
  margin: 4px 0 0 78px; padding: 0; list-style: none; font-size: 12px; font-weight: 500; color: var(--sco-soft);
}
.samaia-checkout-page dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.samaia-checkout-page dl.variation dt, .samaia-checkout-page dl.variation dd { margin: 0; float: none; }
.samaia-checkout-page dl.variation dd p { margin: 0; }
.samaia-checkout-page .woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--sco-soft); }
.samaia-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total th, .samaia-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total td {
  padding-top: 16px; border-top: 1px solid var(--sco-line-strong); color: var(--sco-text); font-size: 15px; font-weight: 700;
}
.samaia-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total td strong, .samaia-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total td .amount { font-size: 24px; letter-spacing: -.01em; }
.samaia-checkout-page .order-total small.includes_tax { display: block; font-size: 11.5px; font-weight: 500; color: var(--sco-soft); }
.samaia-checkout-page .woocommerce-remove-coupon { margin-left: 6px; font-size: 11.5px; color: var(--sco-soft); }
.samaia-checkout-page #shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
.samaia-checkout-page #shipping_method li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; font-weight: 500; }

/* discount code */
.sco-coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--sco-line); }
.sco-coupon input { height: 46px; padding: 0 12px; border: 1px solid var(--sco-line-strong); background: #fff; font: inherit; font-size: 14px; color: var(--sco-text); border-radius: 0; }
.sco-coupon input:focus { outline: 0; border-color: var(--sco-text); }
.sco-coupon__apply { height: 46px; padding: 0 18px; border: 1px solid var(--sco-text); background: transparent; color: var(--sco-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border-radius: 0; transition: background .25s, color .25s; }
.sco-coupon__apply:hover { background: var(--sco-text); color: var(--sco-panel); }
.sco-coupon__apply[disabled] { opacity: .5; pointer-events: none; }
.sco-coupon__msg { grid-column: 1 / -1; margin: 0; font-size: 12.5px; font-weight: 600; }
.sco-coupon__msg:empty { display: none; }
.sco-coupon__msg.is-error { color: var(--sco-brand); }

/* loading overlay from WooCommerce */
.samaia-checkout-page .blockUI.blockOverlay { background: var(--sco-panel) !important; opacity: .6 !important; }
.samaia-checkout-page .blockUI.blockOverlay::before { display: none; }

/* ---------- Order confirmation ---------- */
.samaia-checkout-page .woocommerce-order { max-width: 860px; }
.samaia-checkout-page .woocommerce-thankyou-order-received { display: none; }
.samaia-checkout-page ul.woocommerce-order-overview {
  list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--sco-line);
}
.samaia-checkout-page ul.woocommerce-order-overview li { margin: 0; padding: 18px; background: var(--sco-panel); font-size: 11.5px; font-weight: 600; color: var(--sco-soft); border: 0; text-transform: none; }
.samaia-checkout-page ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 16px; color: var(--sco-text); }
.samaia-checkout-page .woocommerce-order-details, .samaia-checkout-page .woocommerce-customer-details { margin-bottom: 36px; }
.samaia-checkout-page .woocommerce-order-details__title, .samaia-checkout-page .woocommerce-column__title { margin: 0 0 14px; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%; font-size: 22px; }
.samaia-checkout-page table.woocommerce-table--order-details { width: 100%; border-collapse: collapse; background: var(--sco-panel); font-size: 14px; }
.samaia-checkout-page table.woocommerce-table--order-details th, .samaia-checkout-page table.woocommerce-table--order-details td { padding: 14px 18px; border: 0; border-top: 1px solid var(--sco-line); text-align: left; }
.samaia-checkout-page table.woocommerce-table--order-details thead th { border-top: 0; font-size: 12px; color: var(--sco-soft); }
.samaia-checkout-page table.woocommerce-table--order-details td:last-child, .samaia-checkout-page table.woocommerce-table--order-details tfoot td { text-align: right; }
.samaia-checkout-page table.woocommerce-table--order-details tfoot tr:last-child th, .samaia-checkout-page table.woocommerce-table--order-details tfoot tr:last-child td { font-size: 16px; font-weight: 700; }
.samaia-checkout-page .woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--sco-soft); }
.samaia-checkout-page .woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.samaia-checkout-page .woocommerce-customer-details address { padding: 18px; background: var(--sco-panel); border: 0; font-style: normal; line-height: 1.6; }
.samaia-checkout-page .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.samaia-checkout-page .woocommerce-columns--addresses .woocommerce-column { width: auto; float: none; }
.samaia-checkout-page .woocommerce-bacs-bank-details, .samaia-checkout-page .wc-bacs-bank-details { padding: 18px; background: var(--sco-panel); list-style: none; }

/* order pay page */
.samaia-checkout-page #order_review:not(.woocommerce-checkout-review-order) .shop_table { width: 100%; border-collapse: collapse; background: var(--sco-panel); margin-bottom: 24px; }
.samaia-checkout-page #order_review:not(.woocommerce-checkout-review-order) .shop_table td, .samaia-checkout-page #order_review:not(.woocommerce-checkout-review-order) .shop_table th { padding: 12px 16px; border-top: 1px solid var(--sco-line); text-align: left; }

/* ---------- Footer ---------- */
.sco-foot { border-top: 1px solid var(--sco-line); }
.sco-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; max-width: 1320px; margin: 0 auto; padding: 20px var(--sco-gutter); font-size: 12px; font-weight: 600; color: var(--sco-soft); }
.sco-foot nav { display: flex; gap: 24px; }
.sco-foot a { text-decoration: none; }
.sco-foot a:hover { color: var(--sco-text); }

/* ---------- Mobile summary toggle ---------- */
.sco-sumtoggle { display: none; }

@media (max-width: 960px) {
  .sco-head__in { grid-template-columns: auto 1fr; }
  .sco-steps { display: none; }
  .sco-wrap { padding-top: 26px; }
  .sco-top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .samaia-checkout-page form.checkout { display: flex; flex-direction: column; align-items: stretch; }
  .samaia-checkout-page form.checkout > .sco-summary { order: -1; position: static; margin: 0 calc(var(--sco-gutter) * -1) 28px; }
  .sco-sumtoggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--sco-gutter);
    border: 0; border-top: 1px solid var(--sco-line); border-bottom: 1px solid var(--sco-line); background: var(--sco-panel);
    color: var(--sco-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left;
  }
  .sco-sumtoggle svg { width: 10px; transition: transform .35s var(--sco-ease); margin-left: 6px; }
  .sco-sumtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sco-sumtoggle b { font-size: 17px; }
  .sco-summary__inner { padding: 0 var(--sco-gutter); max-height: 0; overflow: hidden; transition: max-height .5s var(--sco-ease), padding .5s var(--sco-ease); }
  .sco-summary.is-open .sco-summary__inner { max-height: 2400px; padding: 18px var(--sco-gutter) 22px; }
  .sco-summary__title { display: none; }
}
@media (max-width: 560px) {
  .samaia-checkout-page .form-row-first, .samaia-checkout-page .form-row-last { grid-column: 1 / -1; }
  .samaia-checkout-page .woocommerce-columns--addresses { grid-template-columns: 1fr; }
  .sco-secure { font-size: 0; }
  .sco-secure svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sco-summary__inner, .sco-sumtoggle svg { transition: none; }
}

/* WooCommerce 8+ notice banners */
.samaia-checkout-page .woocommerce-NoticeGroup { grid-column: 1; }
.samaia-checkout-page .wc-block-components-notice-banner {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 18px; border: 0; border-left: 3px solid var(--sco-text);
  background: var(--sco-panel); color: var(--sco-text); font-size: 13.5px; border-radius: 0;
}
.samaia-checkout-page .wc-block-components-notice-banner > svg { width: 20px; height: 20px; flex: none; fill: currentColor; margin-top: 1px; }
.samaia-checkout-page .wc-block-components-notice-banner.is-error { border-left-color: var(--sco-brand); background: #F4DFE1; color: var(--sco-brand); }
.samaia-checkout-page .wc-block-components-notice-banner.is-success { border-left-color: #2E6B4F; }
.samaia-checkout-page .wc-block-components-notice-banner__content { flex: 1; min-width: 0; }
.samaia-checkout-page .wc-block-components-notice-banner__content p { margin: 0 0 4px; font-weight: 700; }
.samaia-checkout-page .wc-block-components-notice-banner__content ul { margin: 0; padding: 0 0 0 16px; }
.samaia-checkout-page .wc-block-components-notice-banner__content li { margin: 2px 0; }
.samaia-checkout-page .wc-block-components-notice-banner__content a { color: inherit; font-weight: 600; }

/* thank-you actions */
.sco-thanks-actions { margin: 8px 0 0; }
.sco-btn { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; background: var(--sco-accent); color: var(--sco-accent-text) !important; font-weight: 700; text-decoration: none; transition: opacity .3s; }
.sco-btn:hover { opacity: .88; }

/* ==========================================================
   Cart page
   ========================================================== */
.samaia-cart-page .sco-title { display: flex; align-items: baseline; gap: 14px; }
.scp-count { font-family: var(--sco-body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--sco-soft); text-transform: none; }
.scp-msg { margin: 0 0 18px; font-size: 13.5px; font-weight: 600; }
.scp-msg:empty { display: none; }
.scp-msg:not(:has(.woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner)) { padding: 12px 16px; background: var(--sco-panel); border-left: 3px solid var(--sco-text); }
.scp-msg.is-error { background: #F4DFE1; border-left-color: var(--sco-brand); color: var(--sco-brand); }
.scp-msg.is-success { border-left-color: #2E6B4F; }
.scp-msg button { margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; border-bottom: 1px solid currentColor; cursor: pointer; }

.scp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); column-gap: clamp(28px, 4.5vw, 80px); align-items: start; transition: opacity .25s; }
[data-scp-wrap].is-busy .scp { opacity: .6; pointer-events: none; }
.scp-summary { position: sticky; top: 24px; }
body.admin-bar .scp-summary { top: 56px; }

/* items */
.scp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sco-line-strong); }
.scp-item { display: grid; grid-template-columns: clamp(96px, 11vw, 150px) 1fr; gap: clamp(16px, 2vw, 28px); padding: 22px 0; border-bottom: 1px solid var(--sco-line); transition: opacity .3s; }
.scp-item.is-removing { opacity: .35; }
.scp-item.is-updating .scp-item__line { opacity: .45; }
.scp-item__img { display: block; aspect-ratio: 4 / 5; background: var(--sco-panel); overflow: hidden; }
.scp-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--sco-ease); }
.scp-item__img:hover img { transform: scale(1.04); }
.scp-item__body { display: flex; flex-direction: column; min-width: 0; }
.scp-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.scp-item__name { margin: 0; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; letter-spacing: -.015em; }
.scp-item__name a { text-decoration: none; }
.scp-item__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.scp-item__line { font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.scp-item__meta { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--sco-soft); }
.scp-item__unit { margin: 6px 0 0; font-size: 13px; color: var(--sco-soft); }
.scp-item__stock { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; }
.scp-item__actions { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 16px; }
.scp-qty { display: inline-grid; grid-template-columns: 38px 46px 38px; height: 44px; border: 1px solid var(--sco-line-strong); background: var(--sco-panel); }
.scp-qty button { border: 0; background: none; font: inherit; font-size: 17px; color: var(--sco-text); cursor: pointer; }
.scp-qty button:hover:not([disabled]) { background: var(--sco-bg); }
.scp-qty button[disabled] { opacity: .3; cursor: default; }
.scp-qty input { width: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; color: var(--sco-text); -moz-appearance: textfield; }
.scp-qty input::-webkit-outer-spin-button, .scp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scp-qty--one { display: inline-block; height: auto; border: 0; background: none; font-size: 13px; color: var(--sco-soft); }
.scp-remove { padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sco-soft); cursor: pointer; }
.scp-remove:hover { color: var(--sco-text); }
.scp-continue { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.scp-continue svg { width: 9px; }

/* summary */
.scp-totals { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 14px; }
.scp-totals dt, .scp-totals dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--sco-line); }
.scp-totals dt:first-of-type, .scp-totals dd:first-of-type { border-top: 0; }
.scp-totals dt { color: var(--sco-soft); font-weight: 500; }
.scp-totals dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scp-totals .scp-totals__total { padding-top: 16px; border-top: 1px solid var(--sco-line-strong); color: var(--sco-text); font-size: 15px; font-weight: 700; }
dd.scp-totals__total { font-size: 24px; letter-spacing: -.01em; }
.scp-totals small { display: block; font-size: 11.5px; font-weight: 500; color: var(--sco-soft); }
.scp-uncoupon { margin-left: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--sco-soft); border-bottom: 1px solid currentColor; cursor: pointer; }
.scp-note { margin: 4px 0 0; font-size: 12px; color: var(--sco-soft); }
.scp-coupon { margin-top: 16px; }
.scp-checkout {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; margin-top: 18px;
  background: var(--sco-accent); color: var(--sco-accent-text) !important; font-size: 15px; font-weight: 700; letter-spacing: .01em; text-decoration: none; transition: opacity .3s;
}
.scp-checkout:hover { opacity: .88; }
.scp-express { margin-top: 12px; }
.scp-express:empty { display: none; }

/* empty cart */
.scp--empty { display: block; }
.scp-empty { padding: 40px 0 10px; max-width: 560px; }
.scp-empty__title { margin: 0; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; line-height: 1.05; }
.scp-empty__text { margin: 12px 0 0; font-size: 16px; color: var(--sco-soft); }
.scp-empty__btn { display: inline-flex; width: auto; padding: 0 30px; margin-top: 26px; }

/* suggestions */
.scp-suggest { grid-column: 1 / -1; margin-top: 70px; }
.scp-suggest h2 { margin: 0 0 18px; font-family: var(--sco-display); font-weight: var(--sco-display-weight); font-stretch: 86%; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.02em; }
.scp-suggest__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scp-card { display: block; text-decoration: none; color: inherit; }
.scp-card__img { display: block; aspect-ratio: 1 / 1.1; overflow: hidden; background: var(--sco-panel); }
.scp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--sco-ease); }
.scp-card:hover .scp-card__img img { transform: scale(1.04); }
.scp-card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.scp-card__name { min-width: 0; font-size: clamp(15px, 1.1vw, 18px); font-weight: 600; }
.scp-card__price { flex: none; white-space: nowrap; font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; }
.scp-card__price del { font-size: .75em; font-weight: 500; color: var(--sco-soft); margin-right: 6px; }
.scp-card__price ins { text-decoration: none; }

@media (max-width: 960px) {
  .scp { display: flex; flex-direction: column; align-items: stretch; }
  .scp-summary { position: static; margin-top: 30px; }
  .scp-suggest { margin-top: 50px; }
  .scp-suggest__row { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--sco-gutter) * -1); padding: 0 var(--sco-gutter); }
  .scp-suggest__row::-webkit-scrollbar { display: none; }
  .scp-card { flex: 0 0 64vw; scroll-snap-align: start; }
  .scp-card__cap { flex-direction: column; gap: 2px; }
}
@media (max-width: 560px) {
  .scp-item__top { flex-direction: column; gap: 6px; }
  .scp-item__actions { gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 960px) {
  /* the cart page summary always stays open (the fold-away toggle is for checkout only) */
  .samaia-cart-page .scp-summary .sco-summary__inner { max-height: none; overflow: visible; padding: 22px var(--sco-gutter) 24px; }
  .samaia-cart-page .scp-summary .sco-summary__title { display: block; }
  .samaia-cart-page .scp-summary { margin: 30px calc(var(--sco-gutter) * -1) 0; }
}
