@charset "UTF-8";

.yamm-product-summary__purchase .variations tr + tr th {
  padding-top: 24px;
}

.yamm-variation-options--size .yamm-variation-option {
  min-width: 68px;
  border-radius: 3px;
}

.yamm-variation-options--swatch {
  gap: 10px 14px;
}

.yamm-variation-option--swatch {
  min-width: 0;
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  border-color: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.yamm-variation-option--swatch:hover,
.yamm-variation-option--swatch:focus-visible,
.yamm-variation-option--swatch.is-active {
  border-color: rgba(0, 0, 0, .42);
}

.yamm-variation-option--swatch.is-active { box-shadow: none; }

.yamm-variation-option__swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 50%;
  background: var(--yamm-option-swatch, #eee);
  box-shadow: inset 0 0 0 2px #fff;
}

.yamm-variation-option--swatch.is-active .yamm-variation-option__swatch {
  outline: 1px solid #111;
  outline-offset: 2px;
}

.yamm-variation-option__label { white-space: nowrap; }

.yamm-product[data-product-domain="fashion"] .yamm-product-gallery__frame,
.yamm-product[data-product-domain="leather"] .yamm-product-gallery__frame {
  background: #f7f7f5;
}

/*
 * Mode uses the linked-colour product family above the native Woo form.
 * The original Woo colour select remains in the form as business state only.
 */
.yamm-product[data-product-domain="fashion"] .yamm-variation-row--linked-color-source,
.yamm-product[data-product-domain="leather"] .yamm-variation-row--linked-color-source {
  display: none !important;
}

/* Premium one-line size selector, matching the current Maison YAMM storefront. */
.yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase .yamm-variation-row--mode-size,
.yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase .yamm-variation-row--mode-size {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase .yamm-variation-row--mode-size > th,
.yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase .yamm-variation-row--mode-size > th {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.yamm-product[data-product-domain="fashion"] .yamm-product-summary__purchase .yamm-variation-row--mode-size > td,
.yamm-product[data-product-domain="leather"] .yamm-product-summary__purchase .yamm-variation-row--mode-size > td {
  position: relative;
  width: 100%;
  display: block;
}

.yamm-mode-size-picker {
  position: relative;
  z-index: 24;
  width: 100%;
  font-family: var(--yamm-font-ui);
  color: #111;
}

.yamm-mode-size-picker__trigger {
  width: 100%;
  min-height: 53px;
  padding: 0 7px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  appearance: none;
}

.yamm-mode-size-picker__title,
.yamm-mode-size-picker__value {
  font-weight: 400;
  line-height: 1.2;
}

.yamm-mode-size-picker__right {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.yamm-mode-size-picker__arrow {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 220ms var(--yamm-ease-lux), color 180ms ease;
}

.yamm-mode-size-picker.is-open .yamm-mode-size-picker__arrow {
  color: #b58b2f;
  transform: rotate(225deg);
}

.yamm-mode-size-picker__menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(.985);
  transform-origin: 50% 0;
  transition: opacity 180ms ease, transform 220ms var(--yamm-ease-lux);
}

.yamm-mode-size-picker__menu[hidden] { display: none; }

.yamm-mode-size-picker.is-open .yamm-mode-size-picker__menu {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.yamm-mode-size-picker__option {
  width: 100%;
  min-height: 39px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  transition: background 130ms ease;
}

.yamm-mode-size-picker__option:last-child { border-bottom: 0; }
.yamm-mode-size-picker__option:hover,
.yamm-mode-size-picker__option:focus-visible { background: #fafafa; outline: 0; }
.yamm-mode-size-picker__option:disabled { color: rgba(0,0,0,.28); cursor: not-allowed; }

.yamm-mode-size-picker__check {
  opacity: 0;
  font-size: 15px;
  line-height: 1;
}

.yamm-mode-size-picker__option.is-active .yamm-mode-size-picker__check { opacity: 1; }

@media (max-width: 620px) {
  .yamm-variation-options--size {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .yamm-variation-options--size .yamm-variation-option {
    min-width: 0;
    width: 100%;
  }

  .yamm-variation-option--swatch { padding-right: 8px; }

  .yamm-mode-size-picker__trigger { min-height: 51px; font-size: 14px; }
  .yamm-mode-size-picker__menu { top: calc(100% + 12px); }
  .yamm-mode-size-picker__option { min-height: 42px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .yamm-mode-size-picker__menu,
  .yamm-mode-size-picker__arrow { transition: none; }
}
