#geometryChoices[hidden],#geometryChoices:empty{display:none}
#geometryChoices{display:flex;flex-wrap:wrap;align-items:start;gap:12px 18px;margin:14px 0 0;grid-column:1/-1}
#geometryChoices fieldset{border:0;margin:0;padding:0;min-width:0}
#geometryChoices legend{font:inherit;font-size:.77rem;font-weight:650;color:#674f3d;padding:0;margin:0 0 6px}
#geometryChoices .choice-row{display:flex;flex-wrap:wrap;gap:3px;background:#f5efe6;border-radius:9px;padding:3px;width:fit-content}
#geometryChoices button{font:inherit;font-size:.76rem;line-height:1.2;border:1px solid transparent;border-radius:7px;background:transparent;padding:7px 9px;cursor:pointer;color:#5d4634}
#geometryChoices button[aria-pressed=true]{color:#63320d;background:#fffaf2;border-color:#c98749;font-weight:650}
#geometryChoices button:focus-visible{outline:2px solid #ac5c21;outline-offset:2px}
#geometryChoices [role=status]{flex-basis:100%;font-size:.83rem;color:#754426;margin:0}
.visual-gallery-v32339 img[data-lab],#selectedProductImage[data-lab]{width:100%;height:100%;object-fit:contain}
#configuratorStudio img[data-lab]{transform:none!important;object-fit:contain!important}
#configuratorStudio #selectedProductCode .selected-product-options{
  display:block;margin-top:4px;color:#695646;font-size:clamp(12px,.75em,14px);
  line-height:1.35;font-weight:500;letter-spacing:normal;text-transform:none;white-space:normal;
}
#selectedProductCode .selected-option-label{display:inline-block;max-width:100%}
@media(min-width:769px){
  #selectedProductCode .selected-option-label{display:block}
  #selectedProductCode .selected-option-separator{display:none}
}
#geometryViewer{padding:12px;border:1px solid #ddcfbb;border-radius:16px;background:#faf6ef;color:#513a28;width:min(600px,calc(100vw - 30px));max-height:88dvh}
#geometryViewer::backdrop{background:rgba(55,42,31,.39)}
#geometryViewer header,#geometryViewer footer{display:flex;justify-content:space-between;align-items:center;gap:8px}
#geometryViewer button{font:inherit;background:#fffaf3;border:1px solid #d7c9b9;color:inherit;border-radius:8px;padding:6px 12px;cursor:pointer}
#geometryViewer canvas{display:block;width:100%;height:min(53dvh,395px);touch-action:none;cursor:grab}
#geometryViewer canvas:active{cursor:grabbing}
@media(max-width:700px){#geometryChoices{margin:8px 0 12px;gap:9px;flex-direction:column}#geometryChoices button{min-height:36px;padding:7px 12px}}
@media(max-width:768px){
  #configuratorStudio [data-slide="2"] #constructionList .is-unavailable .construction-discount-v3232{
    grid-column:1 / 3!important;display:block!important;white-space:normal!important;overflow-wrap:break-word!important;
  }
  #configuratorStudio [data-slide="3"] [data-geometry-template].selected-product-mini{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"code code" "model dieline" "change change";
    gap:7px;
  }
  #configuratorStudio [data-slide="3"] [data-geometry-template] #selectedProductCode{grid-area:code;white-space:normal}
  #configuratorStudio [data-slide="3"] [data-geometry-template].selected-product-mini :is(.step3-product-image-v32343,.step3-product-dieline-v32343){
    display:grid!important;place-items:center;min-width:0;min-height:0!important;
    width:100%;height:clamp(88px,27vw,132px)!important;margin:0;
    border:1px solid #e3d8ca;border-radius:9px;background:#f7f1e8;overflow:hidden;
  }
  [data-geometry-template] .step3-product-image-v32343{grid-area:model}
  [data-geometry-template] .step3-product-dieline-v32343{grid-area:dieline}
  #configuratorStudio [data-slide="3"] [data-geometry-template] :is(#selectedProductImage,#selectedProductDieline){
    display:block;width:100%;height:100%;min-width:0;min-height:0;max-height:100%;object-fit:contain;transform:none;
  }
  [data-geometry-template] .step3-product-change-v32343{grid-area:change;justify-self:start}
}

/* Fit the projected box inside the actual card, including narrow and landscape layouts. */
#configuratorStudio :is(.visual-main-card-v3813,.step3-product-image-v32343){position:relative}
#configuratorStudio :is(#visualPackshot,#selectedProductImage)[data-lab]{
  position:absolute!important;inset:5px!important;display:block;min-width:0!important;min-height:0!important;
  width:calc(100% - 10px)!important;height:calc(100% - 10px)!important;max-width:none!important;max-height:none!important;
  padding:0!important;margin:0!important;object-fit:contain!important;object-position:center!important;transform:none!important
}
.visual-gallery-v32339{position:relative}
.visual-gallery-v32339 img:not([src]),.visual-gallery-v32339 img[src=""]{visibility:hidden}
.variant-unresolved :is(.visual-main-card,.dieline-card){opacity:.33}
#variantFeedback:not([hidden]){position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;
  justify-content:center;gap:7px;padding:7px 11px;background:#fffcf7;color:#563b29;border:1px solid #d2c2ae;border-radius:9px;
  box-shadow:0 2px 8px #3d291116;font-size:13px;line-height:1.3;white-space:nowrap}
#variantFeedback button{color:inherit;font:inherit;min-height:44px;background:white;border:1px solid #bc9e83;border-radius:7px}
#variantFeedback i{width:13px;height:13px;border:2px solid #dfcbbb;border-top-color:#834a2b;border-radius:50%;animation:profile-spin .85s linear infinite}
@keyframes profile-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){#variantFeedback i{animation:none}}
.profile-announcement{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.order-cart-drawer{width:100%;height:100%;max-width:none;max-height:none;padding:0;margin:0;border:0;background:transparent;color:inherit}
.order-cart-drawer::backdrop{background:transparent}
.order-cart-drawer:not([open]){display:none}
#orderCartDrawer :focus-visible{outline:2px solid #91451f;outline-offset:2px}
@media(max-width:768px){#geometryChoices button,#orderCartDrawer aside button{min-height:44px;min-width:44px}
#confirmConstruction,#orderCartCheckout{min-height:48px}}

/* R184: keep the unavailable label above its complete, readable explanation. */
#configuratorStudio [data-slide="2"] #constructionList .construction-option-v3813.is-unavailable{
  grid-template-rows:auto auto!important;row-gap:5px!important;height:auto!important;
}
#configuratorStudio [data-slide="2"] #constructionList .is-unavailable .construction-price-v3232>strong,
#configuratorStudio [data-slide="2"] #constructionList .is-unavailable>i{
  grid-row:1!important;align-self:center!important;
}
#configuratorStudio [data-slide="2"] #constructionList .is-unavailable .construction-discount-v3232{
  grid-column:1 / -1!important;grid-row:2!important;display:block!important;width:auto!important;
  min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:break-word!important;
  font-size:11px!important;line-height:1.35!important;letter-spacing:normal!important;text-align:left!important;
}
#configuratorStudio [data-slide="2"] #constructionList .construction-option-v3813.is-unavailable>i{display:none!important}
