/*
Theme Name: PrintWase
Theme URI: https://waseprint.com
Author: PrintWase
Author URI: https://waseprint.com
Description: WooCommerce theme for PrintWase stores — marketplace-matched design, optimized for Google Search, indexing, Ads and Merchant Center.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waseprint
Tags: e-commerce, woocommerce
*/

/* ============ Tokens ============ */
:root {
  --wsp-accent: #1D69F6;
  --wsp-accent-deep: #1450C4;
  --wsp-accent-bright: #4285F7;
  --wsp-accent-wash: #E9F1FE;
  --wsp-ink: #212121;
  --wsp-ink-2: #3d4354;
  --wsp-ink-3: #8b92a5;
  --wsp-line: #e5e7ee;
  --wsp-paper: #f6f7fa;
  --wsp-orange: #e8731c;
  --wsp-orange-dark: #d2661a;
  --wsp-sale: #d43a2f;
  --wsp-navy: #020567;
  --wsp-green: #1a7f4e;
  --wsp-badge: #d6336c;
  --wsp-accent-tint: #f4f8ff;
  --wsp-field: #d5d9e1;
  --wsp-cta: #e11d48;
  --wsp-cta-dark: #be123c;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-mulish, "Mulish"), "Proxima Nova", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wsp-ink);
  background: #fff;
}
h1, h2 { font-weight: 300; line-height: 1.2; color: var(--wsp-ink); }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3, h4, h5, h6 { line-height: 1.25; }
a { color: var(--wsp-accent); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.wsp-container { max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--wsp-accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ Header ============ */
.wsp-header { background: #fff; border-bottom: 1px solid var(--wsp-line); }
.wsp-header-row { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.wsp-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.wsp-logo img { height: 30px; width: auto; display: block; }
.wsp-logo .wsp-logo-img { height: 34px; max-width: 220px; object-fit: contain; }
.wsp-logo-text { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--wsp-accent); }

.wsp-search-desktop { display: none; flex: 1; justify-content: center; }
.wsp-search { position: relative; width: 100%; max-width: 520px; }
.wsp-search input[type="search"] {
  height: 44px; width: 100%; border: 1px solid var(--wsp-line); border-radius: 999px;
  background: var(--wsp-paper); padding: 0 48px 0 20px; font-size: 14px; color: var(--wsp-ink);
  -webkit-appearance: none; appearance: none; outline-offset: 2px;
}
.wsp-search input::placeholder { color: var(--wsp-ink-3); }
/* > : the round icon button only — the dropdown's "Search for …" button must not inherit this */
.wsp-search > button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  height: 32px; width: 32px; border: 0; border-radius: 999px;
  background: var(--wsp-orange); color: #fff; cursor: pointer;
}
.wsp-search > button:hover { background: var(--wsp-orange-dark); }

/* live suggestions dropdown */
.wsp-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border: 1px solid var(--wsp-line); border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(23, 26, 33, 0.18); overflow: hidden;
}
.wsp-suggest[hidden] { display: none; }
.wsp-suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; }
.wsp-suggest-item:hover { background: var(--wsp-paper); }
.wsp-suggest-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 8px;
  background: var(--wsp-paper); overflow: hidden;
}
.wsp-suggest-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wsp-suggest-body { min-width: 0; }
.wsp-suggest-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 500; color: var(--wsp-accent);
}
.wsp-suggest-priceline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; }
.wsp-suggest-compare { color: var(--wsp-ink-3); text-decoration: line-through; }
.wsp-suggest-price { color: var(--wsp-ink); }
.wsp-suggest-off {
  background: var(--wsp-green); color: #fff; border-radius: 4px;
  padding: 0 6px; font-size: 11px; font-weight: 700; line-height: 18px;
}
.wsp-suggest-none { margin: 0; padding: 14px 16px; font-size: 13px; color: var(--wsp-ink-3); }
.wsp-suggest-all {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 16px;
  border: 0; border-top: 1px solid var(--wsp-line); background: none; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--wsp-accent); cursor: pointer;
}
.wsp-suggest-all:hover { background: var(--wsp-paper); }

.wsp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.wsp-cart-link {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 40px; width: 40px; border-radius: 999px; color: var(--wsp-ink); text-decoration: none;
}
.wsp-cart-link:hover { background: var(--wsp-paper); }
.wsp-cart-count {
  position: absolute; top: -1px; right: -2px;
  display: flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--wsp-badge); color: #fff; font-size: 10px; font-weight: 700;
}
.wsp-cart-count[data-count="0"] { display: none; }

.wsp-burger {
  display: flex; align-items: center; justify-content: center;
  height: 40px; width: 40px; border: 0; border-radius: 999px;
  background: none; color: var(--wsp-ink); cursor: pointer;
}
.wsp-burger:hover { background: var(--wsp-paper); }

.wsp-search-mobile { padding-bottom: 12px; }

/* category nav row (desktop) */
.wsp-cats { display: none; }
.wsp-cats .wsp-container { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.wsp-cats a {
  white-space: nowrap; padding: 10px 12px; font-size: 14px;
  color: var(--wsp-ink-2); text-decoration: none;
}
.wsp-cats a:first-child { color: var(--wsp-ink); font-weight: 600; }
.wsp-cats a:hover { color: var(--wsp-accent-deep); }

@media (min-width: 768px) {
  .wsp-search-desktop { display: flex; }
  .wsp-search-mobile, .wsp-burger { display: none; }
  .wsp-header-row { gap: 32px; }
  .wsp-logo img { height: 34px; }
  .wsp-cats { display: block; }
}

/* ============ Mobile drawer ============ */
.wsp-drawer-root { position: fixed; inset: 0; z-index: 90; }
.wsp-drawer-root[hidden] { display: none; }
.wsp-drawer-backdrop { position: absolute; inset: 0; background: rgba(23, 26, 33, 0.45); }
.wsp-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: 90%; height: 100%;
  display: flex; flex-direction: column; background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%); transition: transform 0.2s ease;
}
.wsp-drawer-root.is-open .wsp-drawer { transform: translateX(0); }
.wsp-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--wsp-line);
}
.wsp-drawer-head .wsp-logo img { height: 26px; }
.wsp-drawer-close {
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 36px; border: 0; border-radius: 999px; background: none;
  font-size: 22px; line-height: 1; color: var(--wsp-ink-2); cursor: pointer;
}
.wsp-drawer-close:hover { background: var(--wsp-paper); }
.wsp-drawer-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }
.wsp-drawer-nav a { display: block; padding: 12px 20px; font-size: 15px; color: var(--wsp-ink-2); text-decoration: none; }
.wsp-drawer-nav a:first-child { color: var(--wsp-ink); font-weight: 600; }
.wsp-drawer-nav a:hover { background: var(--wsp-paper); }

/* ============ Main / content ============ */
/* NOTE: the Hub plugin's gallery box is also called .wsp-main — keep the
   site shell on its own class or min-height would inflate the gallery */
.wsp-site-main { min-height: 60vh; }
.wsp-page { max-width: 1080px; margin: 0 auto; padding: 32px 16px; }
.wsp-page-title { margin: 0 0 18px; }

