/* Dotare B2B UX — safe visual-only phase 1, 2026-11-01.
   Scoped to PrestaShop product and category pages.
   No changes to prices, checkout logic, hooks, or product data. */
#product {
  --dotare-ux-blue: #1d75b9;
  --dotare-ux-yellow: #f7d922;
  --dotare-ux-border: #dfe8f0;
}
#product #main .js-product-prices {
  padding: 15px 16px 12px;
  margin: 16px 0 12px;
  border: 1px solid var(--dotare-ux-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(24, 49, 71, .055);
}
#product #main .js-product-prices .current-price {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
  margin: 0;
}
#product #main .js-product-prices .current-price > .price {
  flex: 1 1 190px;
  min-width: 0;
  margin: 0;
  padding: 14px 15px;
  border-radius: 12px;
  line-height: 1.25;
}
#product #main .js-product-prices .current-price > .price-tax-incl {
  background: linear-gradient(120deg, #fffbe3, #fff1a5);
  border: 1px solid #eee19a;
}
#product #main .js-product-prices .current-price > .price-tax-excl {
  background: linear-gradient(120deg, #edf7fe, #dfeef9);
  border: 1px solid #c8e2f4;
}
#product #main .js-product-prices .current-price .price-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}
#product #main .js-product-prices .current-price .price-tax-incl .price-container {
  display: block;
  font-size: clamp(25px, 2.4vw, 35px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: #172433;
}
#product #main .js-product-prices .current-price .price-tax-excl .price-container-netto {
  display: block;
  margin-top: 0;
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #0f5f98;
}
#product #main .js-product-prices .price-tax-label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}
#product #main .js-product-prices .current-price > .discount {
  flex: 0 0 auto;
  align-self: flex-start;
}
#product #main .add-to-cart.btn {
  border: 1px solid #e4c514;
  border-radius: 10px;
  background: #f7d922;
  color: #202b39;
  font-weight: 800;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(247, 217, 34, .2);
}
#product #main .add-to-cart.btn:hover,
#product #main .add-to-cart.btn:focus-visible {
  border-color: #d5b612;
  background: #efd018;
  color: #15212e;
}
#product #main #btn-cqw-add-to-quote.btn {
  border: 1px solid #1d75b9;
  border-radius: 10px;
  background: #1d75b9;
  color: #fff;
  font-weight: 800;
  text-transform: none;
}
#product #main #btn-cqw-add-to-quote.btn:hover,
#product #main #btn-cqw-add-to-quote.btn:focus-visible {
  border-color: #10598c;
  background: #10598c;
  color: #fff;
}
#product #main #btn-cqw-add-to-quote.btn span {
  color: inherit;
}
#product #main .product_availability_and_delivery {
  border: 1px solid #e5ebf1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
}
#product #main .product-detail-name {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.015em;
}

/* Category prices: native Leo/PrestaShop styling restored for consistency. */

/* Small screens: keep price figures readable without overflowing. */
@media (max-width: 480px) {
  #product #main .js-product-prices {
    padding: 10px;
  }
  #product #main .js-product-prices .current-price > .price {
    flex-basis: 100%;
    padding: 11px 13px;
  }
  #product #main .js-product-prices .price-tax-incl .price-container,
  #product #main .js-product-prices .price-tax-excl .price-container-netto {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {

}


