/* One-click requests only. Native dialog supplies focus containment and an inert backdrop. */
dialog.quick-order {
    position: fixed;
    inset: var(--quick-top, 0px) 0 var(--quick-bottom, 0px);
    width: min(980px, calc(100% - 64px));
    max-width: none;
    max-height: calc(var(--quick-height, 100dvh) - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: var(--shop-block-light-text);
    color: var(--brand-ink);
    box-shadow: 0 24px 80px color-mix(in srgb, var(--brand-ink) 32%, transparent);
}
dialog.quick-order[open] { display: flex; flex-direction: column; }
.quick-order::backdrop { background: color-mix(in srgb, var(--brand-ink) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.quick-order *, .quick-order *::before, .quick-order *::after { box-sizing: border-box; }
.quick-order__header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 30px; background: var(--brand-ink); color: var(--shop-block-light-text); }
.quick-order__header h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.quick-order__close { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--shop-block-light-text) 17%, transparent); color: var(--shop-block-light-text); cursor: pointer; font-size: 32px; line-height: 1; }
.quick-order__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.quick-order__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px 30px 30px; }
.quick-order__product, .quick-order__details { min-width: 0; }
.quick-order__product { display: flex; flex-direction: column; gap: 14px; }
.quick-order__details { padding-left: 26px; border-left: 1px solid color-mix(in srgb, var(--brand-accent) 20%, transparent); }
.quick-order__name { order: -1; margin: 0; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.18; font-weight: 700; }
.quick-order__selection { min-width: 0; }
.quick-order__selection-list { margin: 0; padding: 0; list-style: none; }
.quick-order__selection-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--brand-mist); }
.quick-order__selection-list li:first-child { padding-top: 0; }
.quick-order__selection-list img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--brand-bg); }
.quick-order__selection-list li > div { min-width: 0; grid-column: 2; }
.quick-order__selection-list h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.quick-order__selection-list p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 5px 0; font-size: 13px; color: var(--brand-navy); }
.quick-order__selection-list strong { color: var(--brand-accent); font-size: 15px; overflow-wrap: anywhere; }
.quick-order__line-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.quick-order__line-prices s { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); font-size: 13px; white-space: nowrap; }
.quick-order__line-prices strong { white-space: nowrap; }
.quick-order__preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand-accent) 12%, transparent); border-radius: 14px; background: var(--brand-bg); touch-action: pan-y; }
.quick-order__image-button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.quick-order__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.quick-order__image-missing { padding: 30px; color: var(--brand-navy); text-align: center; }
.quick-order__arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); padding: 0; border: 0; border-radius: 50%; background: var(--brand-mist); color: var(--brand-navy); cursor: pointer; font-size: 32px; line-height: 1; }
.quick-order__arrow--previous { left: 8px; } .quick-order__arrow--next { right: 8px; }
.quick-order__gallery { min-width: 0; }
.quick-order__thumbnails { position: relative; display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--brand-accent) var(--brand-mist); padding: 4px; margin-top: 8px; }
.quick-order__thumbnails button { flex: 0 0 72px; width: 72px; height: 64px; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--brand-bg); cursor: pointer; scroll-snap-align: start; }
.quick-order__thumbnails button:first-child { margin-left: auto; } .quick-order__thumbnails button:last-child { margin-right: auto; }
.quick-order__thumbnails button[aria-pressed="true"] { border-color: var(--brand-accent); }
.quick-order__thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.quick-order__counter { margin: 5px 0 0; color: var(--brand-navy); font-size: 12px; text-align: center; }
.quick-order__summary { padding: 18px; border: 1px solid var(--brand-mist); border-radius: 14px; background: var(--brand-bg); }
.quick-order__summary-title { margin: 0 0 16px; color: var(--brand-navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.quick-order__breakdown { display: grid; margin: 0 0 14px; gap: 10px; }
.quick-order__breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.4; }
.quick-order__breakdown dt { min-width: 0; }
.quick-order__breakdown dd { margin: 0; flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.quick-order__breakdown s { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); font-weight: 400; }
.quick-order__breakdown .quick-order__saving { padding: 8px 10px; border-radius: 8px; background: var(--brand-success-bg); color: var(--brand-success); font-weight: 600; }
.quick-order__price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--brand-mist); color: var(--brand-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.quick-order__payment { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--brand-navy); font-size: 13px; line-height: 1.4; }
.quick-order__payment svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quick-order__size { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--brand-accent) 22%, transparent); }
.quick-order__size > span { display: block; margin-bottom: 10px; font-size: 14px; }
.quick-order__prices { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 10px; margin-left: auto; }
.quick-order__prices s { color: var(--brand-navy); font-size: 14px; }
.quick-order__price strong { color: var(--brand-navy); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; text-align: right; }
/* Reuse the purchase panel's size control inside this dialog, with its menu in the single vertical scroll. */
html body dialog.quick-order .paturi-product-size-dropdown__field { z-index: auto !important; }
html body dialog.quick-order .paturi-product-size-dropdown__toggle { min-height: 64px !important; gap: 10px !important; padding: 12px !important; border: 2px solid var(--brand-accent) !important; border-radius: 12px !important; background: var(--shop-block-light-text) !important; color: var(--brand-ink) !important; box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-accent) 15%, transparent) !important; animation: none !important; }
html body dialog.quick-order .paturi-product-size-dropdown__toggle::after { display: none !important; }
html body dialog.quick-order .paturi-product-size-dropdown__selection { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
html body dialog.quick-order .paturi-product-size-dropdown__chevron { display: block; width: 8px; height: 8px; flex: 0 0 8px; margin-top: -4px; border-right: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(45deg); }
html body dialog.quick-order .paturi-product-size-dropdown__price,
html body dialog.quick-order .paturi-product-size-dropdown__option-price { display: flex !important; min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 8px; white-space: normal !important; flex-shrink: 1 !important; }
html body dialog.quick-order .paturi-product-size-dropdown__price strong,
html body dialog.quick-order .paturi-product-size-dropdown__option-price strong { color: var(--brand-accent); font-size: 16px; white-space: nowrap; }
html body dialog.quick-order .paturi-product-size-dropdown__price s,
html body dialog.quick-order .paturi-product-size-dropdown__option-price s { color: var(--brand-navy); font-size: 12px; font-weight: 400; white-space: nowrap; }
html body dialog.quick-order .paturi-product-size-dropdown__menu { position: static !important; max-height: none !important; overflow: visible !important; margin-top: 8px; border: 1px solid var(--brand-lavender) !important; border-radius: 12px !important; background: var(--shop-block-light-text) !important; }
html body dialog.quick-order .paturi-product-size-dropdown__option { gap: 8px !important; min-height: 52px !important; padding: 10px 12px !important; color: var(--brand-ink) !important; }
html body dialog.quick-order .paturi-product-size-dropdown__option-label { flex-shrink: 0; font-size: 15px; }
html body dialog.quick-order .paturi-product-size-dropdown__option:hover,
html body dialog.quick-order .paturi-product-size-dropdown__option:focus-visible,
html body dialog.quick-order .paturi-product-size-dropdown__option--selected { background: var(--brand-mist) !important; }
html body dialog.quick-order .paturi-product-size-dropdown__toggle:focus-visible,
html body dialog.quick-order .paturi-product-size-dropdown__option:focus-visible { outline: 3px solid var(--brand-accent) !important; outline-offset: 2px !important; }
.quick-order__form { margin-top: 22px; }
.quick-order__form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.quick-order__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.quick-order__field { display: grid; grid-template-rows: subgrid; grid-row: span 3; min-width: 0; }
.quick-order__field label { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 700; }
.quick-order__field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 10px; border: 1px solid color-mix(in srgb, var(--brand-navy) 36%, transparent); border-radius: 10px; background: var(--brand-bg); color: var(--brand-ink); font-size: 16px; line-height: 1.4; text-overflow: ellipsis; }
.quick-order__field input::placeholder { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
.quick-order__explanation { margin: 17px 0 22px; color: var(--brand-navy); font-size: 14px; line-height: 1.5; }
.quick-order__submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 54px; padding: 13px 16px; border: 0; border-radius: 11px; background: var(--brand-quick-order-cta); color: var(--shop-block-light-text); font-size: 18px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.quick-order__submit:disabled { opacity: .65; cursor: wait; }
.quick-order__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 20px; font-size: 12px; line-height: 1.5; }
.quick-order :where(button, input, select, a):focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.quick-order__notice { margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--brand-mist); color: var(--brand-navy); font-size: 14px; }
.quick-order__error { color: var(--brand-danger); font-size: 14px; }
.quick-order__field .quick-order__error { margin: 6px 0 0; }
.quick-order__success { padding: 34px 0; text-align: center; }
.quick-order__success > span { display: inline-grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: var(--brand-success-bg); color: var(--brand-success); font-size: 36px; }
.quick-order__success h3 { margin: 20px 0 12px; font-size: 24px; }
.quick-order__back { display: inline-block; min-height: 44px; margin-bottom: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--brand-accent); font-size: 16px; font-weight: 600; cursor: pointer; }
.quick-order__zoom { padding: 20px; } .quick-order__zoom img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.quick-order .quick-order__specs .product-summary-specs { width: 100% !important; margin: 0 !important; }
.quick-order .quick-order__specs .product-summary-specs__inner { min-height: 0; gap: 0; border: 0; border-radius: 10px; background: var(--brand-mist); box-shadow: none; }
.quick-order .quick-order__specs .product-summary-specs__item { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; }
.quick-order .quick-order__specs .product-summary-specs__icon { width: 25px; height: 25px; flex: 0 0 25px; }
.quick-order .quick-order__specs .product-summary-specs__text { margin: 0; font-size: 13px; line-height: 1.35; }
.quick-order .quick-order__specs .product-summary-specs__text span { font-size: inherit; }
@media (max-width: 1024px) { dialog.quick-order { width: 90%; margin-left: auto; margin-right: auto; } }
@media (max-width: 740px) {
    .quick-order__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 18px 22px; }
    .quick-order__details { display: contents; padding: 0; border: 0; }
    .quick-order__product { display: contents; }
    .quick-order__selection { order: 0; }
    .quick-order__name { order: 0; font-size: 25px; } .quick-order__gallery { order: 1; }
    .quick-order__summary { order: 2; } .quick-order__specs { order: 3; }
    .quick-order__form, .quick-order__notice, .quick-order__success { order: 4; margin-top: 0; }
    .quick-order__header { padding: 15px 18px; }
    .quick-order__header h2 { font-size: 25px; }
    .quick-order__preview { border: 0; }
    .quick-order__legal { text-align: center; }
}
@media (max-width: 640px) {
    dialog.quick-order { width: 95%; max-height: calc(var(--quick-height, 100dvh) - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))); margin-left: auto; margin-right: auto; border-radius: 20px; }
}
@media (max-width: 359px) {
    .quick-order__layout { padding: 14px 12px 20px; }
    .quick-order__fields { column-gap: 8px; }
    .quick-order .quick-order__specs .product-summary-specs__item { flex-direction: column; padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) { .quick-order *, .quick-order *::before, .quick-order *::after { scroll-behavior: auto; transition: none; animation: none; } }
