html.af-product-options-open { overflow: hidden; }
html.af-product-options-open body { position: fixed; top: var(--af-options-scroll-top); width: 100%; }
.af-product-options {
  box-sizing: border-box;
  width: min(960px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--af-card-border, #d4dfe5);
  border-radius: 1rem;
  background: #fff;
  color: var(--af-ink, #17252d);
  overflow: auto;
  overscroll-behavior: contain;
}
.af-product-options::backdrop { background: rgb(0 22 38 / .6); }
.af-product-options__header { display: flex; align-items: start; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.af-product-options__header h2 { margin: 0; color: var(--af-ocean, #001e33); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.af-product-options__close { flex-shrink: 0; }
.af-product-options__close, .af-product-options__retry { min-height: 44px; padding: .5rem .8rem; border: 1px solid #687681; border-radius: .3rem; background: #fff; color: inherit; cursor: pointer; font: inherit; }
.af-product-options__product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1rem, 3vw, 2rem); }
.af-product-options__image img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: .5rem; }
.af-product-options__details { min-width: 0; }
.af-product-options__details > .price { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.af-product-options__details form.cart { margin: 1rem 0 0; }
.af-product-options__details .quantity { display: inline-block; margin-right: .75rem; }
.af-product-options__details input.qty { width: 5rem; }
.af-product-options__details .single_add_to_cart_button { background: var(--ag-orange, var(--af-primary, #005a9c)); border-radius: .3rem; color: var(--ag-text, #fff); }
.af-product-options__details .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.af-product-options__details .variations { width: 100%; border: 0; }
.af-product-options__details .variations th, .af-product-options__details .variations td { border: 0; }
.af-product-options__status:not(:empty) { padding: .75rem 0; }
.af-product-options__footer { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.af-product-options__footer a { display: inline-flex; align-items: center; min-height: 44px; }
.af-product-options :focus-visible { outline: 3px solid var(--af-primary, #005a9c); outline-offset: 3px; }
@media (max-width: 600px) {
  .af-product-options { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .af-product-options__product { grid-template-columns: minmax(0, 1fr); }
  .af-product-options__image img { max-height: 180px; }
}
