/* Classico Next HOTFIX12 — centering respects viewport instead of right-aligned nav group. */
@media(min-width:1024px){
 html.cn132-ready #header .cn130-brands-panel:not([hidden]),
 html.cn130-premium #header .cn130-brands-panel:not([hidden]){
  position:fixed!important;
  top:var(--cn12-brand-top,145px)!important;
  left:50vw!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:min(1280px,calc(100vw - 48px))!important;
  max-width:calc(100vw - 48px)!important;
  max-height:min(74vh,720px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  margin:0!important;
  box-sizing:border-box!important;
  z-index:3000!important;
 }
 html.cn130-premium #header .cn130-products-panel{z-index:2900!important;}
 html.cn130-premium #header .cn130-products-panel .cn-navigation.is-catalog-open{display:block!important;pointer-events:auto!important;}
}
/* The product-detail gallery must outrank fixed header, footer, sticky cart and quickview. */
body #product-modal.cn12-gallery-modal{
 position:fixed!important;inset:0!important;z-index:50030!important;
 padding:12px!important;overflow:auto!important;
 background:transparent;
}
body.cn12-gallery-open>.modal-backdrop,
body.cn12-gallery-open .modal-backdrop{z-index:50020!important;}
body #product-modal.cn12-gallery-modal .modal-dialog{
 position:relative!important;z-index:1!important;
 width:min(1120px,calc(100vw - 30px))!important;
 max-width:1120px!important;margin:14px auto!important;
 max-height:calc(100dvh - 30px)!important;
}
body #product-modal.cn12-gallery-modal .modal-content{
 position:relative!important;background:#fff!important;border:1px solid #d5e0f3!important;
 box-shadow:0 24px 90px rgba(10,23,49,.3)!important;border-radius:18px!important;
 max-height:calc(100dvh - 40px)!important;overflow:hidden!important;
}
body #product-modal.cn12-gallery-modal .modal-body{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 padding:50px 20px 15px!important;min-height:0!important;overflow:hidden!important;
}
body #product-modal.cn12-gallery-modal .modal-body figure{
 margin:0!important;padding:0!important;flex:1 1 auto!important;min-height:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
body #product-modal.cn12-gallery-modal .js-modal-product-cover{
 display:block!important;max-width:100%!important;width:auto!important;height:auto!important;
 max-height:calc(100dvh - 235px)!important;object-fit:contain!important;margin:0 auto!important;
}
body #product-modal.cn12-gallery-modal .image-caption{display:none!important;}
body #product-modal.cn12-gallery-modal #thumbnails{
 position:relative!important;flex:0 0 auto!important;float:none!important;width:100%!important;
 max-width:100%!important;margin:10px auto 0!important;min-height:0!important;
}
body #product-modal.cn12-gallery-modal .js-modal-mask{
 width:100%!important;max-width:100%!important;height:auto!important;max-height:105px!important;
 overflow-x:auto!important;overflow-y:hidden!important;margin:0!important;white-space:nowrap!important;
}
body #product-modal.cn12-gallery-modal .js-modal-product-images{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:center!important;
 gap:8px!important;min-height:0!important;padding:5px 4px!important;margin:0!important;
 width:max-content!important;min-width:100%!important;
}
body #product-modal.cn12-gallery-modal .thumb-container{
 display:block!important;float:none!important;flex:0 0 74px!important;
 width:74px!important;height:74px!important;margin:0!important;padding:0!important;
 background:#fff!important;border:1px solid #e0e8f7!important;border-radius:9px!important;overflow:hidden!important;
}
body #product-modal.cn12-gallery-modal .thumb-container .thumb{
 display:block!important;max-width:100%!important;width:100%!important;height:100%!important;
 max-height:100%!important;padding:4px!important;box-sizing:border-box!important;object-fit:contain!important;
}
body #product-modal.cn12-gallery-modal .js-modal-arrows{display:none!important;}
body #product-modal.cn12-gallery-modal .cn12-gallery-close{
 position:absolute!important;right:12px!important;top:10px!important;z-index:3!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:38px!important;height:38px!important;border-radius:50%!important;
 background:#f0f5ff!important;border:1px solid #c9d9f7!important;
 color:#183664!important;font-size:27px!important;line-height:1!important;cursor:pointer!important;
}
body #product-modal.cn12-gallery-modal .cn12-gallery-close:hover{background:#e0ebff!important;}
@media(max-width:600px){
 body #product-modal.cn12-gallery-modal .modal-dialog{margin:4px auto!important;width:calc(100vw - 22px)!important;}
 body #product-modal.cn12-gallery-modal .modal-body{padding:48px 10px 10px!important;}
 body #product-modal.cn12-gallery-modal .js-modal-product-cover{max-height:calc(100dvh - 190px)!important;}
 body #product-modal.cn12-gallery-modal .thumb-container{flex-basis:58px!important;width:58px!important;height:58px!important;}
 body #product-modal.cn12-gallery-modal .js-modal-mask{max-height:85px!important;}
}