/* ============ Plugin block overrides: marketplace look ============ */
.wsp-grid { grid-template-columns: repeat(2, 1fr); gap: 4px 8px; }
@media (min-width: 640px) { .wsp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .wsp-grid { grid-template-columns: repeat(4, 1fr); gap: 8px 12px; } }
.wsp-card {
  border: 0; border-radius: 12px; background: transparent; padding: 8px;
  transition: box-shadow 0.15s ease;
}
.wsp-card:hover { box-shadow: 0 10px 25px -5px rgba(23, 26, 33, 0.12), 0 8px 10px -6px rgba(23, 26, 33, 0.08); background: #fff; }
.wsp-card-media { border-radius: 8px; overflow: hidden; }
.wsp-card-body { padding: 8px 0 4px; }
.wsp-card-name {
  font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--wsp-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wsp-card-price { color: var(--wsp-ink); font-weight: 700; }

.wsp-hero {
  background: linear-gradient(135deg, var(--wsp-accent-bright) 0%, var(--wsp-accent) 55%, var(--wsp-accent-deep) 100%);
  border-radius: 16px; padding: 56px 32px;
}
.wsp-hero-btn { background: var(--wsp-orange); border-radius: 999px; }
.wsp-hero-btn:hover { background: var(--wsp-orange-dark); }
.wsp-pill:hover { border-color: var(--wsp-accent); color: var(--wsp-accent-deep); }

/* ============ WooCommerce ============ */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #place_order, .wc-proceed-to-checkout a.checkout-button {
  background: var(--wsp-orange); color: #fff; border: 0; border-radius: 10px;
  font-weight: 700; padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-block;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce #place_order:hover, .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--wsp-orange-dark); color: #fff;
}
.wc-proceed-to-checkout a.checkout-button {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; padding: 15px 22px;
}

.woocommerce table.shop_table { border: 1px solid var(--wsp-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-top: 1px solid var(--wsp-line); padding: 12px; }
.woocommerce table.shop_table thead th, .woocommerce table.shop_table tr:first-child th, .woocommerce table.shop_table tr:first-child td { border-top: 0; }
.woocommerce table.shop_table img { width: 72px; border-radius: 8px; }

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .quantity .qty {
  border: 1px solid #cfd3dd; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.woocommerce .quantity .qty { width: 72px; text-align: center; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus {
  border-color: var(--wsp-accent); outline: 1px solid var(--wsp-accent);
}
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--wsp-accent); border-radius: 8px;
}
.woocommerce-error { border-radius: 8px; }
.woocommerce ul#shipping_method .amount { font-weight: 600; }
.woocommerce .cart_totals h2, .woocommerce #order_review_heading { font-size: 18px; font-weight: 700; }

/* ============ Content width = header width ============ */
.wsp-page { max-width: 1280px; }
.wsp-wrap { max-width: 1280px !important; }

/* product page: gallery : buy box = 6 : 4 on desktop (plugin default is 1:1) */
@media (min-width: 1024px) {
  .wsp-wrap .wsp-product-grid { grid-template-columns: 6fr 4fr !important; }
}

/* ============ Cart page — marketplace layout ============ */
.woocommerce-cart .entry-content > .woocommerce {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start;
}
@media (min-width: 1024px) {
  .woocommerce-cart .entry-content > .woocommerce { grid-template-columns: 1fr 380px; gap: 40px; }
  .woocommerce-cart .cart-collaterals { position: sticky; top: 24px; }
}
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-cart form.woocommerce-cart-form { margin: 0; min-width: 0; }
.woocommerce-cart .cart-collaterals { min-width: 0; width: 100%; }
.cart-collaterals .cart_totals { float: none !important; width: 100% !important; }

.woocommerce-cart table.shop_table.cart { border: 0; border-radius: 0; }
.woocommerce-cart table.shop_table.cart th {
  border: 0; background: none; padding: 6px 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wsp-ink-3);
}
.woocommerce-cart table.shop_table.cart td {
  border: 0; border-top: 1px solid var(--wsp-line); background: none;
  padding: 16px 12px; vertical-align: middle;
}
.woocommerce-cart table.cart img { width: 96px; border-radius: 12px; background: var(--wsp-paper); }
.woocommerce-cart table.cart td.product-name a { color: var(--wsp-ink); font-weight: 600; text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--wsp-accent-deep); }
.woocommerce-cart table.cart td.product-subtotal, .woocommerce-cart table.cart td.product-subtotal .amount { color: var(--wsp-sale); font-weight: 700; }
.woocommerce-cart table.cart a.remove {
  color: var(--wsp-ink-3) !important; width: 28px; height: 28px; line-height: 26px; border-radius: 999px;
}
.woocommerce-cart table.cart a.remove:hover { background: var(--wsp-paper); color: var(--wsp-sale) !important; }
.woocommerce-cart table.cart td.actions { padding: 16px 0 0; }
/* quantity stepper — same look as the product page buy box */
.woocommerce-cart .quantity { display: inline-block; }
.wsp-qty { display: inline-flex; align-items: stretch; border: 1px solid #cfd3dd; border-radius: 12px; overflow: hidden; background: #fff; }
.wsp-qty-btn {
  width: 36px; border: 0; background: #fff; color: #4d5464;
  font-size: 17px; line-height: 1; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wsp-qty-btn:hover { background: var(--wsp-paper); }
.woocommerce-cart .wsp-qty .qty, .woocommerce .quantity .wsp-qty .qty {
  width: 40px; height: 44px; border: 0 !important; border-radius: 0;
  text-align: center; font-weight: 700; padding: 0; margin: 0; background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.wsp-qty .qty::-webkit-outer-spin-button, .wsp-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.woocommerce-cart td.actions .coupon { float: left; display: flex; align-items: stretch; gap: 8px; }
.woocommerce-cart td.actions .coupon .input-text {
  /* Woo core pins this to 80px !important — out-shout it */
  width: 260px !important; height: 46px; margin: 0; padding: 0 14px; box-sizing: border-box;
}
.woocommerce-cart td.actions .coupon .button { height: 46px; padding: 0 22px; box-sizing: border-box; }
.woocommerce-cart td.actions > .button { float: right; height: 46px; padding: 0 22px; box-sizing: border-box; }

.cart-collaterals .cart_totals { background: #f1f3fb; border-radius: 16px; padding: 24px; }
.cart_totals h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
/* block/flex layout so amounts hug the right edge and the shipment cell can
   break onto its own full-width line (table cells can't do either) */
.cart_totals table.shop_table,
.cart_totals table.shop_table tbody { display: block; width: 100%; border: 0 !important; margin: 0; background: none; }
.cart_totals table.shop_table { margin-bottom: 4px; }
.cart_totals table.shop_table tr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0;
}
.cart_totals table.shop_table th, .cart_totals table.shop_table td { border: 0; background: none; padding: 0; }
.cart_totals table.shop_table td { text-align: right; }
.cart_totals .order-total .amount { font-size: 20px; font-weight: 800; color: var(--wsp-ink); }
.cart_totals table.shop_table tr.woocommerce-shipping-totals { display: block; }
.cart_totals table.shop_table tr.woocommerce-shipping-totals th,
.cart_totals table.shop_table tr.woocommerce-shipping-totals td {
  display: block; width: 100%; text-align: left;
}
.cart_totals table.shop_table tr.woocommerce-shipping-totals td { margin-top: 8px; }
.cart_totals tr.woocommerce-shipping-totals ul#shipping_method { width: 100%; }
.cart_totals .wc-proceed-to-checkout { padding: 0; margin: 14px 0 0; }
.cart_totals .woocommerce-shipping-destination { font-size: 12.5px; color: var(--wsp-ink-3); }
.wc-proceed-to-checkout a.checkout-button {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; padding: 15px 22px;
}

/* variation lists everywhere (cart lines + checkout order review) */
.woocommerce dl.variation {
  display: grid; grid-template-columns: max-content auto; gap: 2px 6px;
  margin: 4px 0 0; font-size: 12.5px; color: var(--wsp-ink-2);
}
.woocommerce dl.variation dt, .woocommerce dl.variation dd { float: none; margin: 0; padding: 0; border: 0; }
.woocommerce dl.variation dt { font-weight: 600; }
.woocommerce dl.variation dd p { margin: 0; }

/* ============ Checkout pieces shared with the order-pay page ============ */

#customer_details.col2-set { width: 100%; }
#customer_details .col-1, #customer_details .col-2 { float: none !important; width: 100% !important; }
#customer_details .col-2 { margin-top: 20px; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, #order_review_heading {
  margin: 0 0 12px; font-size: 18px; font-weight: 700;
}
#order_review { background: var(--wsp-paper); border-radius: 16px; padding: 24px; width: 100%; }
#order_review table.shop_table { border: 0; background: none; margin: 0 0 14px; }
#order_review table.shop_table th, #order_review table.shop_table td {
  border: 0; border-top: 1px solid var(--wsp-line); background: none; padding: 10px 0;
}
#order_review table.shop_table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wsp-ink-3); }
#order_review .order-total .amount { font-size: 20px; font-weight: 800; }
#order_review td.product-name > a { color: var(--wsp-ink); text-decoration: none; font-weight: 600; }
#order_review td.product-name > a:hover { color: var(--wsp-accent-deep); }
#order_review tfoot th { font-weight: 600; }

#payment { background: none !important; border-radius: 0; }
#payment ul.payment_methods { border-bottom: 0 !important; padding: 0 !important; list-style: none; margin: 0 0 8px; }
#payment ul.payment_methods li { list-style: none; }
#payment .place-order { padding: 0 !important; margin: 0; }
#place_order { float: none !important; width: 100%; font-size: 15px; padding: 15px 22px; }
#payment .wsp-trust { clear: both; }
#payment .woocommerce-privacy-policy-text { font-size: 12px; color: var(--wsp-ink-3); }
#payment .woocommerce-privacy-policy-text p { margin: 0 0 12px; }

/* fields: placeholder-only boxes; selects keep a tiny label inside the box */
.form-row.wsp-ph > label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.form-row.wsp-sel { position: relative; }
.form-row.wsp-sel > label,
.woocommerce form .form-row.wsp-sel > label {
  position: absolute; top: 7px; left: 13px; z-index: 5; margin: 0;
  font-size: 10px; line-height: 1.2; font-weight: 600; color: var(--wsp-ink-3); pointer-events: none;
}
.form-row.wsp-sel > label .required, .form-row.wsp-sel > label abbr { display: none; }
.form-row.wsp-sel .select2-container--default .select2-selection--single { height: 56px; }
.form-row.wsp-sel .select2-selection--single .select2-selection__rendered { line-height: 20px !important; padding-top: 27px !important; }
.form-row.wsp-sel .select2-selection--single .select2-selection__arrow { height: 54px !important; }
.form-row.wsp-sel select { height: 56px; padding: 26px 12px 8px; }

/* shipping methods: selectable boxes, chosen one washed in accent */
ul#shipping_method { list-style: none; margin: 0; padding: 0; }
ul#shipping_method li {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--wsp-line); border-radius: 10px;
  padding: 11px 12px; margin: 0 0 8px; background: #fff;
}
ul#shipping_method li:has(input:checked) { background: var(--wsp-accent-wash); border-color: var(--wsp-accent-wash); }
ul#shipping_method input[type="radio"] { margin: 3px 0 0; accent-color: var(--wsp-accent); }
ul#shipping_method label { margin: 0; font-weight: 400; }

