/* ai-variant-selector-generated.css
   Fire Service Training & Professional Certification
   Design: Command authority, structured professionalism, bold tactical clarity
*/

/* ── Option Label ── */
.vs-option-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

/* ── Option Values container ── */
/* flex/flex-wrap/gap already preset by Tailwind */

/* ── Base button ── */
.vs-option-btn {
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
  border-radius: 3px;
  outline: none;
  position: relative;
}

.vs-option-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Image swatch ── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 52px;
  height: 52px;
  border-radius: 4px;
}

.vs-swatch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Color swatch ── */
.vs-option-btn[data-swatch-type="color"] {
  padding: 3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.vs-swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* inline background-color is set by JS/Liquid */
}

/* ── Text button ── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--background);
  color: var(--foreground);
  border-color: currentColor;
  border-radius: 3px;
  min-width: 44px;
  text-align: center;
}

/* ── Hover states ── */
.vs-option-btn[data-swatch-type="text"]:hover:not(:disabled),
.vs-option-btn[data-swatch-type="image"]:hover:not(:disabled),
.vs-option-btn[data-swatch-type="color"]:hover:not(:disabled) {
  border-color: var(--brand);
}

/* ── Active / Selected state ── */
.vs-option-btn--active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand);
}

.vs-option-btn--active[data-swatch-type="text"] {
  background: var(--brand);
  color: var(--brand-foreground);
  border-color: var(--brand) !important;
}

/* ── Disabled / unavailable state ── */
.vs-option-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.vs-option-btn:disabled[data-swatch-type="text"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-15deg);
  opacity: 0.5;
}

/* ── Price display ── */
.vs-product-price {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

/* ── PDP context — more spacious ── */
ai-product-detail .vs-option-btn[data-swatch-type="image"] {
  width: 60px;
  height: 60px;
}

ai-product-detail .vs-option-btn[data-swatch-type="color"] {
  width: 40px;
  height: 40px;
}

ai-product-detail .vs-option-btn[data-swatch-type="text"] {
  padding: 8px 20px;
  font-size: 14px;
}

ai-product-detail .vs-product-price {
  font-size: 24px;
}

/* ── QAC modal context — more compact ── */
.qac-product-info .vs-option-btn[data-swatch-type="image"] {
  width: 44px;
  height: 44px;
}

.qac-product-info .vs-option-btn[data-swatch-type="color"] {
  width: 30px;
  height: 30px;
}

.qac-product-info .vs-option-btn[data-swatch-type="text"] {
  padding: 4px 12px;
  font-size: 13px;
}

.qac-product-info .vs-product-price {
  font-size: 17px;
  margin-bottom: 10px;
}

/* ── Mobile adaptation ── */
@media (max-width: 767px) {
  .vs-option-btn[data-swatch-type="image"] {
    width: 48px;
    height: 48px;
  }

  .vs-option-btn[data-swatch-type="color"] {
    width: 34px;
    height: 34px;
  }

  .vs-option-btn[data-swatch-type="text"] {
    padding: 6px 14px;
    font-size: 13px;
    min-width: 40px;
  }

  .vs-product-price {
    font-size: 18px;
  }

  ai-product-detail .vs-option-btn[data-swatch-type="image"] {
    width: 52px;
    height: 52px;
  }

  ai-product-detail .vs-option-btn[data-swatch-type="color"] {
    width: 36px;
    height: 36px;
  }

  ai-product-detail .vs-option-btn[data-swatch-type="text"] {
    padding: 6px 16px;
    font-size: 13px;
  }

  ai-product-detail .vs-product-price {
    font-size: 20px;
  }
}