/* DOTARE 2027 — kompaktowe kafelki B2B zamiast wysokich ApImage */
.infoBB.dotare-trust-wrap {margin: 10px 0 24px!important; padding: 0!important; display:block!important; width:100%;}
.dotare-trust-wrap .dotare-trust-strip {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; width:100%; padding:0; margin:0; }
.dotare-trust-wrap .dotare-trust-card {min-width:0; min-height:186px; display:flex; flex-direction:column; gap:11px; padding:18px 16px 16px; border:1px solid #dce7ef; background:linear-gradient(135deg,#fff 35%,#f4f9fc); border-radius:14px; box-shadow:0 3px 16px rgba(24,52,80,.035); color:#273443; text-decoration:none!important; transition:border-color .18s,box-shadow .18s,transform .18s;}
.dotare-trust-wrap .dotare-trust-card:nth-child(1) {border-top:3px solid #f7d922}
.dotare-trust-wrap .dotare-trust-card:nth-child(3) {border-top:3px solid #1d75b9}
.dotare-trust-wrap .dotare-trust-card:hover,.dotare-trust-wrap .dotare-trust-card:focus-visible {border-color:#98c9e8; box-shadow:0 9px 25px rgba(29,117,185,.12); transform:translateY(-2px); color:#172f44;}
.dotare-trust-wrap .dotare-trust-icon {width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#e6f3fc;color:#1d75b9;font-size:21px;}
.dotare-trust-wrap .dotare-trust-card:first-child .dotare-trust-icon {background:#fff5b9;color:#735b08;}
.dotare-trust-wrap .dotare-trust-copy {display:flex;flex-direction:column;gap:7px;font-size:12px;line-height:1.42;color:#526579;min-width:0;}
.dotare-trust-wrap .dotare-trust-copy strong {display:block;color:#1c2c3b;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:-.012em;}
.dotare-trust-wrap .dotare-trust-copy > span {display:block;}
.dotare-trust-wrap .dotare-trust-copy em {display:block;color:#1d75b9;font-size:12px; font-weight:800;font-style:normal;margin-top:auto;}
.dotare-trust-wrap .dotare-trust-nav {display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px; margin-top:14px; padding:12px 14px; background:#f6f9fc; border-radius:10px; font-size:12px;}
.dotare-trust-wrap .dotare-trust-nav strong {color:#193b58;font-weight:800;}
.dotare-trust-wrap .dotare-trust-nav a {color:#1769a6;text-decoration:underline; text-underline-offset:3px;}
.dotare-trust-wrap .dotare-trust-nav a:hover {color:#105486;}
@media(max-width:1199px) {.dotare-trust-wrap .dotare-trust-strip{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px) {
 .infoBB.dotare-trust-wrap {margin:8px 0 18px!important;}
 .dotare-trust-wrap .dotare-trust-strip{grid-template-columns:1fr;gap:9px;}
 .dotare-trust-wrap .dotare-trust-card{min-height:0;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;padding:13px 14px;border-radius:12px;}
 .dotare-trust-wrap .dotare-trust-icon{width:40px;height:40px;flex-basis:40px;font-size:20px;}
 .dotare-trust-wrap .dotare-trust-copy{gap:4px;font-size:12px;line-height:1.4;}
 .dotare-trust-wrap .dotare-trust-copy strong{font-size:14px;}
 .dotare-trust-wrap .dotare-trust-copy em{margin-top:2px;}
 .dotare-trust-wrap .dotare-trust-nav{margin-top:10px;padding:12px;gap:8px 12px;}
}
@media(prefers-reduced-motion:reduce) {.dotare-trust-wrap .dotare-trust-card{transition:none!important;transform:none!important;}}

/* B2B Home: legacy AP banner is superseded by the accessible hook block */
#index .ApRawHtml > .infoBB:not(.dotare-trust-wrap){display:none!important;}
#index .dotare-b2b-home-wrapper{padding-top:12px;padding-bottom:10px;}

/* B2B strip moves below the homepage hero without reserving an early blank gap */
#index .page-home > .dotare-b2b-home-wrapper:not(.dotare-b2b-placed) { display:none!important; }

/* Visible category CTAs. They lead to existing native product and quote flows. */
#category #products .product-miniature .dotare-mini-actions {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:9px 0 11px;padding:0 8px;}
#category #products .product-miniature .dotare-mini-actions a {display:flex;align-items:center;justify-content:center;min-height:41px;padding:8px 6px;border-radius:9px;line-height:1.28;text-align:center;font-size:12px;font-weight:800;text-decoration:none!important;transition:background-color .15s ease,border-color .15s ease;}
#category #products .product-miniature .dotare-mini-buy {background:#f7d922;color:#1b2a39;border:1px solid #d3b91d;}
#category #products .product-miniature .dotare-mini-buy:hover,#category #products .product-miniature .dotare-mini-buy:focus-visible {background:#efcc18;color:#18212b;}
#category #products .product-miniature .dotare-mini-quote {background:#1d75b9;color:#fff;border:1px solid #1d75b9;}
#category #products .product-miniature .dotare-mini-quote:hover,#category #products .product-miniature .dotare-mini-quote:focus-visible {background:#155f99;color:#fff;}
@media(max-width:480px){
 #category #products .product-miniature .dotare-mini-actions {gap:7px;padding:0 6px;}
 #category #products .product-miniature .dotare-mini-actions a{font-size:12px;min-height:44px;}
}
@media(prefers-reduced-motion:reduce){#category #products .dotare-mini-actions a{transition:none;}}


/* New B2B hero treatment: accessible HTML copy over lightweight responsive WebP. */
#index #dotHeroSlider .dot-slide a.dotare-slide-modern {display:block;position:relative;width:100%;height:100%;min-height:0;overflow:hidden;border-radius:13px;background:#164d77;}
#index #dotHeroSlider .dot-slide a.dotare-slide-modern picture {position:absolute;inset:0;display:block!important;width:100%;height:100%;clip-path:inset(0 0 0 39%);}
#index #dotHeroSlider .dot-slide a.dotare-slide-modern picture img {display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:right center!important;aspect-ratio:auto!important;}
#index #dotHeroSlider .dot-slide a.dotare-slide-modern::before {content:"";pointer-events:none;position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,#12415f 0%,#155987 40%,rgba(29,117,185,.95) 52%,rgba(29,117,185,.18) 82%,transparent 100%);}
#index #dotHeroSlider .dotare-slide-copy {position:absolute;left:4%;top:50%;transform:translateY(-50%);z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:53%;max-width:53%;color:#fff;text-align:left;pointer-events:none;}
#index #dotHeroSlider .dotare-slide-eyebrow {color:#ffe84e;font-size:11px;font-weight:900;letter-spacing:.08em;line-height:1.2;}
#index #dotHeroSlider .dotare-slide-headline {font-size:clamp(21px,2.1vw,35px);line-height:1.1;font-weight:900;letter-spacing:-.02em;color:#fff;text-wrap:balance;}
#index #dotHeroSlider .dotare-slide-subtitle {font-size:clamp(12px,1vw,16px);line-height:1.4;font-weight:500;color:#e7f4ff;max-width:430px;}
#index #dotHeroSlider .dotare-slide-cta {display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;background:#f7d922;border-radius:9px;color:#182b37;font-size:13px;font-weight:900;min-height:39px;box-shadow:0 3px 10px rgba(0,0,0,.09);}
#index #dotHeroSlider .dot-slide a.dotare-slide-modern:hover .dotare-slide-cta {background:#ffea46;}
@media(max-width:767px){
 #index #dotHeroSlider .dot-slide a.dotare-slide-modern {border-radius:10px;}
 #index #dotHeroSlider .dot-slide a.dotare-slide-modern::before {background:linear-gradient(90deg,#114567 0%,#166394 47%,rgba(29,117,185,.8) 66%,rgba(29,117,185,.09) 100%);}
 #index #dotHeroSlider .dotare-slide-copy {left:5%;width:60%;max-width:60%;gap:7px;}
 #index #dotHeroSlider .dotare-slide-eyebrow {font-size:9px;letter-spacing:.03em;}
 #index #dotHeroSlider .dotare-slide-headline {font-size:clamp(19px,5.4vw,24px);line-height:1.08;}
 #index #dotHeroSlider .dotare-slide-subtitle {font-size:11px;line-height:1.24;}
 #index #dotHeroSlider .dotare-slide-cta {font-size:11px;min-height:32px;padding:7px 11px;}
}

/* Intrinsic hero dimensions must be reserved with absolutely positioned picture. */
#index .dot-slider-container {aspect-ratio:370/267;height:auto!important;min-height:0;}
#index #dotHeroSlider {aspect-ratio:370/267;height:100%!important;min-height:0!important;}
#index #dotHeroSlider .dot-slide {height:100%!important;min-height:0!important;}
#index #dotHeroSlider .dot-slide a.dotare-slide-modern {height:100%!important;}

/* Mask old embedded raster CTA and move carousel controls away from copy. */
#index #dotHeroSlider .dot-slide a.dotare-slide-modern::after {
  content:""; pointer-events:none; position:absolute;right:0;bottom:0;z-index:2;
  width:60%;height:38%;
  background:linear-gradient(0deg,rgba(17,70,106,.97) 0%,rgba(17,70,106,.94) 50%,rgba(17,70,106,0) 100%);
}
#index .dot-slider-container #dotHeroPrev,
#index .dot-slider-container #dotHeroNext {top:auto!important;bottom:10px!important;transform:none!important;z-index:15!important;width:34px!important;height:34px!important;font-size:15px!important;opacity:.98;}
#index .dot-slider-container #dotHeroPrev {left:auto!important;right:51px!important;}
#index .dot-slider-container #dotHeroNext {right:10px!important;}
@media(max-width:767px){
 #index .dot-slider-container #dotHeroPrev,
 #index .dot-slider-container #dotHeroNext {bottom:7px!important;width:28px!important;height:28px!important;font-size:13px!important;}
 #index .dot-slider-container #dotHeroPrev{right:41px!important;}
 #index .dot-slider-container #dotHeroNext{right:7px!important;}
}

/* Product actions: compact B2B quick actions, keeping all original handlers. */
#product .product-button-action {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;align-items:start;margin:12px 0!important;max-width:100%;}
#product .product-button-action > p.askaboutproduct,
#product .product-button-action > div.compare {width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;min-width:0;}
#product .product-button-action > .pdf-buttons-wrapper {grid-column:1 / -1;display:flex!important;flex-wrap:wrap;gap:8px;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;}
#product .product-button-action > p.askaboutproduct > button,
#product .product-button-action > div.compare > a {width:100%!important;min-height:45px;line-height:1.2!important;white-space:normal;}
#product .product-button-action > .pdf-buttons-wrapper > .btn {flex:1 1 125px;min-width:0;min-height:44px;}
#product .product-button-action .btn:not(.close) {background:#f1f7fb!important;color:#17669e!important;border:1px solid #c6dfea!important;border-radius:9px!important;box-shadow:none!important;padding:9px 10px!important;font-size:12px!important;line-height:1.3!important;text-transform:none!important;font-weight:750!important;letter-spacing:0!important;}
#product .product-button-action .btn:not(.close):hover,
#product .product-button-action .btn:not(.close):focus-visible {background:#e2f1fb!important;border-color:#1d75b9!important;color:#105b90!important;}
#product .product_availability_and_delivery #idTabProductDelivery {overflow-x:auto;max-width:100%;}
#product .product_availability_and_delivery #idTabProductDelivery .table th,
#product .product_availability_and_delivery #idTabProductDelivery .table td {padding:9px 10px!important;font-size:13px!important;line-height:1.45;}
@media(max-width:480px){
 #product .product-button-action {gap:7px!important;}
 #product .product-button-action .btn:not(.close) {font-size:11px!important;padding:8px 7px!important;}
}

/* Reserve final homepage content order before paint. Fixes CLS from client-side moving B2B cards. */
@supports selector(:has(*)) {
  #index #content.page-home {display:flex;flex-direction:column;align-items:stretch;}
  #index #content.page-home > * {order:2;}
  #index #content.page-home > .wrapper:has(#dotHeroSlider) {order:0;}
  #index #content.page-home > .dotare-b2b-home-wrapper,
  #index #content.page-home > .dotare-b2b-home-wrapper:not(.dotare-b2b-placed) {
    display:block!important;order:1;
  }
}

/* ===== DOTARE B2B PRODUCT UX 2027 / visual-only, preserves all native actions ===== */
#product #main .product-detail-name {
  color:#172c3f;
  font-size:clamp(23px,2.35vw,33px);
  font-weight:850;
  line-height:1.2;
  letter-spacing:-.02em;
  text-wrap:balance;
  margin:3px 0 12px;
}
#product #content .images-container {
  background:#fff;
  border:1px solid #e3eaf0;
  border-radius:16px;
  padding:10px;
  overflow:hidden;
}
#product #content .product-cover {
  border-radius:12px;
  overflow:hidden;
  background:#f7fafc;
}
#product #content .product-cover img {
  border-radius:12px;
  object-fit:contain;
}
#product #main .js-product-prices {
  border-color:#d6e4ee;
  background:#fff;
  box-shadow:0 10px 25px rgba(25,65,100,.065);
}
#product #main .js-product-prices .price-tax-incl,
#product #main .js-product-prices .price-tax-excl {
  border-radius:12px;
}
#product #main .js-product-prices .price-tax-incl .price-container {
  font-weight:900;
  letter-spacing:-.02em;
}
#product #main .js-product-prices .price-tax-excl .price-container-netto {
  font-weight:900;
  letter-spacing:-.02em;
}
#product .product-quantity .add-to-cart.btn,
#product .product-quantity #btn-cqw-add-to-quote {
  min-height:48px!important;
  border-radius:10px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
#product .product_availability_and_delivery {
  border:1px solid #e0eaf1;
  border-radius:14px;
  padding:12px 14px;
  background:#f7fafc;
  margin-top:12px;
  gap:8px;
}
#product .product_availability_and_delivery .col-availability,
#product .product_availability_and_delivery .x13wysylka-p {
  flex-basis:auto;
  max-width:100%;
  line-height:1.45;
  margin-right:12px;
}
#product .product_availability_and_delivery #idTabProductDelivery {
  margin-top:8px;
  border-radius:9px;
  overflow-x:auto;
  max-width:100%;
}
#product .product_availability_and_delivery #idTabProductDelivery table {
  border-collapse:collapse;
  width:100%;
  min-width:0;
  background:#fff;
  margin-bottom:0;
  border-radius:8px;
}
#product .product_availability_and_delivery #idTabProductDelivery th {
  font-weight:750;
  background:#e9f2f8;
  color:#27445a;
}
#product .product_availability_and_delivery #idTabProductDelivery td {
  color:#314c60;
}
#product .product_availability_and_delivery #idTabProductDelivery th,
#product .product_availability_and_delivery #idTabProductDelivery td {
  padding:7px 9px!important;
  line-height:1.3!important;
  vertical-align:middle;
  font-size:12px!important;
}
#product .product-description :is(h2,h3,h4) {
  color:#1d3c54;
  line-height:1.23;
  letter-spacing:-.01em;
}
#product .product-description :is(ul,ol) li {
  padding-bottom:4px;
}
#product .product-description :is(img,video,iframe) {
  max-width:100%;
  height:auto;
}
@media(max-width:767px){
  #product #main .product-detail-name {font-size:23px;line-height:1.19;}
  #product #content .images-container {padding:7px;border-radius:13px;}
  #product #main .js-product-prices {margin-top:10px;}
  #product .product_availability_and_delivery {padding:10px;gap:5px;}
  #product .product_availability_and_delivery #idTabProductDelivery {margin-top:7px;}
  #product .product_availability_and_delivery #idTabProductDelivery th,
  #product .product_availability_and_delivery #idTabProductDelivery td {padding:6px 7px!important;}
  /* One swipable row replaces the five stacked B2B boxes on product pages. */
  #product .infoBB.dotare-trust-wrap {overflow:hidden!important;margin:16px 0 20px!important;}
  #product .dotare-trust-wrap .dotare-trust-strip {
    display:flex!important;flex-wrap:nowrap!important;gap:10px;
    max-width:100%;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:3px 2px 9px;
  }
  #product .dotare-trust-wrap .dotare-trust-card {
    flex:0 0 235px!important;min-height:167px!important;
    display:flex!important;flex-direction:column!important;
    gap:7px;scroll-snap-align:start;padding:12px;
  }
  #product .dotare-trust-wrap .dotare-trust-icon {width:36px;height:36px;flex:0 0 36px;}
  #product .dotare-trust-wrap .dotare-trust-copy {gap:4px;}
  #product .dotare-trust-wrap .dotare-trust-nav {font-size:11px;}
}