/* payment methods: boxed radios with a washed description panel */
.wsp-pay-note { margin: 0 0 10px; font-size: 12.5px; color: var(--wsp-ink-3); }
#payment ul.payment_methods li.wc_payment_method {
  border: 1px solid var(--wsp-line); border-radius: 10px; overflow: hidden;
  margin: 0 0 8px; background: #fff;
}
#payment li.wc_payment_method > label { display: block; margin: 0; padding: 12px 14px; font-weight: 600; cursor: pointer; }
#payment li.wc_payment_method:has(input:checked) > label { background: var(--wsp-accent-wash); }
#payment li.wc_payment_method input[type="radio"] { accent-color: var(--wsp-accent); margin-right: 6px; }
#payment div.payment_box {
  background: var(--wsp-accent-wash) !important; margin: 0 !important;
  border-radius: 0; padding: 12px 14px; font-size: 12.5px;
}
#payment div.payment_box::before { display: none !important; }

/* place order: accent blue like the marketplace */
.woocommerce #place_order, #payment #place_order {
  background: var(--wsp-accent); text-transform: none; letter-spacing: 0; border-radius: 10px;
}
.woocommerce #place_order:hover, #payment #place_order:hover { background: var(--wsp-accent-deep); }

/* form fields: labels above full-width inputs */
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--wsp-ink-2); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }
.select2-container--default .select2-selection--single { border: 1px solid #cfd3dd; border-radius: 10px; height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }


/* mobile polish for both pages */
@media (max-width: 767px) {
  .woocommerce-cart table.cart img { width: 72px; }
  .woocommerce-cart table.shop_table.cart td { padding: 12px 8px; }
  .woocommerce-cart td.actions .coupon .input-text { width: 100% !important; margin: 0 0 8px; }
  .woocommerce-cart td.actions .coupon, .woocommerce-cart td.actions > .button { float: none; width: 100%; }
  .cart-collaterals .cart_totals, #order_review { padding: 18px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}

/* ============ Checkout — ShopWase layout (body.wsp-co-shell) ============ */
/* a page of its own: the form on the white left half, the order summary on the grey right half, full height */
body.wsp-co-shell { background: #fff; }
@media (min-width: 1000px) {
  body.wsp-co-shell {
    background: linear-gradient(90deg, #fff 50%, var(--wsp-line) 50%, var(--wsp-line) calc(50% + 1px), var(--wsp-paper) calc(50% + 1px));
  }
}
.wsp-co-main { display: block; }
.wsp-co-page > .woocommerce { margin: 0; }
/* the discount code lives in the summary; WooCommerce's own coupon link and form stay out */
.wsp-co-page .woocommerce-form-coupon-toggle, .wsp-co-page form.checkout_coupon { display: none !important; }
.wsp-co-page .woocommerce-notices-wrapper:empty { display: none; }
/* anything WooCommerce prints above the form (the login box): in line with the left column */
.wsp-co-page > .woocommerce > :not(.wsp-co-form) { margin: 16px 16px 0; }
@media (min-width: 1000px) {
  .wsp-co-page > .woocommerce > :not(.wsp-co-form) {
    box-sizing: border-box; width: min(504px, calc(50% - 96px)); margin: 16px 0 0 max(48px, calc(50% - 552px));
  }
}

body.wsp-co-shell form.wsp-co-form { display: block; margin: 0; }
@media (min-width: 1000px) {
  body.wsp-co-shell form.wsp-co-form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto;
    gap: 0; align-items: stretch; min-height: 100vh;
  }
}
.wsp-co-left { display: flex; justify-content: flex-end; min-width: 0; }
.wsp-co-left-in { width: 100%; max-width: 600px; padding: 20px 16px 32px; }
.wsp-co-right { display: none; min-width: 0; }
@media (min-width: 1000px) {
  .wsp-co-left-in { padding: 36px 48px 32px; }
  .wsp-co-right { display: block; }
  .wsp-co-right-in { position: sticky; top: 0; max-width: 520px; max-height: 100vh; overflow-y: auto; padding: 36px 48px 32px; }
}
body.wsp-co-shell #order_review { position: static; width: auto; margin: 0; padding: 0; background: none; border-radius: 0; }

/* the cart has problems: logo bar, WooCommerce's message, back to the cart */
.wsp-co-page > .woocommerce > .wsp-co-errors { padding: 20px 16px 32px; }
@media (min-width: 1000px) { .wsp-co-page > .woocommerce > .wsp-co-errors { padding: 20px 0 32px; } }
.wsp-co-errors-body { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--wsp-ink-2); }
.wsp-co-errors-body .woocommerce-error, .wsp-co-errors-body .woocommerce-message, .wsp-co-errors-body .woocommerce-info { margin: 0 0 14px; }
.woocommerce .wsp-co-errors a.wsp-co-back {
  display: inline-flex; height: 48px; align-items: center; padding: 0 22px;
  border-radius: 8px; background: var(--wsp-accent); color: #fff; font-weight: 700;
}
.woocommerce .wsp-co-errors a.wsp-co-back:hover { background: var(--wsp-accent-deep); color: #fff; }

/* logo bar */
.wsp-co-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.wsp-co-brand .wsp-logo img { height: 36px; max-width: 220px; object-fit: contain; }
.wsp-co-bag {
  flex: none; display: flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--wsp-accent);
}
.wsp-co-bag:hover { background: var(--wsp-accent-wash); }
.wsp-co-bag:focus-visible, .wsp-co-foot a:focus-visible { outline: 2px solid var(--wsp-accent); outline-offset: 2px; }

/* section titles: Contact, Delivery, Shipping method, Payment */
body.wsp-co-shell .wsp-co-h {
  display: block; margin: 0 0 12px; padding: 0;
  font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--wsp-ink);
}
.wsp-co-sec { margin-top: 32px; }
.wsp-co-sec[hidden] { display: none; }
.wsp-co-notices { margin-top: 20px; }
.wsp-co-notices:empty { display: none; }
.wsp-co-notices .woocommerce-error, .wsp-co-notices .woocommerce-message, .wsp-co-notices .woocommerce-info { margin: 0 0 10px; }

/* fields */
body.wsp-co-shell #customer_details { margin-top: 28px; }
body.wsp-co-shell #customer_details .col-2 { margin-top: 0; }
body.wsp-co-shell .woocommerce-billing-fields > h3 { display: none; }
body.wsp-co-shell .woocommerce-billing-fields__field-wrapper,
body.wsp-co-shell .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
}
body.wsp-co-shell #customer_details .form-row { grid-column: span 6; float: none; width: auto; margin: 0; padding: 0; }
body.wsp-co-shell #customer_details h2.wsp-co-h-row { margin: 0; }
body.wsp-co-shell #customer_details #billing_wsp_h_delivery_field { margin-top: 20px; }
@media (min-width: 560px) {
  body.wsp-co-shell #customer_details .form-row-first,
  body.wsp-co-shell #customer_details .form-row-last { grid-column: span 3; }
  body.wsp-co-shell #customer_details #billing_city_field, body.wsp-co-shell #customer_details #billing_state_field,
  body.wsp-co-shell #customer_details #billing_postcode_field, body.wsp-co-shell #customer_details #shipping_city_field,
  body.wsp-co-shell #customer_details #shipping_state_field, body.wsp-co-shell #customer_details #shipping_postcode_field { grid-column: span 2; }
  /* a country without states: city and ZIP share the row */
  body.wsp-co-shell .woocommerce-billing-fields__field-wrapper:has(#billing_state_field[style*="none"]) #billing_city_field,
  body.wsp-co-shell .woocommerce-billing-fields__field-wrapper:has(#billing_state_field[style*="none"]) #billing_postcode_field,
  body.wsp-co-shell .woocommerce-shipping-fields__field-wrapper:has(#shipping_state_field[style*="none"]) #shipping_city_field,
  body.wsp-co-shell .woocommerce-shipping-fields__field-wrapper:has(#shipping_state_field[style*="none"]) #shipping_postcode_field { grid-column: span 3; }
}
body.wsp-co-shell #customer_details .form-row input.input-text,
body.wsp-co-shell #customer_details .form-row select {
  width: 100%; height: 52px; margin: 0; padding: 0 14px;
  border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
  font-size: 14.5px; color: var(--wsp-ink); box-shadow: none; outline: 0;
}
body.wsp-co-shell #customer_details .form-row input.input-text:focus,
body.wsp-co-shell #customer_details .form-row select:focus {
  border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); outline: 0;
}
body.wsp-co-shell #customer_details .form-row input.input-text::placeholder { color: #737a8c; opacity: 1; }
body.wsp-co-shell #customer_details .form-row .select2-container .select2-selection--single {
  height: 52px; border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
}
body.wsp-co-shell #customer_details .form-row .select2-container--focus .select2-selection--single,
body.wsp-co-shell #customer_details .form-row .select2-container--open .select2-selection--single {
  border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent);
}
body.wsp-co-shell #customer_details .form-row .select2-selection--single .select2-selection__rendered {
  padding: 0 36px 0 14px; line-height: 50px; font-size: 14.5px; color: var(--wsp-ink);
}
body.wsp-co-shell #customer_details .form-row .select2-selection--single .select2-selection__arrow { top: 0; right: 8px; height: 50px !important; }
/* selects keep a small label inside the box */
body.wsp-co-shell #customer_details .form-row.wsp-sel { position: relative; }
body.wsp-co-shell #customer_details .form-row.wsp-sel > label {
  position: absolute; top: 8px; left: 15px; z-index: 5; margin: 0;
  font-size: 11px; font-weight: 400; line-height: 1.2; color: var(--wsp-ink-3); pointer-events: none;
}
body.wsp-co-shell #customer_details .form-row.wsp-sel select { padding: 18px 36px 0 14px; }
body.wsp-co-shell #customer_details .form-row.wsp-sel .select2-selection--single .select2-selection__rendered {
  padding: 20px 36px 0 14px !important; line-height: 22px !important;
}
/* errors */
body.wsp-co-shell #customer_details .woocommerce-invalid input.input-text,
body.wsp-co-shell #customer_details .woocommerce-invalid select,
body.wsp-co-shell #customer_details .woocommerce-invalid .select2-selection--single {
  border-color: #d72c0d; box-shadow: inset 0 0 0 1px #d72c0d;
}
body.wsp-co-shell #customer_details .checkout-inline-error-message { margin: 6px 0 0; font-size: 12.5px; color: #d72c0d; }
/* "Email me with news and offers", "Ship to a different address?", "Create an account?" */
body.wsp-co-shell #customer_details .wsp-co-news label.checkbox,
body.wsp-co-shell #ship-to-different-address label,
body.wsp-co-shell .woocommerce-account-fields label.checkbox {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13.5px; font-weight: 400; color: var(--wsp-ink); cursor: pointer;
}
body.wsp-co-shell #customer_details .wsp-co-news input.input-checkbox,
body.wsp-co-shell #ship-to-different-address input.input-checkbox,
body.wsp-co-shell .woocommerce-account-fields input.input-checkbox {
  width: 18px; height: 18px; margin: 0; accent-color: var(--wsp-accent);
}
body.wsp-co-shell #customer_details .wsp-co-news .optional { display: none; }
body.wsp-co-shell #ship-to-different-address { margin: 16px 0 0; padding: 0; font-size: 14px; font-weight: 400; }
body.wsp-co-shell .shipping_address { margin-top: 14px; }
body.wsp-co-shell .woocommerce-account-fields { margin-top: 14px; }

