.product-thumb .caption .product-color-swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.product-list .product-thumb .caption .product-color-swatches {
  justify-content: flex-start;
}

.product-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  box-sizing: border-box;
  flex: 0 0 18px;
}

.product-color-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-color-swatch.is-light,
.product-color-swatch[style*="background-color: #ffffff"],
.product-color-swatch[style*="background-color: #fff"] {
  border-color: #cfcfcf;
}

.product-color-more {
  display: inline-block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.product-color-more:hover,
.product-color-swatch:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Hide duplicate Advanced Options listing swatches; product cards render their own. */
.product-thumb .may-swatches {
  display: none !important;
}

/* Hide out-of-stock color/size options instead of showing a cross. */
.may-swatches label:has(input.out-of-stock),
.may-swatches label:has(i.slash),
.may-swatches label:has(i.cross),
.product-options .radio:has(.strikethrough),
.product-options .checkbox:has(.strikethrough),
.product-options label:has(.strikethrough) {
  display: none !important;
}

/* ------------------------------------------------------------------
   Product detail options: compact modern layout
   Journal push radios + May Advanced Options swatches
   ------------------------------------------------------------------ */

.product-info .product-options .form-group.hidden,
.product-info .product-options .form-group.may-advanced-option-level-1.hidden,
.product-info .product-options .form-group.may-advanced-option-level-2.hidden,
.product-info .product-options .form-group.may-advanced-option-level-3.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.product-info .product-options > .form-group {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 0 0 14px !important;
  padding: 0 !important;
  width: 100%;
}

.product-info .product-options > .form-group:last-of-type {
  margin-bottom: 0 !important;
}

.product-info .product-options .control-label {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  color: #1a1a1a !important;
}

.product-info .product-options .control-label .selected-option-label {
  font-weight: 500;
  color: #666;
}

.product-info .product-options .form-group > .may-swatches,
.product-info .product-options .form-group .control-label + div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: auto !important;
  max-width: 100%;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-info .product-options .push-option > div .radio,
.product-info .product-options .push-option > div .checkbox {
  padding: 0 !important;
  margin: 0 !important;
}

.product-info .product-options .push-option > div label,
.product-info .product-options .may-swatches > label {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  cursor: pointer;
}

/* Size / text chips */
.product-info .product-options .push-option > div input + .option-value,
.product-info .product-options .may-swatches input[type=radio] + span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px !important;
  min-height: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
  color: #1a1a1a !important;
  background: #fff !important;
  opacity: 1 !important;
  box-sizing: border-box;
}

.product-info .product-options .may-swatches input[type=radio]:checked + span,
.product-info .product-options .push-option > div input:checked + .option-value,
.product-info .product-options .may-swatches label:hover input:enabled + span,
.product-info .product-options .push-option > div label:hover input + .option-value {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}

/* Color swatches */
.product-info .product-options .push-option > div img,
.product-info .product-options .may-swatches input[type=radio] + img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  object-fit: cover;
  box-sizing: border-box;
  opacity: 1 !important;
}

.product-info .product-options .push-option input + img + .option-value,
.product-info .product-options .may-swatches .may-swatch-name {
  display: none !important;
}

.product-info .product-options .may-swatches input[type=radio] + span.may-color-swatch {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--swatch-color) !important;
  font-size: 0 !important;
  color: transparent !important;
  overflow: hidden;
}

.product-info .product-options .may-swatches input[type=radio] + span.may-color-swatch.is-light {
  box-shadow: inset 0 0 0 1px #ddd;
}