/* Reserve desktop header footprint before the megamenu script reflows. */
@media(min-width:992px) and (max-width:1500px) {
  #header {min-height:241px;}
}

/* DOTARE product enquiry UX v3 — November 2026, contained, no payment logic. */
#product .product-additional-info .social-sharing {display:none!important;}
#product .ets-rv-product-comments-additional-info > button.ets-rv-post-product-question {display:none!important;}
#product .ets-rv-product-comments-additional-info > button.ets-rv-post-product-comment {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;max-width:100%!important;min-height:38px!important;
  border:1px solid #c9e0ef!important;border-radius:9px!important;
  background:#f4faff!important;color:#1769a4!important;
  padding:9px 14px!important;margin:10px 0 6px!important;
  text-transform:none!important;letter-spacing:0!important;
  font-size:13px!important;font-weight:700!important;
  box-shadow:none!important;
}
#product .ets-rv-product-comments-additional-info > button.ets-rv-post-product-comment:hover {
  background:#e7f4fc!important;border-color:#1d75b9!important;
}

/* Hide old verbose product content before the enquiry dialog is initialized. */
.pd_aap_send_custommer_form .product.clearfix {display:none!important;}
.pd_aap_send_custommer_form,
.pd_aap_send_custommer_form.dotare-inquiry-ready {
  overflow:visible!important;width:100%!important;max-width:100%!important;
  min-width:0!important;box-sizing:border-box!important;
  background:#fff!important;
}
.pd_aap_send_custommer_form .row {display:block!important;margin:0!important;}
.pd_aap_send_custommer_form .content_form {
  float:none!important;width:100%!important;max-width:100%!important;
  padding:0!important;margin:0!important;flex:0 0 100%!important;
}
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) {
  position:fixed!important;top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(590px,calc(100vw - 20px))!important;
  max-width:calc(100vw - 20px)!important;
  max-height:calc(100dvh - 20px)!important;
  z-index:100000!important;
}
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) .fancybox-skin {
  padding:0!important;border-radius:17px!important;
  background:#fff!important;overflow:hidden!important;
  box-shadow:0 22px 65px rgba(9,39,64,.26)!important;
}
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) .fancybox-inner {
  display:block!important;width:100%!important;height:auto!important;
  max-height:calc(100dvh - 22px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;
}
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) .fancybox-close {
  position:absolute!important;right:14px!important;top:13px!important;
  width:30px!important;height:30px!important;z-index:12!important;
  border-radius:50%;background-color:#f1f5f9!important;
  background-position:center!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready > h2.title {
  position:sticky!important;top:0;z-index:3;
  margin:0!important;padding:18px 54px 13px 21px!important;
  background:#fff!important;border-bottom:1px solid #e6edf4!important;
  color:#163d5e!important;font-size:23px!important;
  font-weight:850!important;letter-spacing:-.018em!important;
  line-height:1.15!important;
}
.dotare-inquiry-product-name {
  margin:0 19px;padding:12px 14px;background:#edf6fc;
  border:1px solid #d9eaf5;border-radius:0 0 11px 11px;
  display:flex;flex-direction:column;gap:3px;
}
.dotare-inquiry-product-name span {
  font-size:11px;font-weight:750;color:#526f85;
  text-transform:uppercase;letter-spacing:.035em;
}
.dotare-inquiry-product-name strong {
  color:#164b71;font-weight:750;font-size:13px;
  line-height:1.35;display:-webkit-box;
  -webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .form_container {
  background:#fff!important;border:0!important;
  padding:12px 20px 18px!important;margin:0!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .form_container > p {
  font-size:12px;color:#52697d;line-height:1.4;margin:0 0 10px!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready fieldset {
  min-width:0;margin:0!important;padding:0!important;border:0!important;
}
.pd_aap_send_custommer_form .dotare-inquiry-grid {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 12px!important;
}
.pd_aap_send_custommer_form .dotare-inquiry-grid > p.dotare-inquiry-field {
  display:block!important;float:none!important;
  margin:0!important;padding:0!important;min-width:0!important;
}
.pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-type,
.pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-email,
.pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-question {grid-column:1/-1;}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field > label {
  display:block!important;margin:0 0 4px!important;
  font-size:12px!important;font-weight:750!important;
  color:#304a5e!important;line-height:1.3!important;
  padding:0!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field :is(input.form-control,select.form-control,textarea.form-control) {
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;height:42px!important;
  font-size:14px!important;font-weight:450!important;
  border:1px solid #cddce7!important;background:#fff!important;
  color:#263e51!important;border-radius:9px!important;
  padding:8px 10px!important;margin:0!important;
  box-shadow:none!important;line-height:1.3!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field textarea.form-control {
  height:86px!important;min-height:75px!important;max-height:180px!important;
  resize:vertical!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field :is(input,select,textarea):focus {
  border-color:#1d75b9!important;outline:2px solid rgba(29,117,185,.14)!important;
  outline-offset:0!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field .error {
  font-size:11px!important;color:#b42318!important;font-weight:600!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .txt_required {
  margin:8px 0!important;padding:0!important;
  color:#687a8c!important;font-size:11px!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-actions {
  position:sticky;bottom:0;z-index:2;
  display:flex!important;justify-content:flex-end!important;
  padding:10px 0 2px!important;margin:0!important;
  background:#fff!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-actions #sendQuestionEmail {
  display:block!important;background:#f7d922!important;color:#192f40!important;
  border:1px solid #d7bc1c!important;border-radius:10px!important;
  padding:12px 18px!important;min-height:46px!important;
  width:100%!important;max-width:100%!important;
  font-size:15px!important;font-weight:850!important;text-transform:none!important;
  cursor:pointer!important;letter-spacing:0!important;line-height:1.2!important;
  box-shadow:0 4px 14px rgba(235,199,13,.18)!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-actions #sendQuestionEmail:hover {
  background:#ffe53d!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-actions #sendQuestionEmail:disabled {
  cursor:wait!important;opacity:.65!important;
}
@media(max-width:560px) {
  .fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) {
    width:calc(100vw - 14px)!important;max-height:calc(100dvh - 14px)!important;
  }
  .fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) .fancybox-inner {
    max-height:calc(100dvh - 16px)!important;
  }
  .pd_aap_send_custommer_form.dotare-inquiry-ready > h2.title {
    font-size:20px!important;padding:15px 50px 12px 16px!important;
  }
  .dotare-inquiry-product-name {margin:0 14px;padding:10px 12px;}
  .pd_aap_send_custommer_form.dotare-inquiry-ready .form_container {padding:10px 15px 14px!important;}
  .pd_aap_send_custommer_form .dotare-inquiry-grid {gap:9px!important;column-gap:9px!important;}
  .pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-company,
  .pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-city,
  .pd_aap_send_custommer_form .dotare-inquiry-grid .dotare-field-phone {grid-column:1/-1;}
  .pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field :is(input.form-control,select.form-control,textarea.form-control) {
    height:43px!important;padding:7px 9px!important;
  }
  .pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-field textarea.form-control {height:79px!important;}
}

/* Reduce modal height; keep accessibility and independent inner scrolling. */
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) {
  max-height:min(720px,calc(100dvh - 24px))!important;
}
.fancybox-wrap:has(.pd_aap_send_custommer_form.dotare-inquiry-ready) .fancybox-inner {
  max-height:min(720px,calc(100dvh - 24px))!important;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-privacy {
  margin:7px 0 3px!important;color:#617386;font-size:11px;line-height:1.4;
}
.pd_aap_send_custommer_form.dotare-inquiry-ready .dotare-inquiry-privacy a {
  color:#1767a5;text-decoration:underline;text-underline-offset:2px;
}
/* Consent preference button remains accessible after closing the enquiry,
   but it must not cover the enquiry's Send button. */
body:has(.fancybox-wrap .pd_aap_send_custommer_form.dotare-inquiry-ready) .pdcookiepro-reopen {
  z-index:1000!important;pointer-events:none!important;
}

/* DOTARE mobile 2027 v17 – reduce shopping-card whitespace, preserve native cart/quote handlers. */
@media(max-width:767px){
  /* Product: make the primary and B2B CTAs legible and distinct. */
  #product .product-quantity .add {
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:9px!important;
    align-items:stretch!important;
    width:100%!important;
  }
  #product .product-quantity .add > button.add-to-cart {
    grid-column:1 / -1!important;grid-row:1!important;
    width:100%!important;max-width:100%!important;
    min-height:52px!important;margin:0!important;
    font-size:16px!important;padding:10px 12px!important;
  }
  #product .product-quantity .add > .wishlist {
    grid-column:1!important;grid-row:2!important;
    width:56px!important;min-width:56px!important;
    margin:0!important;padding:0!important;
  }
  #product .product-quantity .add > .wishlist .leo-wishlist-button {
    min-height:48px!important;height:48px!important;width:56px!important;
    margin:0!important;border-radius:10px!important;
  }
  #product .product-quantity .add > #add-to-quote {
    grid-column:2!important;grid-row:2!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;padding:0!important;align-self:stretch!important;
  }
  #product .product-quantity .add > #add-to-quote .cqw-product-quantity,
  #product .product-quantity .add > #add-to-quote .cqw-add {
    width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  }
  #product .product-quantity .add #btn-cqw-add-to-quote {
    width:100%!important;min-width:0!important;max-width:100%!important;
    min-height:48px!important;height:100%!important;
    margin:0!important;padding:8px 9px!important;
    font-size:13px!important;letter-spacing:0!important;
    line-height:1.25!important;white-space:normal!important;
    box-sizing:border-box!important;
  }
  #product .product_availability_and_delivery {
    margin-top:14px!important;
    padding:12px!important;
    background:#f8fbfd!important;
    border-color:#d9e6ee!important;
    gap:7px!important;
  }
  #product .product_availability_and_delivery > .col-availability {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:wrap!important;gap:7px!important;
    padding:10px 12px!important;margin:0!important;
    width:100%!important;max-width:100%!important;
    background:#fff9da!important;
    border:1px solid #f0e3a4!important;
    border-radius:10px!important;
    color:#32485b!important;font-weight:650!important;
    font-size:14px!important;line-height:1.28!important;
  }
  #product .product_availability_and_delivery > .col-availability > #product-availability {
    margin:0!important;padding:0!important;
    font-size:16px!important;font-weight:850!important;
    color:#23455f!important;text-transform:none!important;
  }
  #product .product_availability_and_delivery #idTabProductDelivery {
    margin-top:2px!important;border:1px solid #e2ebf2!important;
    border-radius:10px!important;overflow:hidden!important;
  }
  #product .product_availability_and_delivery #idTabProductDelivery .table {
    width:100%!important;table-layout:fixed!important;
  }
  #product .product_availability_and_delivery #idTabProductDelivery th,
  #product .product_availability_and_delivery #idTabProductDelivery td {
    font-size:12px!important;line-height:1.3!important;
    padding:9px 10px!important;overflow-wrap:anywhere!important;
  }
  #product .product_availability_and_delivery #idTabProductDelivery td.option_name {
    font-weight:650!important;color:#25465e!important;
  }
  #product .product_availability_and_delivery #idTabProductDelivery td.option_price {
    text-align:right!important;white-space:nowrap!important;
    color:#1f4868!important;
  }
  #product .product-button-action {margin:8px 0!important;gap:8px!important;}
  #product .product-button-action .btn:not(.close) {
    min-height:45px!important;font-size:12px!important;
    overflow-wrap:normal!important;
  }
  /* Listing: keep thumbnails proportional, prevent oversized poster/slider whitespace. */
  #category #products .product-miniature .thumbnail-container,
  #category #products .product-miniature .product-image {
    max-width:100%!important;
  }
  #category #products .product-miniature .product-image a.product-thumbnail {
    display:block!important;height:auto!important;
    min-height:0!important;aspect-ratio:1.3 / 1!important;
    overflow:hidden!important;background:#f8fafb!important;
  }
  #category #products .product-miniature .product-image a.product-thumbnail > img.img-fluid {
    display:block!important;
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;
    max-height:100%!important;object-fit:contain!important;
  }
  #category #products .product-miniature .product-image a.product-thumbnail > span.product-additional {
    display:none!important;
  }
  #category #products .product-miniature .product-meta {
    padding-top:7px!important;
  }
  #category #products .product-miniature .product-title {
    line-height:1.35!important;min-height:0!important;
  }
  #category #products .product-miniature .product-price-and-shipping {margin:7px 0!important;}
  #category #products .dotare-mini-actions {
    gap:8px!important;
  }
}
