/* =========================================================
   FEATURE: VARIATION SWATCHES (Size / Color / Rain Liner /
   Thermal Liner -- all rendered by woo-variation-swatches as
   .variable-item.button-variable-item)

   Only enqueued when Settings > Digiskyward > Variation
   Swatches is switched on.
   ========================================================= */

.variations .button-variable-item {

  min-width: 46px;
  height: 42px;
  margin: 0 8px 8px 0 !important;
  padding: 0 16px !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--bbpb-border) !important;
  border-radius: var(--bbpb-radius) !important;
  background: #FFFFFF !important;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--bbpb-black);
  letter-spacing: .01em;

  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.variations .button-variable-item .variable-item-contents,
.variations .button-variable-item .variable-item-span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit;
  font: inherit;
}

.variations .button-variable-item:hover {
  border-color: var(--bbpb-black) !important;
  transform: translateY(-1px);
}

/* Selected: solid, high-contrast, unmistakable -- this state
   had almost no styling before (white bg, no border, 2px
   padding), indistinguishable from an unselected swatch. */

.variations .button-variable-item.selected,
.variations .button-variable-item[aria-checked="true"] {
  border-color: var(--bbpb-black) !important;
  background: var(--bbpb-black) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.variations .button-variable-item.selected:hover,
.variations .button-variable-item[aria-checked="true"]:hover {
  border-color: var(--bbpb-red) !important;
  background: var(--bbpb-red) !important;
}

/* Out of stock / disabled swatch -- struck through, inert,
   clearly not a live option instead of just looking faded */

.variations .button-variable-item.disabled,
.variations .button-variable-item[data-wvstooltip-out-of-stock]:not([data-wvstooltip-out-of-stock=""]) {
  border-color: var(--bbpb-border-soft) !important;
  background: #FAFAFA !important;
  color: var(--bbpb-muted) !important;
  cursor: not-allowed;
  position: relative;
}

.variations .button-variable-item.disabled .variable-item-span,
.variations .button-variable-item[data-wvstooltip-out-of-stock]:not([data-wvstooltip-out-of-stock=""]) .variable-item-span {
  text-decoration: line-through;
  text-decoration-color: var(--bbpb-muted);
}

.variations .button-variable-item.disabled:hover,
.variations .button-variable-item[data-wvstooltip-out-of-stock]:not([data-wvstooltip-out-of-stock=""]):hover {
  transform: none;
  border-color: var(--bbpb-border-soft) !important;
}

.variations th.label label {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--bbpb-black);
}

.variations .woo-selected-variation-item-name {
  font-weight: 600;
  color: var(--bbpb-muted);
  font-size: 12px;
}

a.reset_variations {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--bbpb-red) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.variations .button-variable-item:focus-visible {
  outline: 2px solid var(--bbpb-red);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .variations .button-variable-item {
    min-width: 42px;
    height: 40px;
    padding: 0 13px !important;
    font-size: 12.5px;
  }
}
