/* ── Login page ──────────────────────────────────────────────────────── */

body.woocommerce-account:not(.logged-in) {
  background: #f5f5f5;
}

/* Hide WC breadcrumb on login */
body.woocommerce-account:not(.logged-in) .woocommerce-breadcrumb {
  display: none;
}

/* ── Login wrapper ───────────────────────────────────────────────────── */
.cp-login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 60px;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.cp-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.cp-login-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1a1a1a;
  margin-bottom: 4px !important;
  letter-spacing: -0.01em;
}

.cp-login-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

/* ── Fields ──────────────────────────────────────────────────────────── */
.cp-login-form .cp-field {
  margin-bottom: 16px;
}

.cp-login-form .cp-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.cp-forgot-link {
  font-size: 12px;
  font-weight: 500;
  color: #1B3A5C;
  text-decoration: none;
}

.cp-forgot-link:hover {
  text-decoration: underline;
}

.cp-login-form input[type="text"],
.cp-login-form input[type="password"],
.cp-login-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-login-form input[type="text"]:focus,
.cp-login-form input[type="password"]:focus,
.cp-login-form input[type="email"]:focus {
  border-color: #1B3A5C;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 74, 71, 0.08);
}

/* ── Remember me ─────────────────────────────────────────────────────── */
.cp-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  margin-bottom: 4px;
}

.cp-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1B3A5C;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Log in button ───────────────────────────────────────────────────── */
.cp-btn-login {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1B3A5C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 18px;
  text-align: center;
  transition: background 0.15s;
}

.cp-btn-login:hover {
  background: #142d48;
}

/* ── Divider ─────────────────────────────────────────────────────────── */
.cp-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #bbb;
  font-size: 13px;
}

.cp-login-divider::before,
.cp-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

/* ── Create account button ───────────────────────────────────────────── */
.cp-btn-register {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1.5px solid #1B3A5C;
  border-radius: 8px;
  color: #1B3A5C;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  box-sizing: border-box;
  transition: background 0.15s;
}

.cp-btn-register:hover {
  background: #f5f5f5;
}

