/* Product detail linked color selector - compact component */
.product-variant-switcher {
  margin: 16px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.variant-switcher-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 8px;
}

.variant-switcher-head span {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.variant-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(50, 35, 20, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.variant-option:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 138, 94, .62);
  background: #fff;
}

.variant-option.is-current {
  border-color: rgba(184, 138, 94, .9);
  background: rgba(184, 138, 94, .1);
  color: var(--accent-dark);
}

.variant-option.is-out {
  opacity: .58;
}

.variant-option small {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger, #9d2e2e);
}

.variant-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(50, 35, 20, .15), inset 0 1px 5px rgba(255, 255, 255, .35);
  flex: 0 0 auto;
}

.variant-label {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .product-variant-switcher {
    margin: 14px 0 16px;
  }

  .variant-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .variant-options::-webkit-scrollbar {
    display: none;
  }

  .variant-option {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .variant-swatch {
    width: 17px;
    height: 17px;
  }
}
