/* SVdesign only. Native combination and price elements remain in the product form. */
/* PrestaShop's HTML purifier removes the export's inline display:none. */
body#product .svdesign-source-data {
    display: none !important;
}
body#product.svdesign-chooser-active .door-order-card,
body#product.svdesign-chooser-active #buy_block,
body#product.svdesign-chooser-active #attributes,
body#product.svdesign-chooser-active #attributes fieldset,
body#product.svdesign-chooser-active #attributes .attribute_list,
body#product.svdesign-chooser-active #attributes .selector,
body#product.svdesign-chooser-active #attributes select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
body#product.svdesign-chooser-active #attributes .selector,
body#product.svdesign-chooser-active #attributes select {
    width: 100% !important;
}
body#product.svdesign-chooser-active #attributes .selector > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
body#product.svdesign-chooser-active #attributes .svdesign-unavailable,
body#product.svdesign-chooser-active #attributes .svdesign-single-choice,
body#product.svdesign-chooser-active #attributes .svdesign-package-native {
    display: none !important;
}
body#product.svdesign-chooser-active.svdesign-paired-active #image-block {
    display: none !important;
}
#svdesign-package-panel,
#svdesign-composition,
#svdesign-paired-photos {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
#svdesign-package-panel {
    margin: 10px 0;
}
#svdesign-package-panel .svdesign-package-title {
    font-weight: 600;
    margin-bottom: 7px;
}
#svdesign-package-panel .svdesign-package-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
#svdesign-package-panel button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid #d8e2d9;
    border-radius: 7px;
    background: #fff;
    color: #29412c;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    cursor: pointer;
}
#svdesign-package-panel button.is-selected {
    border-color: #17832b;
    background: #f3faf4;
    font-weight: 600;
}
#svdesign-package-panel button:focus-visible {
    outline: 2px solid #17832b;
    outline-offset: 2px;
}
#svdesign-order-badge {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 4px 9px;
    border-radius: 4px;
    background: #fff3dc;
    color: #805612;
    font-size: 13px;
    font-weight: 600;
}
#svdesign-order-badge.is-unavailable { color: #962e2e; background: #fdecec; }
#svdesign-order-badge[hidden],
#svdesign-composition[hidden],
#svdesign-paired-photos[hidden],
#svdesign-package-panel button[hidden] {
    display: none !important;
}
#svdesign-composition {
    margin: 8px 0 14px;
    padding: 11px 12px;
    border: 1px solid #dce4dd;
    border-radius: 7px;
    background: #f8fbf8;
    overflow-wrap: anywhere;
}
#svdesign-composition h4 { margin: 0 0 6px; font-size: 14px; }
#svdesign-composition ul { margin: 0; padding-left: 20px; }
#svdesign-composition li { float: none; max-width: 100%; overflow-wrap: anywhere; }
#svdesign-chooser-notice { margin: 0 0 10px; color: #586859; font-size: 12px; }
#svdesign-chooser-notice:empty { display: none; }
#svdesign-price-warning-slot {
    display: grid;
    min-width: 0;
    max-width: 100%;
}
#svdesign-chooser-notice.svdesign-price-warning,
#svdesign-price-warning-slot > .svdesign-price-warning {
    box-sizing: border-box;
    grid-area: 1 / 1;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-left: 3px solid #bf8a2d;
    background: #fff6e5;
    color: #604413;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
#svdesign-price-warning-slot .svdesign-warning-sizer { visibility: hidden; pointer-events: none; }
#svdesign-price-warning:empty { visibility: hidden; }
#svdesign-paired-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}
#svdesign-paired-photos .svdesign-composite-frame {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 920 / 900;
}
#svdesign-paired-photos .svdesign-composite-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}
#svdesign-paired-photos .svdesign-composite-side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
}
#svdesign-paired-photos .svdesign-composite-side:nth-of-type(1) { left: 0; }
#svdesign-paired-photos .svdesign-composite-side:nth-of-type(2) { right: 0; }
#svdesign-paired-photos .svdesign-composite-side:focus-visible {
    outline: 2px solid #17832b;
    outline-offset: -2px;
}
#svdesign-paired-photos .svdesign-composite-caption {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: #586859;
}
#svdesign-paired-photos figure {
    min-width: 0;
    margin: 0;
    padding: 5px;
    border: 1px solid #e2e6e3;
    border-radius: 5px;
    text-align: center;
}
#svdesign-paired-photos img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}
#svdesign-paired-photos figcaption { margin-top: 5px; font-size: 12px; }
#svdesign-paired-photos figure img { aspect-ratio: 1 / 1; }
.svdesign-technical { max-width: 100%; overflow-wrap: anywhere; }
.svdesign-technical img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
/* The legacy panel gallery no longer sizes SVdesign radio tiles. */
body#product.svdesign-chooser-active #attributes ul.door-panel-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body#product.svdesign-chooser-active #attributes .door-panel-choice,
body#product.svdesign-chooser-active #attributes .door-panel-choice label {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body#product.svdesign-chooser-active #attributes .door-panel-swatch {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 105px;
    object-fit: contain;
}
body#product.svdesign-chooser-active #attributes .door-panel-option-name {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
body#product.svdesign-chooser-active #attributes fieldset.svdesign-panel-select-swatches .selector,
body#product.svdesign-chooser-active #attributes fieldset.svdesign-panel-select-swatches select.attribute_select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 8px;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-button {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 7px;
    border: 1px solid #d6ddd7;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-button[hidden] {
    display: none !important;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-button.is-selected {
    border-color: #17832b;
    box-shadow: 0 0 0 1px #17832b;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-button:focus-visible {
    outline: 2px solid #176b27;
    outline-offset: 2px;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 96px;
    object-fit: contain;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-image[hidden] {
    display: none;
}
body#product.svdesign-chooser-active #attributes .svdesign-panel-swatch-label {
    display: block;
    min-width: 0;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
#svdesign-photo-notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 12px;
    color: #586859;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
#svdesign-photo-notice[hidden] { display: none; }
