/*
Theme Name: PrintWase
Theme URI: https://printwase.com
Author: PrintWase
Author URI: https://printwase.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: #1f239c;
  --wsp-accent-deep: #171b78;
  --wsp-accent-bright: #2f34c4;
  --wsp-accent-wash: #eceef9;
  --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;
}

/* ============ 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-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 page — marketplace layout ============ */
.woocommerce-checkout .entry-content > .woocommerce { max-width: 1050px; margin: 0 auto; }
.woocommerce-checkout .wsp-page-title { max-width: 1050px; margin-left: auto; margin-right: auto; }
form.woocommerce-checkout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  /* rows: auto (heading) + 1fr — the tall left column must not inflate row 1 */
  form.woocommerce-checkout { grid-template-columns: 1fr 420px; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 14px; }
  form.woocommerce-checkout #wsp-co-left, form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
  form.woocommerce-checkout #wsp-co-left #customer_details { grid-row: auto; }
  form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
  form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
}
#wsp-ship-section { margin-top: 24px; }
#wsp-ship-section h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
#wsp-co-left #payment { margin-top: 8px; }
/* the interactive shipping picker moved to the left column — hide its table row */
table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
table.woocommerce-checkout-review-order-table tr.shipping { display: none; }

#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; }

/* inline discount code row in the summary panel */
.woocommerce form.checkout_coupon, form.checkout_coupon {
  display: flex !important; gap: 8px; align-items: stretch; width: 100%;
  margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: none;
}
.woocommerce form.checkout_coupon > p:not(.form-row) { display: none; }
.woocommerce form.checkout_coupon .form-row, form.checkout_coupon .form-row { margin: 0; float: none; padding: 0; }
.woocommerce form.checkout_coupon .form-row-first, form.checkout_coupon .form-row-first { flex: 1; width: auto; }
.woocommerce form.checkout_coupon .form-row-last, form.checkout_coupon .form-row-last { width: auto; }
.woocommerce form.checkout_coupon input[name="coupon_code"] { height: 46px; width: 100%; padding: 0 14px; background: #fff; }
.woocommerce form.checkout_coupon .button, form.checkout_coupon .button { height: 46px; padding: 0 20px; background: #e7e9f0; color: var(--wsp-ink-2); }
.woocommerce form.checkout_coupon .button:hover { background: #dadded; color: var(--wsp-ink); }
.woocommerce form.checkout_coupon .clear { display: none; }

/* summary lines: thumbnail with quantity badge, no "× N" text */
#order_review td.product-name, .wsp-mob-summary td.product-name { overflow: hidden; }
.wsp-rev-thumb {
  float: left; position: relative; width: 52px; height: 52px; margin: 2px 12px 4px 0;
  border: 1px solid var(--wsp-line); border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wsp-rev-thumb img { max-width: 100%; max-height: 100%; border-radius: 9px; object-fit: contain; }
.wsp-rev-qty {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 999px; background: var(--wsp-ink-2); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.woocommerce-checkout .product-quantity, .wsp-mob-summary .product-quantity { display: none; }

/* mobile checkout: collapsible summary bar (marketplace style) */
.wsp-mob-summary { display: none; }
@media (max-width: 1023px) {
  .wsp-mob-summary { display: block; 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;
    padding: 14px 16px; background: none; border: 0; cursor: pointer;
    font-size: 14px; color: var(--wsp-accent);
  }
  .wsp-mob-summary-label { display: inline-flex; align-items: center; gap: 6px; }
  .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; color: var(--wsp-ink); }
  .wsp-mob-summary-body { padding: 0 16px 10px; }
  .wsp-mob-summary-body table.shop_table { border: 0; background: none; margin: 0; width: 100%; }
  .wsp-mob-summary-body table.shop_table th, .wsp-mob-summary-body table.shop_table td {
    border: 0; border-top: 1px solid var(--wsp-line); background: none; padding: 10px 0;
  }
  .wsp-mob-summary-body table.shop_table thead { display: none; }
  .wsp-mob-summary-body table.shop_table tbody tr:first-child td,
  .wsp-mob-summary-body table.shop_table tbody tr:first-child th { border-top: 0; }
  .wsp-mob-summary-body .order-total .amount { font-size: 18px; font-weight: 800; }
  .woocommerce-checkout #order_review_heading { display: none; }
  /* its table and coupon moved into the summary bar — collapse the empty shell */
  .woocommerce-checkout #order_review { background: none; padding: 0; }
  form.woocommerce-checkout { gap: 18px; }
}

/* 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; }
}

/* ============ 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%; }

/* ============ Generic content pages ============ */
.wsp-entry h1.entry-title { margin-top: 0; }
.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;
}
