/**
 * JKC Country Selector - front-end styles.
 *
 * Tokens mirror the EAZYFIX theme (assets/scss/_bootscore-variables.scss) so the
 * selector reads as part of the site instead of a bolted-on plugin: Inter Tight
 * from the body, lime CTA outline, navy text, 8/12px radii, the theme shadow.
 */
.jkc-csw {
  /* Namespace kept for documentation; tokens live on the components below. */
}

.jkc-csw__overlay,
.jkc-csw__suggest,
.jkc-csw__trigger {
  --jkc-lime: rgb(147, 216, 1);
  --jkc-lime-soft: rgba(147, 216, 1, 0.12);
  --jkc-navy: rgb(9, 11, 42);
  --jkc-ink: rgb(24, 24, 27);
  --jkc-muted: rgb(82, 82, 91);
  --jkc-line: rgb(228, 228, 231);
  --jkc-surface: #ffffff;
  --jkc-surface-soft: rgb(250, 250, 250);
  --jkc-radius: 8px;
  --jkc-radius-lg: 12px;
  --jkc-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --jkc-shadow-lg: 0 18px 40px rgba(9, 11, 42, 0.18), 0 2px 6px rgba(9, 11, 42, 0.08);
  color: var(--jkc-ink);
  font-family: inherit;
}

.jkc-csw-open {
  overflow: hidden;
}

/* --- Floating trigger (only rendered when no visible header switcher) ------ */
.jkc-csw__trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--jkc-line);
  border-radius: 9999px;
  background: var(--jkc-surface);
  box-shadow: var(--jkc-shadow);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jkc-csw__trigger:hover,
.jkc-csw__trigger:focus-visible {
  border-color: var(--jkc-lime);
  box-shadow: var(--jkc-shadow-lg);
}
.jkc-csw__trigger:focus-visible {
  outline: 2px solid var(--jkc-lime);
  outline-offset: 2px;
}

.jkc-csw__trigger-flag {
  display: block;
  font-size: 1.375rem;
  line-height: 1;
}
.jkc-csw__trigger-flag img {
  display: block;
  width: 26px;
  height: auto;
  border-radius: 3px;
}

/* --- Country modal: compact two-step card (jkc.media region-selector) ----- */
.jkc-csw__overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(9, 11, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.jkc-csw__overlay[hidden] {
  display: none;
}

.jkc-csw__modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 16px;
  background: var(--jkc-surface);
  box-shadow: var(--jkc-shadow-lg);
}

.jkc-csw__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 0.35rem;
}

