/* ── Speedbump Modal — "Leaving Our Website" external link warning ── */

.speedbump-modal {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
  background-color: rgba(20, 21, 26, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.speedbump-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.speedbump-modal__content {
  width: 100%;
  max-width: 608px;
  max-height: 100%;
  overflow: auto;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  box-shadow:
    rgba(0, 0, 0, 0.03) 0px 0.9px 1.5px 0px,
    rgba(0, 0, 0, 0.08) 0px 3.1px 5.5px 0px,
    rgba(0, 0, 0, 0.12) 0px 14px 25px 0px;
  display: flex;
  flex-direction: column;
  transform: translateY(-30px);
  transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.speedbump-modal.is-visible .speedbump-modal__content {
  transform: translateY(0);
}

.speedbump-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background-color: rgb(219, 219, 220);
  flex-shrink: 0;
  border-radius: 5px 5px 0 0;
}

.speedbump-modal__title {
  font-size: 25px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: rgb(0, 158, 119);
  line-height: 30px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speedbump-modal__close-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgb(0, 158, 119);
  border: none;
  border-radius: 50%;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: 0.2s;
  box-shadow:
    rgba(0, 0, 0, 0.024) 0px 0.3px 0.4px 0px,
    rgba(0, 0, 0, 0.05) 0px 0.9px 1.5px 0px,
    rgba(0, 0, 0, 0.1) 0px 3.5px 6px 0px;
}

.speedbump-modal__close-btn:hover {
  opacity: 0.85;
}

.speedbump-modal__close-icon {
  width: 20px;
  height: 20px;
}

.speedbump-modal__body {
  padding: 15px 25px;
  flex-grow: 1;
  overflow: auto;
}

.speedbump-modal__body p {
  font-size: 20px;
  font-family: var(--font-primary);
  color: rgb(76, 79, 82);
  line-height: 28px;
  margin-bottom: 15px;
}

.speedbump-modal__body p:last-child {
  margin-bottom: 0;
}

.speedbump-modal__footer {
  padding: 15px 25px;
  background-color: rgb(255, 255, 255);
  flex-shrink: 0;
  box-shadow:
    rgba(0, 0, 0, 0.03) 0px 0.9px 1.5px 0px,
    rgba(0, 0, 0, 0.08) 0px 3.1px 5.5px 0px,
    rgba(0, 0, 0, 0.12) 0px 14px 25px 0px;
}

.speedbump-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.speedbump-modal__cancel-btn.btn--subtle {
  background-color: rgb(219, 219, 220);
  color: rgb(43, 46, 49);
  border: none;
  border-radius: 30px 0px 30px 30px;
  padding: 10px 29.6px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 20px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow:
    rgba(0, 0, 0, 0.06) 0px 0.1px 0.3px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 2px 0px;
}

.speedbump-modal__cancel-btn.btn--subtle:hover {
  background-color: rgb(200, 200, 201);
}

.speedbump-modal__continue-btn.btn--primary {
  border-radius: 30px 0px 30px 30px;
  padding: 10px 29.6px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 20px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow:
    rgba(0, 0, 0, 0.06) 0px 0.1px 0.3px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 2px 0px;
}

@media (max-width: 47.99rem) {
  .speedbump-modal__actions {
    flex-direction: column;
  }

  .speedbump-modal__cancel-btn,
  .speedbump-modal__continue-btn {
    width: 100%;
  }
}

body.modal-open {
  overflow: hidden;
}
