/* ============================================================
   Sticky Bottom CTA - mobile fixed footer CTA
   ============================================================ */

.sticky-bottom-cta {
  display: none;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9999;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 24px));
  padding: 8px;
  gap: 8px;
  align-items: center;
  grid-template-columns: 56px 56px minmax(0, 1fr);
  border: 1px solid rgba(210, 230, 238, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 34px rgba(0, 31, 83, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, calc(100% + 18px));
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

@media (max-width: 768px) {
  .sticky-bottom-cta {
    display: grid;
  }
}

.sticky-bottom-cta.is-visible {
  transform: translateX(-50%);
  opacity: 1;
}

.sticky-bottom-cta-btn {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.1s ease;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}

.sticky-bottom-cta-btn:active {
  transform: scale(0.96);
}

.sticky-bottom-cta-btn--phone,
.sticky-bottom-cta-btn--line {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: #fff !important;
}

.sticky-bottom-cta-btn--phone {
  background: #1e6ba8;
}

.sticky-bottom-cta-btn--line {
  background: #06c755;
}

.sticky-bottom-cta-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.sticky-bottom-cta-label {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.sticky-bottom-cta-btn--main {
  width: 100%;
  min-width: 0;
  height: 56px;
  background: #1e6ba8;
  color: #fff !important;
  font-size: clamp(13px, 3.8vw, 16px);
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 0 12px;
}

.sticky-bottom-cta-btn--main:hover {
  background: #155a91;
}

.sticky-bottom-cta-main-text {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.sticky-bottom-cta-main-arrow {
  flex: 0 0 auto;
  font-weight: 400;
  transition: transform 0.15s ease;
}

.sticky-bottom-cta-btn--main:hover .sticky-bottom-cta-main-arrow {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 360px) {
  .sticky-bottom-cta {
    width: calc(100vw - 18px);
    grid-template-columns: 50px 50px minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 16px;
  }

  .sticky-bottom-cta-btn--phone,
  .sticky-bottom-cta-btn--line,
  .sticky-bottom-cta-btn--main {
    height: 52px;
  }

  .sticky-bottom-cta-btn--phone,
  .sticky-bottom-cta-btn--line {
    width: 50px;
  }

  .sticky-bottom-cta-btn--main {
    padding: 0 9px;
    font-size: 13px;
  }
}