/* country / state pickers: the open list in the theme's look (select2 hangs it off <body>) */
body.wsp-co-shell #customer_details .form-row .select2-container--open .select2-selection--single { border-radius: 8px; }
body.wsp-co-shell .select2-container--default .select2-dropdown {
  overflow: hidden; border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
  box-shadow: 0 12px 32px rgba(17, 20, 28, 0.14);
}
body.wsp-co-shell .select2-container--default .select2-dropdown--below { margin-top: 4px; border-top: 1px solid var(--wsp-field); }
body.wsp-co-shell .select2-container--default .select2-dropdown--above { margin-top: -4px; border-bottom: 1px solid var(--wsp-field); }
body.wsp-co-shell .select2-container--default .select2-search--dropdown { padding: 8px; }
body.wsp-co-shell .select2-container--default .select2-search--dropdown .select2-search__field {
  height: 40px; margin: 0; padding: 0 12px 0 36px; border: 1px solid var(--wsp-field); border-radius: 6px;
  font-size: 14px; color: var(--wsp-ink); outline: 0; box-shadow: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b92a5' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") no-repeat 12px center / 16px;
}
body.wsp-co-shell .select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent);
}
body.wsp-co-shell .select2-container--default .select2-search--dropdown .select2-search__field::placeholder { color: #737a8c; opacity: 1; }
body.wsp-co-shell .select2-container--default .select2-results > .select2-results__options { max-height: 288px; padding: 0 6px 6px; }
body.wsp-co-shell .select2-container--default .select2-results__option {
  margin: 0; padding: 9px 12px; border-radius: 6px; font-size: 14px; line-height: 1.35; color: var(--wsp-ink);
}
body.wsp-co-shell .select2-container--default .select2-results__option[aria-selected="true"],
body.wsp-co-shell .select2-container--default .select2-results__option[data-selected="true"] {
  background: none; color: var(--wsp-accent); font-weight: 600;
}
body.wsp-co-shell .select2-container--default .select2-results__option.select2-results__option--highlighted[aria-selected],
body.wsp-co-shell .select2-container--default .select2-results__option.select2-results__option--highlighted[data-selected] {
  background: var(--wsp-accent-tint); color: var(--wsp-ink);
}
body.wsp-co-shell .select2-container--default .select2-results__option.select2-results__option--highlighted[aria-selected="true"] { color: var(--wsp-accent); }
body.wsp-co-shell .select2-container--default .select2-results__message { color: var(--wsp-ink-3); }

/* address suggestions under the Address box */
body.wsp-co-shell .wsp-addr-wrap { display: block; position: relative; }
.wsp-addr-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; overflow: hidden;
  border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(17, 20, 28, 0.14);
}
.wsp-addr-list[hidden] { display: none; }
.wsp-addr-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; cursor: pointer;
  color: var(--wsp-ink); font-size: 14px; line-height: 1.35;
}
.wsp-addr-item + .wsp-addr-item { border-top: 1px solid var(--wsp-line); }
.wsp-addr-item svg { flex: none; margin-top: 2px; color: var(--wsp-ink-3); }
.wsp-addr-item b { display: block; font-weight: 600; }
.wsp-addr-item small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-addr-item:hover, .wsp-addr-item.is-active { background: var(--wsp-accent-tint); }
.wsp-addr-item.is-active svg { color: var(--wsp-accent); }
.wsp-addr-by { padding: 6px 14px; border-top: 1px solid var(--wsp-line); text-align: right; font-size: 11px; color: var(--wsp-ink-3); }

