product-info[data-tmx-configurator-glass] {
  --tmx-configurator-surface: linear-gradient(155deg, #fff 0%, rgb(252 252 253 / 92%) 48%, rgb(233 236 240 / 80%) 100%);
  --tmx-configurator-highlight: inset 0 1px 1px #fff, 0 2px 8px rgb(30 37 50 / 7%);
  --tmx-configurator-selected: inset 0 0 0 1px var(--tmx-ink, #121212), var(--tmx-configurator-highlight);
}

product-info[data-tmx-configurator-glass] :is(
  variant-selects .product-form__input--pill input[type='radio'] + label,
  variant-selects .swatch-input__input + .swatch-input__label,
  variant-selects .select__select,
  .tmx-oscar__front input + label,
  .tmx-oscar__tile,
  .tmx-oscar__gallery-modes button,
  .tmx-pilot__size,
  .tmx-pilot__swatch,
  .tmx-pilot__cables button,
  .tmx-pilot__card,
  .tmx-pilot__add,
  .tmx-pilot__print-frame,
  .tmx-pilot__granite-design label,
  .tmx-panel-slab__choice,
  .tmx-pilot__arrow,
  .tmx-pilot__thumbnail,
  .product__media-wrapper .thumbnail,
  .product__media-icon--lightbox,
  .tmx-accessory__arrows button,
  quantity-input.quantity,
  .tmx-pilot__quantity,
  .tmx-pilot__set-quantity input
) {
  border: 1px solid var(--tmx-line, #dedede);
  background: var(--tmx-configurator-surface);
  box-shadow: var(--tmx-configurator-highlight);
}

product-info[data-tmx-configurator-glass] :is(
  variant-selects .product-form__input--pill input[type='radio'] + label,
  variant-selects .select__select,
  .tmx-oscar__front input + label,
  .tmx-oscar__tile,
  .tmx-oscar__gallery-modes button,
  .tmx-pilot__size,
  .tmx-pilot__cables button,
  .tmx-pilot__print-frame,
  .tmx-pilot__granite-design label,
  .tmx-panel-slab__choice,
  .tmx-pilot__thumbnail,
  .product__media-wrapper .thumbnail,
  quantity-input.quantity,
  .tmx-pilot__quantity,
  .tmx-pilot__set-quantity input
) {
  border-radius: var(--tmx-control-radius, 1.2rem);
}

product-info[data-tmx-configurator-glass] :is(
  variant-selects .product-form__input--pill input[type='radio']:checked + label,
  variant-selects .swatch-input__input:checked + .swatch-input__label,
  .tmx-oscar__front input:checked + label,
  .tmx-oscar__tile:has(input:checked),
  .tmx-oscar__gallery-modes button[aria-pressed='true'],
  .tmx-pilot__size[aria-pressed='true'],
  .tmx-pilot__swatch[aria-pressed='true'],
  .tmx-pilot__cables button[aria-pressed='true'],
  .tmx-pilot__card.is-selected,
  .tmx-pilot__print-choice:has(input:checked) .tmx-pilot__print-frame,
  .tmx-pilot__granite-design label:has(input:checked),
  .tmx-panel-slab__choice:has(input:checked),
  .tmx-pilot__thumbnail[aria-pressed='true'],
  .product__media-wrapper .thumbnail[aria-current='true']
) {
  border-color: var(--tmx-ink, #121212);
  background: var(--tmx-configurator-surface);
  box-shadow: var(--tmx-configurator-selected);
  color: var(--tmx-ink, #121212);
}

product-info[data-tmx-configurator-glass] variant-selects .product-form__input--pill input[type='radio']:is(.disabled, :disabled) + label {
  color: var(--tmx-muted, #56565b);
}

product-info[data-tmx-configurator-glass] variant-selects .swatch-input__input:checked + .swatch-input__label {
  border: 1px solid var(--tmx-ink, #121212) !important;
}

product-info[data-tmx-configurator-glass] variant-selects .swatch-input__input + .swatch-input__label:hover {
  transform: none;
}

product-info[data-tmx-configurator-glass] variant-selects :is(
  .product-form__input--pill input[type='radio']:focus-visible + label,
  .swatch-input__input:focus-visible + .swatch-input__label
) {
  outline: 2px solid var(--tmx-ink, #121212);
  outline-offset: 3px;
}

product-info[data-tmx-configurator-glass] variant-selects .select {
  --inputs-radius: var(--tmx-control-radius, 1.2rem);
  --inputs-radius-outset: calc(var(--inputs-radius) + var(--inputs-border-width));
}

product-info[data-tmx-configurator-glass] .tmx-pilot__quantity button {
  background: transparent;
}

product-info[data-tmx-configurator-glass] :is(mobile-sticky-atc, .tmx-pilot__sticky) {
  background: var(--tmx-configurator-surface);
}

product-info[data-tmx-configurator-glass] :is(.tmx-pilot__print-choice:has(input:checked) .tmx-pilot__print-frame, .tmx-pilot__granite-design label:has(input:checked)) {
  border-width: 1px;
}

product-info[data-tmx-configurator-glass] .tmx-pilot__print-choice:has(input:checked) .tmx-pilot__print-frame {
  padding: 10px;
}

product-info[data-tmx-configurator-glass] .tmx-pilot__granite-design label:has(input:checked) {
  padding: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  product-info[data-tmx-configurator-glass] :is(
    variant-selects .product-form__input--pill input[type='radio']:not(:disabled, .disabled) + label,
    variant-selects .swatch-input__input:not(:disabled, .visually-disabled) + .swatch-input__label,
    .tmx-oscar__front input:not(:disabled) + label,
    .tmx-oscar__tile:not(:has(input:disabled)),
    .tmx-oscar__gallery-modes button:not(:disabled),
    .tmx-pilot__size:not(:disabled),
    .tmx-pilot__swatch:not(:disabled),
    .tmx-pilot__cables button:not(:disabled),
    .tmx-pilot__add:not(:disabled),
    .tmx-pilot__quantity button:not(:disabled),
    .tmx-pilot__print-choice:not(:has(input:disabled)) .tmx-pilot__print-frame,
    .tmx-pilot__granite-design label:not(:has(input:disabled)),
    .tmx-panel-slab__choice:not(:has(input:disabled)),
    .tmx-pilot__arrow:not(:disabled),
    .tmx-pilot__thumbnail:not(:disabled),
    .product__media-wrapper .thumbnail:not(:disabled),
    .tmx-accessory__arrows button:not(:disabled),
    quantity-input .quantity__button:not(:disabled)
  ) {
    transition: scale 260ms var(--tmx-motion-ease, ease-out), translate 260ms var(--tmx-motion-ease, ease-out), opacity var(--duration-short, 100ms) ease;

    &:active {
      scale: 0.97;
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover {
        translate: 0 -2px;
      }
    }
  }
}
