/* Hide original selects but keep accessible structure */
.krd-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
}

/* Generic container for attribute swatches */
.krd-attr-swatches {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Base swatch button */
.krd-swatch {
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  font: inherit;
  line-height: 1;
}

/* Color swatches are circular disks */
.krd-swatch--color {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background-clip: padding-box;
}

/* Size chips are text boxes */
.krd-swatch--size {
  min-width: 36px;
  text-align: center;
  background: #f6f6f6;
}

/* Active state */
.krd-swatch.is-active {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(0,0,0,.08) inset;
}

/* Out-of-stock color swatches: strike-through line and disabled cursor */
.krd-swatch.is-oos {
  cursor: not-allowed;
  opacity: .6;
  position: relative;
}
.krd-swatch.is-oos::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: 50%;
  height: 2px;
  transform: rotate(-20deg);
  background: rgba(0,0,0,.65);
  pointer-events: none;
}

/* Disabled size swatches when not allowed for chosen color */
.krd-swatch--size.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.krd-swatch-title {
    font-weight: 600;
    /* margin-bottom: 6px; */
    font-size: 14px;
    color: #222;
    display: flex;
    align-items: center;
}


.karissa-loop-swatches {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.karissa-loop-swatches .karissa-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.karissa-loop-swatches .karissa-swatch.out-of-stock {
    opacity: 0.4;
}

.karissa-loop-swatches .karissa-swatch.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
    transform: rotate(-45deg);
}