/* shipping method: a card per rate, price on the right, the chosen one outlined */
body.wsp-co-shell ul#shipping_method { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.wsp-co-shell ul#shipping_method li {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px;
  border: 1px solid var(--wsp-field); border-radius: 10px; background: #fff; line-height: 1.4;
}
body.wsp-co-shell ul#shipping_method li:has(input[type="radio"]:checked),
body.wsp-co-shell ul#shipping_method li:has(input[type="hidden"]) {
  border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); background: var(--wsp-accent-tint);
}
body.wsp-co-shell ul#shipping_method li input[type="radio"] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--wsp-accent); }
body.wsp-co-shell ul#shipping_method li label {
  flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  margin: 0; font-size: 14px; font-weight: 400; cursor: pointer;
}
body.wsp-co-shell ul#shipping_method .wsp-ship-name { font-weight: 600; }
body.wsp-co-shell ul#shipping_method .wsp-ship-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; text-align: right; }
body.wsp-co-shell ul#shipping_method .wsp-ship-window { grid-column: 1; margin: 1px 0 0; font-size: 12.5px; color: var(--wsp-ink-3); }
body.wsp-co-shell ul#shipping_method .wsp-ship-window b { font-weight: 400; }
.wsp-ship-empty {
  margin: 0; padding: 16px; border: 1px dashed var(--wsp-field); border-radius: 10px;
  font-size: 13.5px; color: var(--wsp-ink-3);
}

/* payment: a card per method, logos on the right, the chosen one outlined with its details below */
body.wsp-co-shell .wsp-pay-note { margin: -6px 0 12px; font-size: 13px; color: var(--wsp-ink-3); }
body.wsp-co-shell #payment { margin: 0; padding: 0; background: none !important; }
body.wsp-co-shell #payment ul.payment_methods { display: grid; gap: 10px; margin: 0; padding: 0 !important; border: 0 !important; }
body.wsp-co-shell #payment ul.payment_methods::before, body.wsp-co-shell #payment ul.payment_methods::after,
body.wsp-co-shell #payment ul.payment_methods li::before, body.wsp-co-shell #payment ul.payment_methods li::after { display: none; }
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method {
  display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0;
  border: 1px solid var(--wsp-field); border-radius: 10px; background: #fff; overflow: hidden; line-height: 1.4;
}
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method > input.input-radio {
  flex: none; width: 16px; height: 16px; margin: 0 0 0 16px; accent-color: var(--wsp-accent);
}
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method > label {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 15px 16px 15px 12px; font-size: 14px; font-weight: 600; background: none !important; cursor: pointer;
}
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method > label img {
  float: none !important; max-height: 24px !important; width: auto; margin: 0 !important; padding: 0 !important; top: 0;
}
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method > label img:first-of-type { margin-left: auto !important; }
body.wsp-co-shell #payment ul.payment_methods li.payment_method_cod > label::after {
  content: ""; flex: none; margin-left: auto; width: 26px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Crect x='.75' y='.75' width='24.5' height='16.5' rx='2.5' fill='%23ecfdf3' stroke='%2316a34a' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='9' r='3.2' fill='none' stroke='%2316a34a' stroke-width='1.5'/%3E%3Cpath d='M4.5 5.5v7M21.5 5.5v7' stroke='%2316a34a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* the chosen method: one even tint over the whole card, like the shipping cards */
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method:has(> input:checked) {
  border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); background: var(--wsp-accent-tint);
}
/* only the method's name: the gateway's picture and "you will be redirected…" text stay out.
   A gateway that asks for details here (card fields) keeps its box. */
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method div.payment_box:not(:has(input:not([type="hidden"]), select, textarea, iframe)) {
  display: none !important;
}
body.wsp-co-shell #payment ul.payment_methods li.wc_payment_method div.payment_box {
  flex: 0 0 100%; margin: 0 !important; padding: 14px 16px !important; border-radius: 0 !important;
  border-top: 1px solid var(--wsp-line); background: transparent !important;
  font-size: 13px; line-height: 1.55; color: var(--wsp-ink-2);
}
body.wsp-co-shell #payment div.payment_box::before { display: none !important; }
body.wsp-co-shell #payment div.payment_box p:last-child { margin-bottom: 0; }
/* the order button (a terms checkbox, when the store turns one on, sits above it; the policy links follow the section) */
body.wsp-co-shell #payment .place-order { display: flex; flex-direction: column; margin: 20px 0 0 !important; padding: 0 !important; }
body.wsp-co-shell #payment #place_order {
  order: 2; float: none !important; width: 100%; height: 52px; margin: 0; padding: 0 20px;
  border: 0; border-radius: 8px; background: var(--wsp-accent); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
}
body.wsp-co-shell #payment #place_order:hover { background: var(--wsp-accent-deep); }
body.wsp-co-shell #payment #place_order:focus-visible { outline: 2px solid var(--wsp-ink); outline-offset: 2px; }
/* a PayPal method: PayPal's yellow button (the button keeps its text for screen readers) */
body.wsp-co-shell form.wsp-co-form.wsp-pay-paypal #payment #place_order {
  color: transparent;
  background: #ffc439 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='24' viewBox='0 0 92 24'%3E%3Ctext x='0' y='19' font-family='Verdana,Arial,sans-serif' font-size='20' font-style='italic' font-weight='700' fill='%23003087'%3EPay%3Ctspan fill='%23009cde'%3EPal%3C/tspan%3E%3C/text%3E%3C/svg%3E") no-repeat center / auto 22px;
}
body.wsp-co-shell form.wsp-co-form.wsp-pay-paypal #payment #place_order:hover { background-color: #f2ba36; }
body.wsp-co-shell #payment .woocommerce-terms-and-conditions-wrapper { order: 3; margin: 16px 0 0; }
body.wsp-co-shell #payment .woocommerce-terms-and-conditions-wrapper:has(#terms) { order: 1; margin: 0 0 14px; }
body.wsp-co-shell #payment .woocommerce-privacy-policy-text p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--wsp-ink-3); }
body.wsp-co-shell #payment .woocommerce-privacy-policy-text a { color: var(--wsp-accent); }

