/* ai-variant-selector-generated.css
   Global CSS decorator for ai-variant-selector
   Design: Women's Athleisure & Lounge Wear — YETOWA
   Palette: Pure White / Wheat Gold / Deep Charcoal / Blush Pink / Near Black
   ------------------------------------------------------------------ */

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

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

/* ── Common button base ─────────────────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
  font-family: Arial, sans-serif;
  border-radius: 8px;
  box-sizing: border-box;
}

.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: 48px;
  height: 48px;
  border-radius: 10px;
  border-color: transparent;
  overflow: hidden;
}

.vs-option-btn[data-swatch-type="image"]:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.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%;
  border-color: transparent;
  background: transparent;
}

.vs-option-btn[data-swatch-type="color"]:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.vs-swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ── Text button ────────────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  color: var(--foreground);
  background: var(--background);
  border: 1.5px solid currentColor;
  border-radius: 8px;
  line-height: 1.4;
  min-width: 40px;
  text-align: center;
}

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

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

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

.vs-option-btn--active[data-swatch-type="image"] {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px var(--brand);
}

.vs-option-btn--active[data-swatch-type="color"] {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px var(--brand);
}

/* ── Unavailable / disabled state ───────────────────────────────────── */
.vs-option-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

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

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

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: 20px;
}

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

.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: 16px;
  margin-bottom: 10px;
}

/* ── Mobile adaptation ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .vs-product-price {
    font-size: 16px;
  }

  .vs-option-label {
    font-size: 12px;
  }

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

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

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

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

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