/* Native fragment navigation works without JavaScript and preserves product queries. */
#quote-form { scroll-margin-top: 100px; }
/* Keep short configuration labels intact in narrow multilingual tables. */
.spec-table .type-options { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.spec-table .type-choice { display: inline-flex; flex: 0 0 auto; align-items: center; white-space: nowrap; }
/* Above the existing back-to-top control; no third-party widget is loaded. */
.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: var(--whatsapp-bottom, max(104px, env(safe-area-inset-bottom)));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  height: 58px;
  padding: 0 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #12833f;
  color: #fff;
  box-shadow: 0 6px 24px #064d303d, 0 0 0 5px #ffffffb3;
  font: 700 16px/1 system-ui, sans-serif;
  text-decoration: none;
  direction: ltr;
}
.whatsapp-float svg { width: 30px; height: 30px; flex: none; }
.whatsapp-float:hover { background: #116432; color: #fff; }
.whatsapp-float:focus-visible { outline: 3px solid #1670c5; outline-offset: 3px; }
body:has([data-ads-consent]:not([hidden])) .whatsapp-float {
  bottom: var(--whatsapp-bottom, calc(75vh + 32px));
}
.site-back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: var(--back-top-bottom, max(24px, env(safe-area-inset-bottom)));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #1763a6;
  color: #fff;
  box-shadow: 0 4px 16px #0003;
  font: 700 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
.site-back-to-top[hidden] { display: none; }
.site-back-to-top:focus-visible { outline: 3px solid #1670c5; outline-offset: 3px; }
@media print { .whatsapp-float, .site-back-to-top { display: none; } }
@media (max-width: 600px) {
  .whatsapp-float { height: 52px; padding: 0 16px; gap: 8px; font-size: 15px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  body:has([data-ads-consent]:not([hidden])) .whatsapp-float { bottom: var(--whatsapp-bottom, calc(65vh + 26px)); }
  [data-ads-consent] {
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    padding: 14px;
    font-size: 14px;
    line-height: 1.45;
    max-height: 65vh;
    box-sizing: border-box;
  }
  [data-ads-consent] p { margin-bottom: 8px; }
  .ads-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .ads-consent-actions button { padding: 10px 8px; min-width: 0; min-height: 44px; font-size: 14px; }
  .cta#inquiry { padding: 36px 20px; min-height: 0; gap: 16px; }
  .cta#inquiry > * { margin-block: 0; }
  .cta#inquiry h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.2; }
  .cta#inquiry p { font-size: 16px; line-height: 1.6; }
  .cta#inquiry .button { margin-top: 8px; }
  .product-cta, .lp-cta { display: grid; gap: 16px; padding: 36px 20px; min-height: 0; }
  .product-cta h2, .lp-cta h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.2; margin-block: 0; }
  .product-cta p, .lp-cta p { font-size: 16px; line-height: 1.6; margin-block: 0; }
  [data-mobile-contact] .page-hero { padding: 36px 20px; min-height: 0; }
  [data-mobile-contact] .page-hero h1 { font-size: clamp(32px, 8vw, 40px); line-height: 1.15; margin-block: 16px; }
  [data-mobile-contact] .page-hero p { font-size: 16px; line-height: 1.6; }
  [data-mobile-contact] .contact-layout { padding: 32px 20px; gap: 32px; }
  #quote-form { scroll-margin-top: 20px; }
}

/* Compact, non-modal consent. Both choices have the same visual weight. */
[data-ads-consent][data-compact-consent] {
  inset: auto auto max(12px, env(safe-area-inset-bottom)) 16px;
  margin: 0;
  width: min(600px, calc(100% - 32px));
  max-width: 600px;
  padding: 14px 16px;
  box-sizing: border-box;
  font: 13px/1.5 system-ui, sans-serif;
  border: 1px solid #d6dfe5;
  border-radius: 12px;
  box-shadow: 0 4px 20px #142e451a;
  max-height: 45vh;
}
[data-compact-consent] .consent-copy strong { display: block; margin-bottom: 3px; font-size: 14px; }
[data-compact-consent] .consent-copy p { margin: 0; }
[data-compact-consent] .consent-copy a { white-space: nowrap; }
[data-compact-consent] .ads-consent-actions { display: flex; gap: 8px; margin-top: 10px; }
[data-compact-consent] .ads-consent-actions button {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px;
  font: 600 14px/1.3 system-ui, sans-serif;
  background: #f5f8fa; color: #183c57; border: 1px solid #a8bac8; border-radius: 7px;
}
[data-compact-consent] .ads-consent-actions button:hover { background: #e8f0f6; }
@media (max-width: 600px) {
  [data-ads-consent][data-compact-consent] {
    left: 10px; width: calc(100% - 20px); padding: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}