/* policy links under the order button (ShopWase style: underlined, in a row) */
.wsp-co-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 40px; font-size: 13px; line-height: 1.5; }
.wsp-co-foot a { color: var(--wsp-accent); text-decoration: underline; text-underline-offset: 2px; }
.wsp-co-foot a:hover { color: var(--wsp-accent-deep); }
.wsp-co-foot span { color: var(--wsp-ink-3); }
/* the terms area holds nothing now unless the store asks for a terms checkbox */
body.wsp-co-shell #payment .woocommerce-terms-and-conditions-wrapper:not(:has(*)) { display: none; }

/* order summary (right half; on phones inside "Show order summary") */
.wsp-sum { font-size: 14px; color: var(--wsp-ink); }
.wsp-sum-items { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.wsp-sum-item { display: flex; align-items: center; gap: 14px; }
.wsp-sum-thumb {
  position: relative; flex: none; width: 64px; height: 64px;
  border: 1px solid var(--wsp-line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wsp-sum-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.wsp-sum-initials { font-size: 13px; font-weight: 700; color: var(--wsp-ink-3); }
.wsp-sum-qty {
  position: absolute; top: -8px; left: -8px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--wsp-ink); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.wsp-sum-body { flex: 1; min-width: 0; }
.wsp-sum-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 600; line-height: 1.35;
}
.wsp-sum-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-sum-price { flex: none; font-weight: 600; }
.wsp-sum-coupon { margin-top: 24px; }
.wsp-sum-coupon-row { display: flex; gap: 10px; }
.wsp-sum-coupon-input {
  flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 14px;
  border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
  font-size: 14.5px; color: var(--wsp-ink); text-transform: uppercase;
}
.wsp-sum-coupon-input::placeholder { text-transform: none; color: #737a8c; opacity: 1; }
.wsp-sum-coupon-input:focus { outline: 0; border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); }
.wsp-sum-coupon-apply {
  flex: none; height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: 8px;
  background: var(--wsp-line); color: var(--wsp-ink-3); font-size: 14px; font-weight: 600; cursor: pointer;
}
.wsp-sum-coupon.has-code .wsp-sum-coupon-apply { background: var(--wsp-ink); color: #fff; }
.wsp-sum-coupon.is-busy .wsp-sum-coupon-apply { opacity: 0.6; pointer-events: none; }
.wsp-sum-coupon-apply:focus-visible { outline: 2px solid var(--wsp-accent); outline-offset: 2px; }
.wsp-sum-coupon-msg { margin: 8px 0 0; font-size: 12.5px; color: #c5221f; }
.wsp-sum-coupon-msg[hidden] { display: none; }
.wsp-sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wsp-sum-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--wsp-line); font-size: 12.5px; font-weight: 600;
}
.wsp-sum-chip a { color: inherit; text-decoration: none; font-size: 15px; line-height: 1; opacity: 0.7; }
.wsp-sum-chip a:hover { opacity: 1; }
.wsp-sum-lines { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wsp-line); }
.wsp-sum-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; }
.wsp-sum-line > span:first-child { color: var(--wsp-ink-2); }
.wsp-sum-line > span:last-child { font-weight: 500; text-align: right; }
.wsp-sum-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--wsp-line);
}
.wsp-sum-total-label { font-size: 17px; font-weight: 600; }
.wsp-sum-total-val { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 8px; }
.wsp-sum-cur { font-size: 12.5px; font-weight: 500; color: var(--wsp-ink-3); }
.wsp-sum-total-val strong { font-size: 22px; font-weight: 800; }
.wsp-sum-total-val small { flex-basis: 100%; text-align: right; font-size: 12px; color: var(--wsp-ink-3); }
body.wsp-co-shell #order_review .wsp-sum .amount, body.wsp-co-shell .wsp-mob-summary .wsp-sum .amount { font-size: inherit; font-weight: inherit; }
.wsp-sum-note { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--wsp-ink-3); }
.wsp-sum-note b { font-weight: 600; color: var(--wsp-ink-2); }
.wsp-sum-note a { color: var(--wsp-accent); }
.wsp-sum-shipsrc { display: none !important; }

/* phones: the summary folds under the logo */
.wsp-mob-summary { display: none; }
@media (max-width: 999px) {
  .wsp-mob-summary { display: block; margin-top: 20px; border: 1px solid var(--wsp-line); border-radius: 12px; background: var(--wsp-paper); }
  .wsp-mob-summary-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0; padding: 14px 16px; border: 0; border-radius: 12px; background: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--wsp-ink);
  }
  .wsp-mob-summary-toggle:focus-visible { outline: 2px solid var(--wsp-accent); outline-offset: -2px; }
  .wsp-mob-summary-label { display: inline-flex; align-items: center; gap: 6px; color: var(--wsp-accent); }
  .wsp-mob-summary-label svg { transition: transform 0.15s ease; }
  .wsp-mob-summary.is-open .wsp-mob-summary-label svg { transform: rotate(180deg); }
  .wsp-mob-summary-total { font-size: 16px; font-weight: 800; }
  .wsp-mob-summary-body { padding: 16px; border-top: 1px solid var(--wsp-line); }
  .wsp-mob-summary-body[hidden] { display: none; }
}