/* ── Browse link ─────────────────────────────────────────────────────── */
.cp-login-browse {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.cp-login-browse a {
  color: #666;
  text-decoration: none;
}

.cp-login-browse a:hover {
  color: #1B3A5C;
  text-decoration: underline;
}

/* ── Trust badges ────────────────────────────────────────────────────── */
.cp-login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.cp-login-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cp-login-trust svg {
  color: #1B3A5C;
  flex-shrink: 0;
}

.cp-trust-sep {
  color: #ddd;
}

/* ── WC notices inside card ──────────────────────────────────────────── */
.cp-login-card .woocommerce-error,
.cp-login-card .woocommerce-message,
.cp-login-card .woocommerce-info {
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  list-style: none;
  padding: 12px 16px;
  border-left: none;
}

.cp-login-card .woocommerce-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.cp-login-card .woocommerce-message {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
}

.cp-login-card .woocommerce-info {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.cp-login-card .woocommerce-error::before,
.cp-login-card .woocommerce-message::before,
.cp-login-card .woocommerce-info::before {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cp-login-card {
    padding: 28px 20px;
  }
}

/* ── Mid-page banner ─────────────────────────────────────────────────── */
.mid-banner {
  background: #1B3A5C;
  padding: 48px 0;
  color: #fff;
}

.mid-banner__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.mid-banner__inner--has-img .mid-banner__content {
  flex: 1;
}

.mid-banner__img {
  flex-shrink: 0;
  width: 320px;
  border-radius: 10px;
  overflow: hidden;
}

.mid-banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mid-banner__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.mid-banner__text {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}

.mid-banner__btn {
  display: inline-block;
  background: #fff;
  color: #1B3A5C !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.mid-banner__btn:hover {
  background: #f0f0f0;
}

@media (max-width: 768px) {
  .mid-banner__inner {
    flex-direction: column;
  }
  .mid-banner__img {
    width: 100%;
  }
}

/* ── Brand sections (ZYN / VELO / LOOP) ─────────────────────────────── */
.brand-section {
  padding: 48px 0;
}

.brand-section + .brand-section {
  padding-top: 0;
}

/* ── SEO footer text ─────────────────────────────────────────────────── */
.homepage-seo-text {
  padding: 40px 0 24px;
  border-top: 1px solid #eee;
}

.seo-text-inner {
  max-width: 860px;
  margin: 0 auto;
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  padding: 0 20px;
}

.seo-text-inner h2,
.seo-text-inner h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  margin-bottom: 8px;
}

.seo-text-inner p {
  margin-bottom: 12px;
}

.seo-text-inner a {
  color: #1B3A5C;
  text-decoration: underline;
}

/* ── Category navbar — centered ──────────────────────────────────────── */
.cat-navbar {
  width: 100%;
}

.cat-navbar__list {
  display: flex;
  justify-content: center !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

/* ── Remove whitespace between trust bar and footer ──────────────────── */
.trust-bar,
.trust-bar + * {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-main,
main#main,
#main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ── Category product count ──────────────────────────────────────────── */
.archive-count,
.category-product-count {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #aaa !important;
  vertical-align: middle;
}

/* ── Filter dropdown z-index fix ─────────────────────────────────────── */
.filter-bar {
  position: relative !important;
  z-index: 200 !important;
}

/* overflow: visible only on desktop so dropdowns aren't clipped */
@media (min-width: 769px) {
  .filter-bar {
    overflow: visible !important;
  }
}

.filter-chip-wrap {
  position: relative !important;
  z-index: 500 !important;
}

/* position/top/left from style.css (no !important) — JS overrides on mobile via inline style */
.filter-dropdown {
  z-index: 99999 !important;
}

/* ── Filter bar mobile — single scrollable row (must come last) ───────── */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 8px !important;
  }

  .filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-actions {
    flex-shrink: 0 !important;
  }

  .filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

ul.products,
.products-grid,
li.product,
.product-card {
  position: relative !important;
  z-index: 1 !important;
}

/* ── Hero carousel height ─────────────────────────────────────────────── */
.hero-carousel,
#hero-carousel,
.carousel {
  aspect-ratio: unset !important;
  height: 300px !important;
}

.hero-slide img,
.hero-slide picture,
.carousel-slide__img,
.carousel-slide {
  height: 300px !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Zeus (slide 2): text is on the left side */
.carousel-slide:nth-child(2) .carousel-slide__img {
  object-position: left center !important;
}

/* DIZZ (slide 3): center */
.carousel-slide:nth-child(3) .carousel-slide__img {
  object-position: center center !important;
}

@media (max-width: 768px) {
  .hero-carousel,
  #hero-carousel,
  .carousel {
    height: 220px !important;
  }
  .hero-slide img,
  .hero-slide picture,
  .carousel-slide__img,
  .carousel-slide {
    height: 220px !important;
  }
  /* Slide 2: reset to center on mobile */
  .carousel-slide:nth-child(2) .carousel-slide__img {
    object-position: center center !important;
  }
}

/* ── Promo box layout — button pinned to bottom ───────────────────────── */
.promo-box {
  display: flex !important;
  flex-direction: column !important;
}

.promo-box__body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── Promo box "Shop now" CTA ────────────────────────────────────────── */
.promo-box__cta {
  display: inline-block;
  background: #1B3A5C;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
  margin-top: auto;
  align-self: flex-start;
}

.promo-box:hover .promo-box__cta {
  background: #142d48;
}

/* ── Homepage H1 — subtle, on-page heading ─────────────────────────── */
.homepage-h1 {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  text-align: center;
  padding: 12px 20px;
  margin: 0;
  letter-spacing: 0.3px;
  background: transparent;
  border-bottom: none;
}

/* ── My Account dashboard (logged-in) ─────────────────────────────────── */
.woocommerce-account .woocommerce {
  overflow: hidden;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.woocommerce-MyAccount-navigation {
  width: 25%;
  float: left;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
  margin-right: 32px;
}

.woocommerce-MyAccount-content {
  width: calc(75% - 32px);
  float: left;
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee;
}

.account-user-info {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.account-avatar-circle {
  width: 64px;
  height: 64px;
  background: #1B3A5C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.account-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 15px;
}

.account-email {
  color: #666;
  font-size: 13px;
  word-break: break-all;
  margin-top: 2px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: #f0f4f3;
  color: #1B3A5C;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #1B3A5C;
  color: white;
}

.woocommerce-MyAccount-navigation ul li a svg {
  flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul li a .nav-badge {
  margin-left: auto;
  background: #1B3A5C;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

.woocommerce-MyAccount-navigation ul li.is-active a .nav-badge {
  background: white;
  color: #1B3A5C;
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }
}

/* ── Tighten gap between H1 and hero on homepage ─────────────────────── */
.homepage-h1 {
  margin-bottom: 0 !important;
  padding-bottom: 4px !important;
}

.hero-section,
.hero-carousel-wrap,
section.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── Checkout: prominent payment card + bold Complete Order button ───── */
#ck-payment-card {
  border: 2px solid #1B3A5C;
  box-shadow: 0 4px 14px rgba(45, 74, 71, 0.10);
  background: #ffffff;
}

#ck-payment-card .ck-co-card__title {
  background: #f6faf8;
  border-bottom: 1px solid #e6efec;
}

#ck-payment-card .ck-payment-top {
  background: #f6faf8;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}

#ck-payment-card .ck-powered-by {
  color: #1B3A5C;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ck-payment-card ul.wc_payment_methods {
  padding: 0;
  margin: 0;
  list-style: none;
}

#ck-payment-card ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid #e6efec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#ck-payment-card ul.wc_payment_methods li.wc_payment_method:hover {
  border-color: #1B3A5C;
}

#ck-payment-card ul.wc_payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
}

#ck-payment-card ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
  accent-color: #1B3A5C;
  margin-right: 8px;
}

