.shop-product.lu-quote-page .product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "photo intro" "photo config";
    align-items: start;
    gap: 0 clamp(24px, 4vw, 60px);
}
.lu-quote-intro { grid-area: intro; }
.lu-quote-intro h1 { margin: 0 0 12px; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.1; }
.lu-quote-intro p { margin: 0 0 20px; line-height: 1.55; color: #504d55; }
.shop-product .lu-quote-gallery {
    grid-area: photo;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    border: 1px solid var(--line, #dedbe4);
    border-radius: 7px;
    background: #fff;
}
.lu-quote-gallery > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lu-quote-gallery #lu-photo-caption { margin-top: 8px; color: #514d57; text-align: center; font-size: 14px; }
.lu-gallery-sides { display: flex; width: fit-content; margin: 10px auto 0; padding: 3px; border: 1px solid var(--line, #d4d1d8); border-radius: 6px; background: #fff; }
.lu-gallery-sides[hidden] { display: none; }
.lu-gallery-sides button { background: transparent; border: 0; border-radius: 4px; color: #353139; padding: 6px 16px; min-height: 40px; cursor: pointer; font: inherit; font-size: 14px; }
.lu-gallery-sides button[aria-pressed="true"] { background: #201e23; color: #fff; }
.lu-gallery-library { min-width: 0; margin-top: 6px; }
.lu-gallery-library [hidden] { display: none !important; }
.lu-gallery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.lu-gallery-actions > * { display: inline-flex; align-items: center; min-height: 42px; padding: 0; border: 0; background: transparent; color: #353139; cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.lu-gallery-thumbs { display: flex; gap: 7px; overflow-x: auto; padding: 5px 3px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.lu-gallery-thumbs a { position: relative; flex: 0 0 60px; height: 64px; box-sizing: border-box; padding: 3px; border: 1px solid #d4d1d8; border-radius: 5px; background: #fff; scroll-snap-align: start; }
.lu-gallery-thumbs a[aria-current="true"] { border-color: #171717; box-shadow: inset 0 0 0 1px #171717; }
.lu-gallery-thumbs a img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lu-gallery-thumbs a span { position: absolute; right: 2px; bottom: 2px; padding: 1px 4px; background: #242227; color: #fff; border-radius: 3px; font: 600 11px/1.4 Arial,sans-serif; }
.lu-spin-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lu-spin-controls input { width: min(55%,220px); min-height: 44px; accent-color: #242227; }
.lu-spin-controls button, .lu-gallery-dialog button { min-width: 44px; min-height: 44px; border: 1px solid #d4d1d8; border-radius: 5px; background: #fff; color: #242227; font: inherit; cursor: pointer; }
.lu-spin-controls button { font-size: 24px; line-height: 1; }
.lu-gallery-library :focus-visible { outline: 2px solid #242227; outline-offset: 1px; }
.lu-gallery-dialog { box-sizing: border-box; width: fit-content; max-width: 94vw; max-height: 94vh; max-height: 94dvh; margin: auto; padding: 12px; border: 0; border-radius: 7px; background: #fff; color: #242227; }
.lu-gallery-dialog::backdrop { background: rgba(20,18,23,.74); }
.lu-gallery-dialog form { display: flex; justify-content: flex-end; }
.lu-gallery-dialog button { padding: 4px 14px; }
.lu-gallery-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: 69vh; max-height: 69dvh; margin: 0 auto; object-fit: contain; }
.lu-gallery-dialog p { margin: 8px 0 2px; font-size: 14px; text-align: center; }
.lu-quote-gallery #lu-photo-caption::first-letter, .lu-color-choice span::first-letter,
.lu-size-panel legend::first-letter, .lu-summary-color::first-letter { text-transform: uppercase; }
.lu-quote-config { grid-area: config; min-width: 0; }
.lu-quote-config [hidden] { display: none !important; }
.lu-quote-config fieldset { padding: 0; margin: 0; min-width: 0; border: 0; }
.lu-quote-config .lu-color-field { margin: 4px 0 20px; }
.lu-color-field > legend, .lu-size-fields h2 { margin: 0 0 10px; padding: 0; color: #171717; font: 700 20px/1.25 Uniforma, Arial, sans-serif; letter-spacing: -.025em; }
.lu-color-options { display: flex; flex-wrap: wrap; align-items: stretch; gap: 7px; }
.lu-color-choice {
    display: flex; align-items: center; justify-content: flex-start; gap: 5px; min-height: 44px;
    max-width: 100%; min-width: 0; padding: 3px 9px 3px 4px; background: #fff; color: #28262c;
    font: inherit; font-size: 14px; line-height: 1.2; text-align: left; cursor: pointer;
    border: 1px solid #d4d1d8; border-radius: 5px;
}
.lu-color-choice[aria-pressed="true"] { border-color: #171717; box-shadow: inset 0 0 0 1px #171717; }
.lu-color-choice img { flex: 0 0 34px; width: 34px; height: 38px; object-fit: contain; }
.lu-show-colors { display: inline-block; min-height: 38px; margin: 3px 0 -6px; padding: 0; background: none; border: none; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lu-size-fields > p { margin: -3px 0 12px; color: #55515b; font-size: 14px; }
.lu-size-panel legend { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.lu-size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.lu-size-options label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; color: #49454d; }
.lu-size-options input { width: 100%; max-width: 110px; min-height: 44px; padding: 9px 7px; border: 1px solid #aca7b0; background: #fff; color: #171717; font: inherit; font-size: 16px; box-sizing: border-box; }
.lu-config-summary { margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line, #dedbe4); border-bottom: 1px solid var(--line, #dedbe4); }
.lu-config-summary > strong { font-size: 20px; }
.lu-config-summary > span { font-size: 14px; color: #55515b; }
.lu-config-summary > ul { margin: 8px 0 0; padding: 0; list-style: none; color: #55515b; font-size: 14px; line-height: 1.6; }
.lu-summary-color { padding: 3px 0; border: 0; color: #242227; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lu-config-summary p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.lu-delivery { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; }
.lu-delivery .dashicons { margin-top: 2px; }
.lu-delivery strong, .lu-delivery span:not(.dashicons), .lu-delivery small { display: block; }
.lu-delivery strong { margin-bottom: 3px; }
.lu-delivery small { margin-top: 3px; color: #55515b; font-size: 13px; line-height: 1.4; }
.lu-quote-config .lu-config-submit { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 48px; }
.lu-config-footnote { margin: 9px 0 0; color: #55515b; font-size: 14px; line-height: 1.5; }
.lu-config-error { color: #8a2927; font-weight: 700; }
@media (max-width: 780px) {
    .shop-product.lu-quote-page .product-detail {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas: "intro" "photo" "config";
        row-gap: 16px;
    }
    .lu-quote-intro p { margin-bottom: 0; }
    .shop-product .lu-quote-gallery { padding: 12px; }
    .lu-quote-gallery > img { max-height: 36vh; min-height: 180px; }
    .lu-size-options { grid-template-columns: repeat(auto-fill, minmax(59px, 1fr)); }
}