/* ============ Mini cart (slides in from the right) ============ */
.wsp-mc-root { position: fixed; inset: 0; z-index: 1000; }
.wsp-mc-root[hidden] { display: none; }
.wsp-mc-backdrop { position: absolute; inset: 0; background: rgba(17, 20, 28, 0.45); opacity: 0; transition: opacity 0.2s ease; }
.wsp-mc {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(17, 20, 28, 0.18);
  transform: translateX(100%); transition: transform 0.22s ease; outline: 0;
}
.wsp-mc-root.is-open .wsp-mc-backdrop { opacity: 1; }
.wsp-mc-root.is-open .wsp-mc { transform: none; }
@media (prefers-reduced-motion: reduce) { .wsp-mc, .wsp-mc-backdrop { transition: none; } }
.wsp-mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--wsp-line); }
.wsp-mc-head h2 { margin: 0; font-size: 18px; font-weight: 400; color: var(--wsp-ink); }
.wsp-mc-close {
  display: flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: none; color: var(--wsp-ink-2); cursor: pointer;
}
.wsp-mc-close:hover { background: var(--wsp-paper); color: var(--wsp-ink); }
.wsp-mc button:focus-visible, .wsp-mc a:focus-visible { outline: 2px solid var(--wsp-accent); outline-offset: 2px; }
.wsp-mc-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wsp-mc-content.is-busy .wsp-mc-scroll, .wsp-mc-content.is-busy .wsp-mc-foot { opacity: 0.6; pointer-events: none; }
.wsp-mc-loading { margin: 0; padding: 48px 20px; text-align: center; color: var(--wsp-ink-3); }
.wsp-mc-error { margin: 12px 20px 0; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #b42318; font-size: 13px; }
.wsp-mc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px; }
.wsp-mc-items { margin: 0; padding: 0; list-style: none; }
.wsp-mc-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--wsp-line); }
.wsp-mc-item:last-child { border-bottom: 0; }
.wsp-mc-thumb {
  flex: none; width: 72px; height: 72px; overflow: hidden;
  border: 1px solid var(--wsp-line); border-radius: 8px; background: var(--wsp-paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--wsp-ink-3); text-decoration: none;
}
.wsp-mc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wsp-mc-info { flex: 1; min-width: 0; }
.wsp-mc-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--wsp-ink); text-decoration: none;
}
a.wsp-mc-name:hover { color: var(--wsp-accent-deep); }
.wsp-mc-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-mc-price { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--wsp-sale); }
.wsp-mc-cur { font-size: 10.5px; font-weight: 600; opacity: 0.8; }
.wsp-mc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.wsp-mc-stepper { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--wsp-line); border-radius: 8px; }
.wsp-mc-stepper button {
  width: 32px; height: 30px; margin: 0; padding: 0; border: 0; background: #fff;
  font-size: 16px; line-height: 1; color: var(--wsp-ink); cursor: pointer;
}
.wsp-mc-stepper button:hover { background: var(--wsp-paper); }
.wsp-mc-qty { display: flex; min-width: 34px; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.wsp-mc-remove {
  display: flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: none; color: var(--wsp-ink-3); cursor: pointer;
}
.wsp-mc-remove:hover { background: var(--wsp-paper); color: var(--wsp-sale); }
.wsp-mc-foot { padding: 16px 20px 20px; border-top: 1px solid var(--wsp-line); }
.wsp-mc-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wsp-mc-sub-label { font-size: 16px; font-weight: 700; }
.wsp-mc-sub-val { font-size: 20px; font-weight: 800; }
.wsp-mc-sub-val small { font-size: 11px; font-weight: 600; color: var(--wsp-ink-3); }
.wsp-mc-checkout {
  display: flex; height: 52px; margin-top: 12px; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; background: var(--wsp-cta); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.wsp-mc-checkout:hover { background: var(--wsp-cta-dark); color: #fff; }
.wsp-mc-viewcart { display: block; margin-top: 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--wsp-accent); text-decoration: none; }
.wsp-mc-viewcart:hover { text-decoration: underline; }
.wsp-mc-notes { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--wsp-ink-3); }
.wsp-mc-notes p { margin: 0; }
.wsp-mc-notes b { color: var(--wsp-ink); }
.wsp-mc-notes a { color: var(--wsp-accent); }
.wsp-mc-empty { padding: 56px 20px; text-align: center; }
.wsp-mc-empty p { margin: 0; font-size: 15px; font-weight: 600; }
.wsp-mc-empty a {
  display: inline-block; margin-top: 16px; padding: 10px 24px; border-radius: 999px;
  background: var(--wsp-ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
}

/* ============ Footer ============ */
.wsp-footer { margin-top: 56px; background: var(--wsp-navy); color: #fff; }
.wsp-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.wsp-footer a:hover { color: #fff; text-decoration: underline; }
.wsp-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-top: 48px; padding-bottom: 48px; font-size: 13.5px;
}
@media (min-width: 640px) { .wsp-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wsp-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.wsp-footer-brand img { height: 30px; width: auto; }
.wsp-footer-brand .wsp-footer-name { font-size: 22px; font-weight: 800; color: #fff; }
.wsp-footer-addr { margin: 12px 0 0; max-width: 320px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.wsp-footer-addr b { color: #fff; }
.wsp-footer-follow { margin: 20px 0 0; font-size: 14px; font-weight: 700; }
.wsp-footer-social { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.wsp-footer-social a { display: flex; color: #fff; }
.wsp-footer-social a:hover { color: rgba(255, 255, 255, 0.7); }
.wsp-footer-col p { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.wsp-footer-col ul { list-style: none; margin: 0; padding: 0; }
.wsp-footer-col li { margin-top: 10px; }
.wsp-footer-col li:first-child { margin-top: 0; }
.wsp-footer-col span { color: rgba(255, 255, 255, 0.8); cursor: default; }
.wsp-footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.wsp-footer-bar-in {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 18px; padding-bottom: 18px;
}
@media (min-width: 768px) { .wsp-footer-bar-in { flex-direction: row; } }
.wsp-footer-bar-in p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.wsp-footer-bar-in b { color: #fff; }
.wsp-footer-pay { height: 26px; width: auto; max-width: 100%; }

/* ============ Track your order ([wsp_track_order]) ============ */
.wsp-track { margin: 8px 0 0; }
.wsp-track-card { max-width: 520px; margin: 0 auto; padding: 28px 4px 24px; text-align: center; background: none; }
.wsp-track-icon { display: inline-flex; color: var(--wsp-accent); }
.wsp-track-title { margin: 10px 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--wsp-ink); }
.wsp-track-sub { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--wsp-ink-3); }
.wsp-track-form { display: grid; gap: 14px; text-align: left; }
.wsp-track-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--wsp-ink-2); }
.wsp-track-field b { margin-left: 2px; color: var(--wsp-sale); font-weight: 600; }
.wsp-track-field input {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px;
  border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 14.5px; color: var(--wsp-ink); outline: 0;
}
.wsp-track-field input:focus { border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); }
.wsp-track-go {
  height: 50px; margin-top: 2px; border: 0; border-radius: 8px; background: var(--wsp-ink); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.wsp-track-go:hover { background: #000; }
.wsp-track-go:disabled { opacity: 0.6; cursor: default; }
.wsp-track-faq-link {
  display: block; padding: 13px 16px; border-radius: 8px; background: var(--wsp-paper);
  color: var(--wsp-ink-2); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none;
}
.wsp-track-faq-link:hover { background: #eef0f6; color: var(--wsp-ink); }
.wsp-track-msg { margin: 0; font-size: 13.5px; color: var(--wsp-green); }
.wsp-track-msg.is-error { color: var(--wsp-sale); }
.wsp-track-msg[hidden] { display: none; }

.wsp-track-tips { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .wsp-track-tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wsp-track-tips { grid-template-columns: repeat(4, 1fr); } }
.wsp-track-tip { padding: 18px; border-radius: 14px; background: var(--wsp-paper); }
.wsp-track-tip-icon {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--wsp-accent-wash); color: var(--wsp-accent);
}
.wsp-track-tip p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--wsp-ink-2); }
.wsp-track-tip a { color: var(--wsp-accent); }

.wsp-track-faq { margin-top: 44px; }
.wsp-track-faq h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; text-align: center; color: var(--wsp-ink); }
.wsp-track-q { border-bottom: 1px solid var(--wsp-line); }
.wsp-track-q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px; font-size: 15px; font-weight: 600; color: var(--wsp-ink); cursor: pointer; list-style: none;
}
.wsp-track-q summary::-webkit-details-marker { display: none; }
.wsp-track-q summary svg { flex: none; color: var(--wsp-ink-3); transition: transform 0.15s ease; }
.wsp-track-q[open] summary svg { transform: rotate(180deg); }
.wsp-track-q p { margin: 0 2px 18px; font-size: 14px; line-height: 1.7; color: var(--wsp-ink-2); }
.wsp-track-q a { color: var(--wsp-accent); }

/* the answer */
.wsp-track-result[hidden] { display: none; }
.wsp-trk { margin-top: 28px; border: 1px solid var(--wsp-line); border-radius: 16px; background: #fff; overflow: hidden; }
.wsp-trk-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px;
  padding: 20px 22px; border-bottom: 1px solid var(--wsp-line); background: var(--wsp-paper);
}
.wsp-trk-head h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--wsp-ink); }
.wsp-trk-no { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--wsp-ink-2); }
.wsp-trk-no strong { color: var(--wsp-ink); }
.wsp-trk-placed { margin: 2px 0 0; font-size: 13px; color: var(--wsp-ink-3); }
.wsp-trk-copy {
  display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: none; color: var(--wsp-ink-3); cursor: pointer;
}
.wsp-trk-copy:hover { background: #e9ecf4; color: var(--wsp-ink); }
.wsp-trk-copy.is-copied { color: var(--wsp-green); }
.wsp-trk-status {
  padding: 7px 14px; border-radius: 999px; background: var(--wsp-accent); color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.wsp-trk-status.is-off { background: var(--wsp-ink-3); }

.wsp-trk-steps { display: grid; gap: 4px; margin: 0; padding: 22px 22px 6px; list-style: none; }
@media (min-width: 720px) { .wsp-trk-steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.wsp-trk-step { position: relative; padding: 0 0 18px 26px; font-size: 13.5px; color: var(--wsp-ink-3); }
@media (min-width: 720px) { .wsp-trk-step { padding: 26px 12px 0 0; } }
.wsp-trk-dot {
  position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 999px;
  border: 2px solid var(--wsp-line); background: #fff;
}
@media (min-width: 720px) {
  .wsp-trk-dot { top: 0; left: 0; }
  .wsp-trk-step::before { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: var(--wsp-line); }
  .wsp-trk-step:last-child::before { display: none; }
  .wsp-trk-step.is-done::before { background: var(--wsp-accent); }
}
.wsp-trk-step.is-done .wsp-trk-dot { border-color: var(--wsp-accent); background: var(--wsp-accent); }
.wsp-trk-step.is-current .wsp-trk-dot { border-color: var(--wsp-accent); box-shadow: 0 0 0 4px var(--wsp-accent-wash); }
.wsp-trk-step.is-done, .wsp-trk-step.is-current { color: var(--wsp-ink); }
.wsp-trk-step-label { display: block; font-weight: 600; }
.wsp-trk-step-at { display: block; margin-top: 2px; font-size: 12.5px; color: var(--wsp-ink-3); font-weight: 400; }
.wsp-trk-note {
  margin: 4px 22px 0; padding: 12px 14px; border-radius: 10px;
  background: var(--wsp-amber-soft, #fff7e6); color: var(--wsp-ink-2); font-size: 13.5px; line-height: 1.6;
}

.wsp-trk-cols { display: grid; gap: 18px; padding: 22px; }
@media (min-width: 900px) { .wsp-trk-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.wsp-trk-left, .wsp-trk-right { display: grid; gap: 18px; align-content: start; }
.wsp-trk-box { padding: 18px; border: 1px solid var(--wsp-line); border-radius: 12px; }
.wsp-trk-box h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--wsp-ink); }
.wsp-trk-parcel { padding: 18px; border: 1px solid var(--wsp-line); border-radius: 12px; }
.wsp-trk-parcel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.wsp-trk-parcel-carrier { margin: 0; font-size: 15px; font-weight: 700; color: var(--wsp-ink); }
.wsp-trk-parcel-no { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-size: 13px; color: var(--wsp-ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wsp-trk-parcel-right { display: flex; align-items: center; gap: 10px; }
.wsp-trk-pill { padding: 5px 12px; border-radius: 999px; background: var(--wsp-accent-wash); color: var(--wsp-accent-deep); font-size: 12.5px; font-weight: 700; }
.wsp-trk-carrier-link { font-size: 13px; font-weight: 600; color: var(--wsp-accent); text-decoration: none; }
.wsp-trk-carrier-link:hover { text-decoration: underline; }
.wsp-trk-parcel-items { margin: 8px 0 0; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-trk-none { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--wsp-ink-3); }
.wsp-trk-events { margin: 16px 0 0; padding: 0 0 0 18px; list-style: none; border-left: 2px solid var(--wsp-line); }
.wsp-trk-ev { position: relative; padding: 0 0 16px; }
.wsp-trk-ev::before {
  content: ""; position: absolute; top: 5px; left: -25px; width: 10px; height: 10px;
  border-radius: 999px; border: 2px solid var(--wsp-line); background: #fff;
}
.wsp-trk-ev:first-child::before { border-color: var(--wsp-accent); background: var(--wsp-accent); }
.wsp-trk-ev-time { display: block; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-trk-ev-text { display: block; font-size: 13.5px; line-height: 1.55; color: var(--wsp-ink); }
.wsp-trk-ev:first-child .wsp-trk-ev-text { font-weight: 600; }
.wsp-trk-ev-place { display: block; margin-top: 1px; font-size: 12.5px; color: var(--wsp-ink-3); }

.wsp-trk-items { margin: 0; padding: 0; list-style: none; }
.wsp-trk-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--wsp-line); }
.wsp-trk-item:first-child { border-top: 0; padding-top: 0; }
.wsp-trk-thumb {
  position: relative; flex: none; width: 56px; height: 56px; overflow: hidden;
  border: 1px solid var(--wsp-line); border-radius: 8px; background: var(--wsp-paper);
}
.wsp-trk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsp-trk-qty {
  position: absolute; top: -7px; left: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--wsp-ink); color: #fff; font-size: 11px; font-weight: 700;
}
.wsp-trk-item-body { flex: 1; min-width: 0; }
.wsp-trk-item-name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--wsp-ink); }
.wsp-trk-item-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--wsp-ink-3); }
.wsp-trk-item-state { flex: none; font-size: 12.5px; font-weight: 600; color: var(--wsp-ink-2); }
.wsp-trk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--wsp-line); font-size: 14px; }
.wsp-trk-total strong { font-size: 17px; font-weight: 800; }
.wsp-trk-addr { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--wsp-ink-2); }
.wsp-trk-help p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--wsp-ink-3); }
.wsp-trk-contact, .wsp-trk-again {
  display: block; width: 100%; box-sizing: border-box; height: 44px; margin-top: 8px; padding: 0 16px;
  border: 1px solid var(--wsp-line); border-radius: 8px; background: #fff; color: var(--wsp-ink);
  font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 42px; text-align: center; text-decoration: none; cursor: pointer;
}
.wsp-trk-contact { background: var(--wsp-ink); border-color: var(--wsp-ink); color: #fff; }
.wsp-trk-contact:hover { background: #000; color: #fff; }
.wsp-trk-again:hover { background: var(--wsp-paper); }

/* ============ Contact form ([wsp_contact]) ============ */
/* as wide as the page column it sits in */
.wsp-contact { width: 100%; margin: 24px 0 0; }
.wsp-contact-title { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.wsp-contact-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .wsp-contact-grid { grid-template-columns: 1fr 1fr; } }
.wsp-contact-field { display: block; margin: 0 0 14px; }
.wsp-contact-grid .wsp-contact-field { margin: 0; }
.wsp-contact-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--wsp-ink-2); }
.wsp-contact input[type="text"], .wsp-contact input[type="email"], .wsp-contact textarea {
  width: 100%; box-sizing: border-box; padding: 0 14px; height: 48px;
  border: 1px solid var(--wsp-field); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 14.5px; color: var(--wsp-ink); outline: 0;
}
.wsp-contact textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.wsp-contact input:focus, .wsp-contact textarea:focus { border-color: var(--wsp-accent); box-shadow: inset 0 0 0 1px var(--wsp-accent); }
.wsp-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wsp-contact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.wsp-contact-send {
  height: 48px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--wsp-accent); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.wsp-contact-send:hover { background: var(--wsp-accent-deep); }
