/* Newsletter subscribe modal + homepage sticky CTA */

.srp-sub-honeypot {
  position: absolute !important;
  left: -10000px !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}

.srp-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.srp-sub-overlay[hidden] {
  display: none !important;
}

.srp-sub-modal {
  position: relative;
  width: min(100%, 26rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: srp-sub-in 0.28s ease;
}

@keyframes srp-sub-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.srp-sub-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.5rem;
}

.srp-sub-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.srp-sub-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
}

.srp-sub-title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.srp-sub-text {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.srp-sub-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.srp-sub-input {
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  font-size: 1rem;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.srp-sub-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.srp-sub-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #ea580c;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
}

.srp-sub-submit:hover:not(:disabled) {
  background: #c2410c;
}

.srp-sub-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.srp-sub-decline {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.srp-sub-decline:hover {
  color: #0f172a;
}

.srp-sub-error {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: #b91c1c;
}

body.srp-sub-open {
  overflow: hidden;
}

/* Homepage sticky subscribe bar (replaces Amazon float on home) */
.srp-sub-sticky {
  display: none;
}

@media (max-width: 768px) {
  .srp-sub-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.92));
    border-top: 1px solid #e2e8f0;
  }

  .srp-sub-sticky__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
  }

  .srp-sub-sticky__btn:hover {
    background: #1e293b;
  }

  body.has-subscribe-sticky {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-subscribe-sticky .scroll-to-top {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
