:root {
  --mobile-cta-height: 62px;
}

.mobile-sticky-cta,
.floating-whatsapp {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bar.mobile-sticky-cta,
  .mobile-sticky-cta {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    height: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    gap: 7px;
    align-items: center;
    background: #071827;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -8px 28px rgba(2,9,17,.28);
  }

  .mobile-sticky-cta > a,
  .mobile-bar.mobile-sticky-cta > a {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    background: #102538;
    color: #fff;
    font: 800 11px/1 Manrope, Arial, sans-serif;
    letter-spacing: .45px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sticky-cta > a:last-child,
  .mobile-bar.mobile-sticky-cta > a:last-child {
    border-color: #ff5a1f;
    background: #ff5a1f;
    color: #fff;
  }

  .mobile-sticky-cta.is-emergency > a:first-child {
    border-color: #c72d26;
    background: #c72d26;
  }

  .mobile-sticky-cta svg,
  .mobile-sticky-cta img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .mobile-sticky-cta svg {
    fill: none;
    stroke: currentColor;
  }

  .mobile-sticky-cta .cta-short {
    display: none;
  }

  .floating-whatsapp {
    position: fixed;
    z-index: 999;
    right: 13px;
    bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom, 0px) + 12px);
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: #0a9f55;
    box-shadow: 0 9px 25px rgba(1,16,9,.3);
  }

  .floating-whatsapp img {
    display: block;
    width: 25px;
    height: 25px;
  }

  .floating-whatsapp.is-deferred {
    display: none;
  }

  .floating-whatsapp.is-deferred.is-visible {
    display: grid;
  }

  .mobile-input-active .mobile-sticky-cta,
  .mobile-input-active .floating-whatsapp {
    display: none !important;
  }

  .conversion-page .floating-whatsapp,
  .mobile-sticky-cta.is-emergency + .floating-whatsapp {
    display: none;
  }
}

@media (max-width: 350px) {
  .mobile-sticky-cta,
  .mobile-bar.mobile-sticky-cta {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 5px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .mobile-sticky-cta > a,
  .mobile-bar.mobile-sticky-cta > a {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
    letter-spacing: .2px;
  }

  .mobile-sticky-cta .cta-full {
    display: none;
  }

  .mobile-sticky-cta .cta-short {
    display: inline;
  }
}

/* Premium white mobile action dock. This final layer intentionally overrides
   older dark-bar rules while preserving each page's existing destinations. */
@media (max-width: 600px) {
  .mobile-bar.mobile-sticky-cta,
  .mobile-sticky-cta {
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #dce2e7;
    box-shadow: 0 -10px 32px rgba(7,24,39,.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-sticky-cta > a,
  .mobile-bar.mobile-sticky-cta > a {
    min-height: 50px;
    border: 1px solid #cfd8df;
    border-radius: 9px;
    background: #fff;
    color: #071827;
    box-shadow: 0 4px 14px rgba(7,24,39,.07);
    font-size: 11px;
    letter-spacing: .35px;
  }

  .mobile-sticky-cta > a:first-child,
  .mobile-bar.mobile-sticky-cta > a:first-child {
    border-color: #c7d1d9;
    background: #fff;
    color: #071827;
  }

  .mobile-sticky-cta > a:last-child,
  .mobile-bar.mobile-sticky-cta > a:last-child {
    border-color: #ff5a1f;
    background: #ff5a1f;
    color: #fff;
    box-shadow: 0 6px 17px rgba(255,90,31,.24);
  }

  .mobile-sticky-cta > a:active,
  .mobile-bar.mobile-sticky-cta > a:active {
    transform: translateY(1px);
    box-shadow: none;
  }

  .mobile-sticky-cta.is-emergency > a:first-child {
    border-color: #c72d26;
    background: #c72d26;
    color: #fff;
    box-shadow: 0 6px 17px rgba(199,45,38,.22);
  }

  .mobile-sticky-cta.is-quote > a:last-child {
    border-color: #0a9f55;
    background: #fff;
    color: #087b43;
    box-shadow: 0 4px 14px rgba(8,123,67,.1);
  }

  .mobile-sticky-cta.is-tire > a:first-child {
    border-color: #071827;
    color: #071827;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .floating-whatsapp {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 12px);
  }
}