/* Single age confirmation row */
.ck-verify {
  margin: 18px 0 8px;
}

.ck-verify .ck-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fbfa;
  border: 1px solid #e6efec;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
}

.ck-verify .ck-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1B3A5C;
  flex-shrink: 0;
}

/* Complete Order button — large, prominent, black */
#place_order,
.woocommerce-checkout button#place_order {
  background: #0b0b0c !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 16px 24px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 10px !important;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(11, 11, 12, 0.25);
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  margin-top: 14px !important;
  cursor: pointer;
}

#place_order:hover:not(:disabled),
.woocommerce-checkout button#place_order:hover:not(:disabled) {
  background: #1c1c1f !important;
  box-shadow: 0 6px 18px rgba(11, 11, 12, 0.32);
}

#place_order:active:not(:disabled) {
  transform: translateY(1px);
}

#place_order:disabled {
  background: #c5c9d0 !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROMO BOX — centered layout (brand / product / button)
   Selectors match markup in front-page.php
══════════════════════════════════════════════════════════════════════════ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.promo-box {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.promo-box-image {
  width: 100%;
  aspect-ratio: 520 / 780;
  overflow: hidden;
}

.promo-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-box-content {
  padding: 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.promo-box-brand {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1B3A5C !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 4px !important;
}

.promo-box-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  margin-bottom: 12px !important;
}

.promo-box-footer {
  padding: 0 16px 16px !important;
  margin-top: auto !important;
}

/* Selector covers both <a> and the <span class="promo-box-cta"> currently in markup */
.promo-box-footer a,
.promo-box-footer .promo-box-cta {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background: #0b0b0c !important;
  color: white !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}

.promo-box-footer a:hover,
.promo-box:hover .promo-box-footer .promo-box-cta {
  background: #1c1c1f !important;
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
}

/* ── Accordion checkout (snusbolaget-style 3-step) ─────────────────────── */
/* FIX 5 — locked (pending) steps look greyed and reject click */
.ck-step-header.locked {
  background: #f5f5f5 !important;
  color: #aaa !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  border-color: #e2e2e2 !important;
}
.ck-step-header.locked .ck-step-title { color: #888; }
.ck-step-header.locked .ck-step-summary { color: #aaa; }

.ck-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.ck-step-circle.pending { background: #eee; color: #999; }
.ck-step-circle.active { background: #1B3A5C; color: white; }
.ck-step-circle.completed { background: #1B3A5C; color: white; }

.ck-step-info { flex: 1; }
.ck-step-title { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.ck-step-summary { font-size: 13px; color: #666; margin-top: 2px; }

.ck-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: nowrap;
}

.ck-cart-item-img img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.ck-cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ck-cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-cart-item-qty {
  font-size: 12px;
  color: #888;
}

.ck-cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}

.ck-cart-item-line-total {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
}

.ck-cart-item-unit {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  line-height: 1.2;
}

.ck-upsell {
  background: #f9fffe;
  border: 1px solid #e0eeec;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}

.ck-upsell-title {
  font-size: 13px;
  font-weight: 600;
  color: #1B3A5C;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ck-upsell-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ck-upsell-product {
  text-align: center;
  padding: 10px 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: white;
  min-width: 0;
}

.ck-upsell-product img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}

.ck-upsell-product-name {
  font-size: 11px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ck-upsell-price {
  font-size: 13px;
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 8px;
}

.ck-upsell-add-btn {
  display: block;
  width: 100%;
  padding: 6px;
  background: #0b0b0c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ck-upsell-add-btn:hover:not(.added) { background: #1c1c1f; }
.ck-upsell-add-btn.added {
  background: #4CAF50;
  cursor: default;
}

.ck-totals { margin-top: 16px; }
.ck-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #666;
}

.ck-total-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  border-top: 2px solid #eee;
  padding-top: 12px;
  margin-top: 6px;
}

.ck-shipping-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fffe;
  border: 1px solid #e0eeec;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ck-ups-logo { height: 32px; }
.ck-ups-logo svg { display: block; }

.ck-shipping-details { flex: 1; }
.ck-shipping-name { font-size: 15px; font-weight: 600; }
.ck-shipping-desc { font-size: 13px; color: #666; margin-top: 2px; }

.ck-ddp-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #1B3A5C;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.ck-confirm-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #0b0b0c;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
}

.ck-confirm-btn:hover:not(:disabled) { background: #1c1c1f; }
.ck-confirm-btn:disabled { background: #c5c9d0; color: #f5f5f5; cursor: not-allowed; }

.ck-form-row { margin-bottom: 14px; }
.ck-step-content .form-row,
.ck-form-row .form-row {
  margin-bottom: 14px;
  padding: 0;
}
.ck-step-content .form-row label,
.ck-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 5px;
}
.ck-step-content .form-row input[type="text"],
.ck-step-content .form-row input[type="email"],
.ck-step-content .form-row input[type="tel"],
.ck-step-content .form-row input[type="password"],
.ck-step-content .form-row input[type="number"],
.ck-step-content .form-row select,
.ck-step-content .select2-selection--single,
.ck-form-row input,
.ck-form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.ck-step-content .form-row input:focus,
.ck-step-content .form-row select:focus,
.ck-form-row input:focus,
.ck-form-row select:focus { border-color: #1B3A5C; outline: none; }

/* Fix select2 text alignment — select2 hardcodes height:28px which fights our 11px padding */
.ck-step-content .select2-selection--single {
  height: auto !important;
}
.ck-step-content .select2-selection--single .select2-selection__rendered {
  line-height: 1.4 !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
}
.ck-step-content .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
}

.ck-form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ck-payment-section {
  margin: 20px 0 8px;
  padding: 16px;
  border: 1.5px solid #e0eeec;
  border-radius: 10px;
  background: #f9fffe;
}

.ck-payment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ck-card-icons { display: inline-flex; gap: 4px; align-items: center; }
.ck-card-icons svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.ck-payment-placeholder {
  background: #f9f9f9;
  border: 1.5px dashed #ddd;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: #999;
  margin: 12px 0 4px;
}

.ck-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.ck-checkbox-row input[type="checkbox"] {
  accent-color: #1B3A5C;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ck-edit-link {
  font-size: 12px;
  color: #1B3A5C;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}

/* Hide WC checkout-quirks we don't use in accordion */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout #order_review_heading { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   Accordion checkout — structural reset (2026-05-14)
   Single source of truth for layout. Everything uses !important to defeat
   any stale theme rule that might leak in (e.g. old .ck-step badge).
   Keeps these existing non-structural rules: .ck-step-circle, .ck-step-info,
   .ck-step-title, .ck-step-summary, .ck-step-header.locked, .ck-cart-item,
   .ck-upsell-*, .ck-totals, .ck-shipping-*, .ck-confirm-btn, .ck-form-*,
   .ck-payment-*, .ck-checkbox-row, .ck-edit-link.
   ══════════════════════════════════════════════════════════════════════════ */

.woocommerce-checkout .ck-checkout-wrap * { box-sizing: border-box; }

.ck-checkout-wrap {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.ck-accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  position: relative !important;
  max-width: none !important;
  margin: 0 !important;
}

.ck-step {
  width: 100% !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  flex: none !important;
}

.ck-step-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  background: white !important;
  border: 1.5px solid #eee !important;
  border-radius: 12px !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  transition: border-color 0.15s, opacity 0.15s !important;
}

.ck-step-header.active {
  border-color: #1B3A5C !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ck-step-header.completed {
  background: #f9f9f9 !important;
  border-color: #ddd !important;
}

.ck-step-content {
  display: none !important;
  background: white !important;
  border: 1.5px solid #1B3A5C !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  padding: 20px !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
}

.ck-step-content.open { display: block !important; }

@media (max-width: 1023px) { .ck-checkout-wrap { padding: 0 16px !important; } }
}

/* ── Step 1 header: stacked product thumbnails ──────────────────────────── */
.ck-cart-thumbs {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}
.ck-cart-thumbs img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  background: #f5f5f5;
}
.ck-cart-thumbs img:first-child { margin-left: 0; }
.ck-step-summary[data-cart-summary] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.ck-summary-text { font-size: 13px; color: #666; }

/* ── Mobile (≤ 768px): upsell as horizontal scroll carousel, 2 visible ─── */
@media (max-width: 768px) {
  .ck-upsell-products {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .ck-upsell-products::-webkit-scrollbar { display: none !important; }
  .ck-upsell-product {
    flex: 0 0 calc(50% - 5px) !important;
    scroll-snap-align: start !important;
    min-width: 0 !important;
  }
}

/* ── Checkout: wider accordion on desktop + crisper image rendering ───── */
@media (min-width: 1024px) {
  .ck-checkout-wrap {
    display: block !important;
    max-width: 700px !important;
    margin: 0 auto 40px !important;
    padding: 0 20px !important;
  }
  .ck-accordion {
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

.ck-cart-item-img img,
.ck-product-img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  image-rendering: -webkit-optimize-contrast !important;
  display: block !important;
}

.ck-upsell-product img {
  width: 100% !important;
  height: 90px !important;
  object-fit: cover !important;
  image-rendering: -webkit-optimize-contrast !important;
}

/* ── Cart item quantity controls (step 1, non-upsell rows only) ───────── */
.ck-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ck-qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  background: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
}

.ck-qty-btn:hover {
  border-color: #1B3A5C;
  color: #1B3A5C;
}

.ck-qty-btn[data-busy="1"] {
  opacity: 0.45;
  cursor: progress;
}

.ck-qty-num {
  font-size: 15px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: #1A1A1A !important;
}

.ck-qty-static {
  font-size: 12px;
  color: #888;
}

/* ── Cart-item bottom wrapper: invisible on desktop, full-width row on mobile ── */
.ck-cart-item-bottom { display: contents; }
.ck-cart-item-price-mobile { display: none; }

@media (max-width: 768px) {
  .ck-cart-item {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  .ck-cart-item-img { flex-shrink: 0; }
  .ck-cart-item-details { flex: 1; min-width: 0; }
  .ck-cart-item-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .ck-cart-item-price { display: none !important; }
  .ck-cart-item-bottom {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding-left: 76px;
    margin-top: -36px;
  }
  .ck-qty-control { gap: 10px !important; }
  .ck-qty-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
  .ck-cart-item-price-mobile {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
  }
}

/* ── Step 1: "shipping calculated next step" note ───────────────────── */
.ck-total-note {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  text-align: right;
  font-style: italic;
}

/* ── Step 2: shipping form + rate radios ─────────────────────────────── */
.ck-shipping-form .form-row {
  margin-bottom: 12px;
}

.ck-shipping-rates {
  margin-top: 16px;
}
.ck-shipping-rates-placeholder {
  padding: 14px;
  border: 1.5px dashed #ddd;
  border-radius: 8px;
  color: #999;
  font-size: 13px;
  text-align: center;
}
.ck-shipping-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: white;
}
.ck-shipping-rate input[type="radio"] {
  accent-color: #1B3A5C;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.ck-shipping-rate:has(input:checked) {
  border-color: #1B3A5C;
  background: #f9fffe;
}
.ck-shipping-rate-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
}
.ck-shipping-rate-price {
  font-size: 14px;
  font-weight: 600;
  color: #1B3A5C;
  flex-shrink: 0;
}

/* ── Step 3: compact order summary at top ────────────────────────────── */
.ck-order-summary-compact {
  background: #f9fffe;
  border: 1px solid #e0eeec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.ck-osc-title {
  font-size: 12px;
  font-weight: 700;
  color: #1B3A5C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.ck-osc-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ck-osc-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #444;
}
.ck-osc-item-name { flex: 1; }
.ck-osc-item-qty { color: #888; margin-left: 2px; }
.ck-osc-item-price { font-weight: 600; color: #1A1A1A; flex-shrink: 0; }
.ck-osc-totals { border-top: 1px solid #e0eeec; padding-top: 8px; margin-top: 4px; }
.ck-osc-totals .ck-total-row { padding: 3px 0; font-size: 13px; }
.ck-osc-totals .ck-total-row.total { font-size: 15px; padding-top: 8px; }

/* cart drawer per-tin */
.cart-item-per-tin { display: block; font-size: 11px; color: #888; margin-top: 2px; }

/* hide WC 'View cart' link after ajax add-to-cart */
a.added_to_cart { display: none !important; }

/* ── Pay for Order page (woocommerce-order-pay) ───────────────────────── */

body.woocommerce-order-pay .page-content {
  background: #f5f5f5;
  min-height: 80vh;
}

body.woocommerce-order-pay .page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

body.woocommerce-order-pay .page-title {
  display: none; /* order number shown in ck-step-header instead */
}

/* wrap inherits checkout layout */
.ck-pay-wrap .ck-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* both steps open by default on this page */
.ck-pay-wrap .ck-step-content {
  display: block !important;
}

.ck-pay-wrap .ck-step-header {
  cursor: default;
}

/* payment form spacing */
.ck-pay-form { margin: 0; }

.ck-pay-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ck-pay-actions .ck-confirm-btn {
  width: 100%;
}

/* strip default WC table on pay page */
body.woocommerce-order-pay .shop_table { display: none; }

/* no-methods notice */
.ck-pay-no-methods {
  list-style: none;
  padding: 16px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 600px) {
  body.woocommerce-order-pay .page-inner { padding: 24px 16px 48px; }
}

/* ── Payment method selector ────────────────────────────────────────────────── */
.ck-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 12px;
}
.ck-pay-method {
  display: block;
  cursor: pointer;
  border: 1.5px solid #dde8ee;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.ck-pay-method:hover:not(.ck-pay-method--active) {
  border-color: #a8bfcc;
}
.ck-pay-method--active {
  border-color: #1B3A5C;
  background: #f0f5fa;
}
.ck-pay-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ck-pay-method-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 10px;
}
.ck-pay-method-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.ck-pml-apple { color: #000; }
.ck-pay-method-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ck-pay-method-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #dde8ee;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ck-pay-method--active .ck-pay-method-check {
  background: #1B3A5C;
  border-color: #1B3A5C;
  color: #fff;
}

/* ── Mobile nav accordion sub-menus ─────────────────────────────────────────── */
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__list > li > a,
.mobile-nav__sub-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.mobile-nav__sub-toggle svg { margin-left: auto; transition: transform 0.2s; }
.mobile-nav__has-sub.open .mobile-nav__sub-toggle svg { transform: rotate(180deg); }
.mobile-nav__sub {
  display: none;
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 16px;
  border-left: 2px solid #e5e7eb;
  background: transparent;
}
.mobile-nav__has-sub.open .mobile-nav__sub { display: block; }
.mobile-nav__sub li a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  opacity: 0.8;
}
.mobile-nav__sub li a:hover { color: #1B3A5C; }

/* ── Mobile sticky search bar ─────────────────────────────────────────────── */
.mobile-sticky-search { display: none; }

@media (max-width: 768px) {
  /* Merge site-header and search bar into one unified header block */
  .site-header {
    border-bottom: none;
    box-shadow: none;
  }
  .mobile-sticky-search {
    display: block;
    position: sticky;
    top: var(--header-h);
    z-index: 998;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 16px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
  }
  .mobile-sticky-search__form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .mobile-sticky-search__input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: .9375rem;
    font-family: inherit;
    background: var(--color-surface);
    min-width: 0;
  }
  .mobile-sticky-search__input::placeholder { color: #aaa; }
  .mobile-sticky-search__btn {
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
}

.is-cart-page .mobile-sticky-search,
.is-checkout-page .mobile-sticky-search { display: none !important; }

/* ── Footer payment icons ────────────────────────────────────────────────── */
.footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-payments svg {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  display: block;
}

.footer-bottom--center { justify-content: center; }

/* ── Account icon in header ──────────────────────────────────────────────── */
.account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--color-text);
  transition: background .15s;
}
.account-icon svg { width: 22px; height: 22px; }
.account-icon:hover { background: var(--color-surface); }

.header-icon-group { display: flex; align-items: center; gap: 0; }

/* ── AJAX Search Dropdown v2 ──────────────────────────────────────── */
.header-search,
.mobile-search {
  position: relative;
}

.cps-dd {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, calc(100vw - 24px));
  z-index: 10000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 16px 40px rgba(0,0,0,.13);
  border: 1px solid #e8ecf0;
  overflow: hidden;
  animation: cpsIn .15s ease;
}
.cps-dd.open { display: block; }

@keyframes cpsIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Mobile: full-width, no centering */
.mobile-sticky-search .cps-dd,
.mobile-sticky-search__form .cps-dd,
.mobile-search .cps-dd {
  left: 0;
  right: 0;
  transform: none;
  width: auto;
  border-radius: 0 0 12px 12px;
  animation-name: cpsInMobile;
}
@keyframes cpsInMobile {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Close button ─────────────────────────────────────────────────── */
.cps-dd__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  z-index: 2;
  padding: 0;
  transition: background .12s, color .12s;
}
.cps-dd__close:hover { background: #e2e8f0; color: #1B3A5C; }

/* ── Loading ──────────────────────────────────────────────────────── */
.cps-dd__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  font-size: 14px;
  color: #64748b;
}
.cps-dd__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #1B3A5C;
  border-radius: 50%;
  animation: cpsSpin .55s linear infinite;
  flex-shrink: 0;
}
@keyframes cpsSpin { to { transform: rotate(360deg); } }

/* ── Two-column body ──────────────────────────────────────────────── */
.cps-dd__body {
  display: flex;
}
.cps-dd__body.no-sidebar .cps-dd__col-left {
  border-right: none;
}

.cps-dd__col-left {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 14px;
  border-right: 1px solid #f1f5f9;
}

.cps-dd__col-right {
  flex: 0 0 200px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cps-dd__col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 8px 0;
  padding: 0 16px;
}
.cps-dd__col-right .cps-dd__col-label { padding: 0; }

/* ── Product list ─────────────────────────────────────────────────── */
.cps-dd__products {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 0;
}

.cps-product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 16px;
  transition: background .1s;
}
.cps-product:hover { background: #f8fafc; }

.cps-product__img-wrap { display: block; flex-shrink: 0; }
.cps-product__img-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
  display: block;
}

.cps-product__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cps-product__brand {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.cps-product__name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}
.cps-product__name:hover { color: #1B3A5C; }

/* ── Pack select + ATC row ────────────────────────────────────────── */
.cps-product__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.cps-select {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-family: inherit;
  padding: 5px 26px 5px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231B3A5C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #1B3A5C;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.cps-select:focus { border-color: #1B3A5C; background-color: #fff; }

.cps-product__atc {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 12px;
  background: #0b0b0c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}
.cps-product__atc:hover:not(:disabled) { background: #1c1c1f; }
.cps-product__atc:disabled { opacity: .65; cursor: default; }

/* ── Sidebar tags ─────────────────────────────────────────────────── */
.cps-dd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cps-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.cps-tag:hover { background: #1B3A5C; color: #fff; }
.cps-tag:hover .cps-tag__count { color: rgba(255,255,255,.65); }

.cps-tag__count {
  font-size: 10px;
  color: #94a3b8;
  transition: color .12s;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.cps-dd__footer {
  border-top: 1px solid #f1f5f9;
  padding: 10px 16px;
}

.cps-dd__viewall {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1B3A5C;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .12s;
}
.cps-dd__viewall:hover { background: #f1f5f9; }

/* ── Empty state ──────────────────────────────────────────────────── */
.cps-dd__empty {
  display: none;
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

/* ── Mobile: stack columns ────────────────────────────────────────── */
@media (max-width: 767px) {
  .cps-dd__body { flex-direction: column; }
  .cps-dd__col-left { border-right: none; border-bottom: 1px solid #f1f5f9; }
  .cps-dd__col-right { flex: none; }
  .cps-product__img-wrap img { width: 46px; height: 46px; }
  .cps-select { font-size: 11px; }
}

/* ── Coupon field ──────────────────────────────────────────────────────── */
.ck-coupon-wrap {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e5e7eb;
}
.ck-coupon-row {
  display: flex;
  gap: 8px;
}
.ck-coupon-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .15s;
}
.ck-coupon-input:focus { border-color: #1B3A5C; }
.ck-coupon-btn {
  padding: 9px 18px;
  background: #0b0b0c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.ck-coupon-btn:hover:not(:disabled) { background: #1c1c1f; }
.ck-coupon-btn:disabled { opacity: .5; cursor: not-allowed; }
#ck-coupon-msg {
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}
.ck-coupon-error  { color: #dc2626; }
.ck-coupon-success { color: #16a34a; }
#ck-applied-coupons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ck-coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0f8;
  color: #1B3A5C;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.ck-coupon-remove {
  background: none;
  border: none;
  color: #1B3A5C;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  opacity: .6;
}
.ck-coupon-remove:hover { opacity: 1; }
.ck-discount-row { color: #16a34a; font-weight: 500; }

/* ── Postcode validation ───────────────────────────────────────────────── */
.ck-postcode-error {
  display: block;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

/* -- My Account: all form inputs ----------------------------------------- */
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm .woocommerce-Input,
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields input[type="number"],
.woocommerce-address-fields input[type="password"],
.woocommerce-address-fields select,
.woocommerce-address-fields textarea,
.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"],
.woocommerce-ResetPassword input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #1B3A5C;
  box-sizing: border-box;
  transition: border-color .15s;
}
.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-EditAccountForm input[type="password"]:focus,
.woocommerce-EditAccountForm .woocommerce-Input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus,
.woocommerce-address-fields textarea:focus,
.woocommerce-ResetPassword input:focus {
  outline: none;
  border-color: #1B3A5C;
  box-shadow: 0 0 0 3px rgba(27,58,92,.12);
}
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label,
.woocommerce-ResetPassword label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1B3A5C;
  margin-bottom: 5px;
}
.woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-address-fields .form-row,
.woocommerce-ResetPassword .form-row {
  margin-bottom: 16px;
}
.woocommerce-EditAccountForm fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.woocommerce-EditAccountForm fieldset legend {
  font-size: 14px;
  font-weight: 600;
  color: #1B3A5C;
  padding: 0 6px;
}
.woocommerce-EditAccountForm .woocommerce-Button[name="save_account_details"],
.woocommerce-address-fields button[name="save_address"],
.woocommerce-ResetPassword button[type="submit"] {
  background: #0b0b0c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.woocommerce-EditAccountForm .woocommerce-Button[name="save_account_details"]:hover,
.woocommerce-address-fields button[name="save_address"]:hover,
.woocommerce-ResetPassword button[type="submit"]:hover {
  background: #1c1c1f;
}

/* ── Mobile nav currency switcher ─────────────────────────────────────── */
.mobile-nav__currency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 4px;
}
.mobile-nav__currency-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1B3A5C;
}
/* The plugin renders a <form> wrapper — make it inline */
.mobile-nav__currency form {
  margin: 0;
  padding: 0;
  display: inline;
}
.mobile-currency-select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1B3A5C;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B3A5C' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  min-width: 76px;
}
.mobile-currency-select:focus {
  outline: none;
  border-color: #1B3A5C;
  box-shadow: 0 0 0 2px rgba(27,58,92,0.15);
}

.ck-payment-redirect-info,
.ck-payment-currency-note {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: left;
  margin: 4px 0 0;
}
.ck-payment-currency-note {
  margin-top: 2px;
}

/* ── Footer trust row (Trustpilot Mini + payments) ─────────────────────────── */
.footer-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-tp-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.footer-tp-link:hover { color: #fff; }

.footer-trust-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-payments img {
  height: 22px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  display: block;
}

@media (max-width: 600px) {
  .footer-trust-row {
    flex-direction: column;
    gap: 14px;
  }
  .footer-trust-sep { display: none; }
}


/* ── Product reviews ─────────────────────────────────────────────────────── */
#reviews.woocommerce-Reviews {
  padding-top: 36px;
  margin-top: 16px;
  border-top: 2px solid #f0f2f5;
}

.woocommerce-Reviews-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B3A5C;
  margin: 0 0 24px;
}
.woocommerce-Reviews-title span { font-weight: 400; color: #64748b; }

/* ── Review list ──────────────────────────────────────────────────────── */
.commentlist {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.commentlist .comment_container {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 18px 20px;
}
.commentlist .comment_container .avatar { display: none; }

.commentlist .comment-text { flex: 1; min-width: 0; }

.commentlist .star-rating {
  margin: 0 0 6px;
  float: none;
}

.commentlist .meta {
  font-size: 0.82rem;
  margin: 0 0 8px;
  color: #64748b;
}
.woocommerce-review__author {
  font-weight: 600;
  color: #1B3A5C;
  font-size: 0.88rem;
}
.woocommerce-review__dash { color: #cbd5e1; margin: 0 4px; }
.woocommerce-review__published-date { font-size: 0.78rem; color: #94a3b8; }

.commentlist .description p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #374151;
  margin: 0;
}

.woocommerce-noreviews {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 28px;
}

/* ── Review form ──────────────────────────────────────────────────────── */
#review_form_wrapper {
  border-top: 1px solid #e8ecf0;
  padding-top: 28px;
}

#reply-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 20px;
}

.comment-form-rating {
  margin-bottom: 16px;
}
.comment-form-rating label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1B3A5C;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.comment-form-rating p.stars span {
  display: inline-flex;
  gap: 3px;
}
.comment-form-rating p.stars a {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  color: transparent;
  text-decoration: none;
  position: relative;
  font-size: 1rem;
  line-height: 1;
}
.comment-form-rating p.stars a::before {
  content: "★";
  position: absolute;
  top: 0; left: 0;
  font-size: 1rem;
  line-height: 1;
  color: #d1d5db;
  transition: color .12s;
}
.comment-form-rating p.stars:hover a::before { color: #f59e0b; }
.comment-form-rating p.stars a:hover ~ a::before { color: #d1d5db; }
.comment-form-rating p.stars.selected a::before { color: #f59e0b; }
.comment-form-rating p.stars.selected a.active ~ a::before { color: #d1d5db; }

#commentform p {
  margin-bottom: 14px;
}
#commentform label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1B3A5C;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#commentform input[type=text],
#commentform input[type=email],
#commentform textarea {
  width: 100%;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #1B3A5C;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
#commentform input[type=text]:focus,
#commentform input[type=email]:focus,
#commentform textarea:focus {
  outline: none;
  border-color: #1B3A5C;
  box-shadow: 0 0 0 3px rgba(27,58,92,.1);
}
#commentform textarea {
  resize: vertical;
  min-height: 100px;
}

#commentform .form-submit { margin: 4px 0 0; }
#commentform .submit {
  background: #1B3A5C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  letter-spacing: .01em;
}
#commentform .submit:hover { background: #162d47; }

@media (min-width: 600px) {
  #commentform .comment-form-author,
  #commentform .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }
  #commentform .comment-form-author { margin-right: 16px; }
}
/* -- Product card: SALE badge & strikethrough price -- */
.product-card__img-wrap { position: relative; }
.pc-sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
    line-height: 1.4;
}
.pc-was-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.82em;
    line-height: 1.2;
    margin-bottom: 1px;
}
/* Back-in-stock notifications */
.snusio-bis-wrap { margin-top: 4px; }

.pc-notify-trigger {
    cursor: pointer !important;
    width: 100%;
}
.pc-notify-trigger:hover { background: #f0f4f8; }

.pc-notify-form { margin-top: 8px; }
.snusio-bis-intro { font-size: 13px; color: #6b7280; margin-bottom: 8px; }

.pc-notify-row {
    display: flex;
    gap: 6px;
}
.pc-notify-email {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.pc-notify-email:focus { border-color: #1B3A5C; }

.pc-notify-btn {
    flex: 0 0 auto;
    padding: 9px 14px;
    background: #1B3A5C;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.pc-notify-btn:hover   { background: #142d48; }
.pc-notify-btn:disabled { opacity: .6; cursor: default; }

.pc-notify-msg { display: block; font-size: 12px; margin-top: 6px; }
.pc-notify-ok  { color: #16a34a; }
.pc-notify-err { color: #dc2626; }
/* ── Pack option cards: mobile polish (WS-A OODA33-D) ───────────────── */
@media (max-width: 600px) {
  .sp-pack-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "radio left price" "radio unit price";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 14px;
    min-height: 56px;
  }
  .sp-pack-option .sp-pack-radio { grid-area: radio; width: 22px; height: 22px; }
  .sp-pack-option .sp-pack-left  { grid-area: left; }
  .sp-pack-option .sp-pack-unit  { grid-area: unit; min-width: 0; text-align: left; }
  .sp-pack-option .sp-pack-price { grid-area: price; min-width: 0; text-align: right; }
  .pc-pack-chips { gap: 4px; }
  .pc-pack-chip  { flex: 1 1 0; min-width: 40px; }
}

/* Language switcher styles live in assets/css/language-switcher.css (enqueued by inc/language-switcher.php). */