.jkc-csw__title {
  margin: 0;
  color: var(--jkc-navy);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.jkc-csw__sub {
  margin: 0 0 1.25rem;
  color: var(--jkc-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.jkc-csw__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: -8px -8px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--jkc-radius);
  background: transparent;
  color: var(--jkc-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.jkc-csw__close:hover,
.jkc-csw__close:focus-visible {
  border-color: var(--jkc-line);
  color: var(--jkc-navy);
}
.jkc-csw__close:focus-visible {
  outline: 2px solid var(--jkc-lime);
  outline-offset: 2px;
}

.jkc-csw__step {
  display: none;
  flex-direction: column;
}
.jkc-csw__step.is-active {
  display: flex;
}

.jkc-csw__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jkc-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.jkc-csw__back:hover,
.jkc-csw__back:focus-visible {
  color: var(--jkc-navy);
  outline: none;
}
.jkc-csw__back svg {
  display: block;
  flex-shrink: 0;
}

.jkc-csw__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jkc-csw__row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 1.05rem 1.15rem;
  border: 1.5px solid var(--jkc-line);
  border-radius: 12px;
  background: var(--jkc-surface);
  color: var(--jkc-navy);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.jkc-csw__row:hover,
.jkc-csw__row:focus-visible,
.jkc-csw__row--current {
  border-color: var(--jkc-lime);
  background: var(--jkc-lime-soft);
  outline: none;
}
.jkc-csw__row--current {
  box-shadow: 0 0 0 3px var(--jkc-lime-soft);
}
.jkc-csw__row:active {
  transform: scale(0.995);
}
.jkc-csw__row--unavailable {
  cursor: not-allowed;
  opacity: 0.45;
}

.jkc-csw__row-flag {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--jkc-radius);
  background: var(--jkc-surface-soft);
  font-size: 1.375rem;
  line-height: 1;
}
.jkc-csw__row-flag img {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 3px;
}

.jkc-csw__row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.jkc-csw__row-label {
  display: block;
  color: var(--jkc-navy);
  font-weight: 700;
  line-height: 1.3;
}

.jkc-csw__row-meta {
  display: block;
  margin-top: 2px;
  color: var(--jkc-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.jkc-csw__chevron {
  display: block;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--jkc-navy);
  opacity: 0.4;
}

@media (max-width: 480px) {
  .jkc-csw__modal {
    width: 94vw;
    padding: 1.35rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom));
    border-radius: 14px;
  }

  .jkc-csw__title {
    font-size: 1.35rem;
  }

  .jkc-csw__row {
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jkc-csw__row {
    transition: none;
  }
  .jkc-csw__row:active {
    transform: none;
  }
}
.product-card .product-card__price-block .woocommerce-Price-currencySymbol {
  display: inline !important;
  margin-right: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  .jkc-csw__trigger,
  .jkc-csw__close,
  .jkc-csw__back {
    transition: none;
  }
  .jkc-csw__trigger:hover,
  .jkc-csw__trigger:focus-visible {
    transform: none;
  }
}

/* UK market: no cart UI (browse + Amazon / stockists only). */
body.jkc-csw-market-gb .ez-nav__btn--cart,
body.jkc-csw-market-gb .cart-toggler,
body.jkc-csw-market-gb a.back-to-cart,
body.jkc-csw-market-gb #offcanvas-cart,
body.jkc-csw-market-gb .offcanvas-cart,
body.jkc-csw-market-gb a[href*="/winkelwagen"],
body.jkc-csw-market-gb a[href*="/cart"],
body.jkc-csw-market-gb a[href*="/afrekenen"],
body.jkc-csw-market-gb a[href*="/checkout"],
body.jkc-csw-market-gb .ez-pakketten__add,
body.jkc-csw-market-gb .ez-pakket-banner__add,
body.jkc-csw-market-gb a.add_to_cart_button,
body.jkc-csw-market-gb .single_add_to_cart_button,
body.jkc-csw-market-gb .ez-sticky-atc,
body.jkc-csw-market-gb .ez-atc,
body.jkc-csw-market-gb #ez-atc-modal,
body.jkc-csw-market-gb .woocommerce-mini-cart,
body.jkc-csw-market-gb .widget_shopping_cart {
	display: none !important;
}

/* UK PDP: hide NL retailer logo row; Amazon + stockists CTAs replace checkout. */
body.jkc-csw-market-gb .ez-pdp__dealer {
	display: none !important;
}


/* --- Market suggestion ----------------------------------------------------
 * First visit only, dismissible: a card bottom-right on desktop, a bottom
 * sheet on phones. Same tokens as the modal, so it reads as one component.
 * ------------------------------------------------------------------------- */
.jkc-csw__suggest {
  /* Bottom-left: the theme's chat launcher and Complianz own the bottom-right corner. */
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99998;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  width: min(460px, calc(100vw - 40px));
  padding: 18px 44px 18px 18px;
  border: 1px solid var(--jkc-line);
  border-radius: var(--jkc-radius-lg);
  background: var(--jkc-surface);
  box-shadow: var(--jkc-shadow-lg);
  font-size: 0.9375rem;
  line-height: 1.45;
  animation: jkc-csw-suggest-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes jkc-csw-suggest-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.jkc-csw__suggest-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--jkc-radius);
  background: var(--jkc-surface-soft);
  font-size: 1.375rem;
  line-height: 1;
}
.jkc-csw__suggest-flag img {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 3px;
}
.jkc-csw__suggest-flag--icon {
  color: var(--jkc-navy);
  background: var(--jkc-lime-soft);
  font-size: 1.25rem;
}
.jkc-csw__suggest-flag--icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.jkc-csw__suggest-body {
  min-width: 0;
  align-self: center;
}

.jkc-csw__suggest-heading {
  margin: 0;
  color: var(--jkc-navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.jkc-csw__suggest-meta {
  margin: 2px 0 0;
  color: var(--jkc-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.jkc-csw__suggest-actions {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* The theme's own button: transparent, lime outline, navy label. */
.jkc-csw__suggest-go {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--jkc-lime);
  border-radius: var(--jkc-radius);
  background: transparent;
  color: var(--jkc-navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease;
}
.jkc-csw__suggest-go:hover,
.jkc-csw__suggest-go:focus-visible {
  background: var(--jkc-lime);
}

.jkc-csw__suggest-stay {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--jkc-muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.jkc-csw__suggest-stay:hover,
.jkc-csw__suggest-stay:focus-visible {
  color: var(--jkc-navy);
  text-decoration: underline;
}

.jkc-csw__suggest-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--jkc-radius);
  background: none;
  color: rgb(161, 161, 170);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.jkc-csw__suggest-close:hover,
.jkc-csw__suggest-close:focus-visible {
  background: var(--jkc-surface-soft);
  color: var(--jkc-navy);
}

.jkc-csw__suggest-go:focus-visible,
.jkc-csw__suggest-stay:focus-visible,
.jkc-csw__suggest-close:focus-visible {
  outline: 2px solid var(--jkc-navy);
  outline-offset: 2px;
}

/* Keep the floating trigger clear of the suggestion while it is visible. */
.jkc-csw-suggesting .jkc-csw__trigger {
  bottom: 150px;
}

@media (max-width: 600px) {
  .jkc-csw__suggest {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 18px 44px calc(18px + env(safe-area-inset-bottom)) 18px;
    border-width: 1px 0 0;
    border-radius: var(--jkc-radius-lg) var(--jkc-radius-lg) 0 0;
  }

  .jkc-csw__suggest-actions {
    gap: 16px;
  }

  .jkc-csw__suggest-go {
    flex: 1 1 auto;
    text-align: center;
  }

  .jkc-csw-suggesting .jkc-csw__trigger {
    bottom: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jkc-csw__suggest {
    animation: none;
  }
}

/* An external market leaves this site: mark it as an outbound link. */
.jkc-csw__row--external .jkc-csw__row-label::after {
  content: " \2197";
}