.wsp-contact-send:disabled { opacity: 0.6; cursor: default; }
.wsp-contact-msg { margin: 0; font-size: 13.5px; }
.wsp-contact-msg[hidden] { display: none; }
.wsp-contact-msg.is-ok { color: var(--wsp-green); }
.wsp-contact-msg.is-error { color: var(--wsp-sale); }

/* ============ Generic content pages ============ */
.wsp-entry h1.entry-title { margin-top: 0; }

/* a page of text: one centred column, the same gap left and right */
.wsp-doc > article { max-width: 880px; margin-left: auto; margin-right: auto; }
.wsp-doc h1.entry-title { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.wsp-doc .entry-content { font-size: 15px; line-height: 1.75; color: var(--wsp-ink-2); }
.wsp-doc .entry-content > :first-child { margin-top: 0; }
.wsp-doc .entry-content p { margin: 0 0 14px; }
.wsp-doc .entry-content h2 { margin: 30px 0 10px; font-size: 20px; font-weight: 600; color: var(--wsp-ink); }
.wsp-doc .entry-content h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; color: var(--wsp-ink); }
.wsp-doc .entry-content ul, .wsp-doc .entry-content ol { margin: 0 0 14px; padding-left: 22px; }
.wsp-doc .entry-content li { margin: 4px 0; }
.wsp-doc .entry-content img { border-radius: 12px; }
.wsp-doc .entry-content table { width: 100%; border-collapse: collapse; }
.wsp-doc .wsp-contact { margin-top: 20px; }
.wsp-404 { text-align: center; padding: 64px 16px; }
.wsp-404 h1 { font-size: 32px; }
.wsp-404 a.wsp-btn {
  display: inline-block; margin-top: 18px; padding: 12px 28px; border-radius: 999px;
  background: var(--wsp-accent); color: #fff; text-decoration: none; font-weight: 700;
}
