/* Isolated calculator entry CTA. Does not style calculator application content. */
.chb-calc-entry {
  width: min(1140px, calc(100% - 40px));
  margin: 28px auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.chb-calc-entry__button {
  appearance: none;
  -webkit-appearance: none;
  width: min(100%, 360px);
  min-height: 64px;
  padding: 16px 28px;
  border: 0;
  border-radius: 10px;
  background: #16B4CF;
  color: #fff;
  font-family: var(--chb-font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(22, 180, 207, 0.20);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.chb-calc-entry__button:hover,
.chb-calc-entry__button:focus-visible {
  background: #129AB1;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(22, 180, 207, 0.26);
}

.chb-calc-entry__button:focus-visible {
  outline: 3px solid rgba(22, 180, 207, 0.24);
  outline-offset: 3px;
}

.chb-calc-entry--bottom {
  margin-top: 36px;
  margin-bottom: 42px;
}

.chb-calc-entry--sticky {
  display: none;
}

@media (max-width: 767px) {
  .chb-calc-entry {
    width: calc(100% - 32px);
    margin: 22px auto;
  }

  .chb-calc-entry__button {
    width: 100%;
    min-height: 58px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .chb-calc-entry--bottom {
    margin-top: 28px;
    margin-bottom: 34px;
  }

  .chb-calc-entry--sticky {
    --chb-sticky-visual-bottom: 0px;
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--chb-sticky-visual-bottom));
    width: auto;
    margin: 0;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, bottom 0.12s ease;
  }

  .chb-calc-entry--sticky.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .chb-calc-entry--sticky .chb-calc-entry__button {
    width: 100%;
    max-width: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
  }
}
