.time-newsletter-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(10, 10, 10, 0.56);
}

.time-newsletter-overlay[hidden] {
  display: none;
}

body.time-newsletter-open {
  overflow: hidden;
}

.time-newsletter-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 42px 40px 34px;
  border: 1px solid #000000;
  border-top: 4px solid #FFD2D2;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.time-newsletter-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

.time-newsletter-close:hover,
.time-newsletter-close:focus-visible {
  background: #FFD2D2;
  outline: none;
}

.time-newsletter-eyebrow {
  margin: 0 0 14px;
  color: #767676;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.time-newsletter-title {
  margin: 0 42px 16px 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.time-newsletter-copy {
  margin: 0 0 28px;
  color: #767676;
  font-size: 15px;
  line-height: 1.65;
}

.time-newsletter-label {
  display: block;
  color: #767676;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.time-newsletter-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #000000;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  font: inherit;
}

.time-newsletter-input:focus {
  border-bottom-color: #767676;
  outline: 2px solid #FFD2D2;
  outline-offset: 4px;
}

.time-newsletter-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.time-newsletter-primary,
.time-newsletter-secondary {
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid #000000;
  border-radius: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.time-newsletter-primary {
  background: #000000;
  color: #FFFFFF;
}

.time-newsletter-secondary {
  background: #FFFFFF;
  color: #000000;
}

.time-newsletter-primary:hover,
.time-newsletter-primary:focus-visible,
.time-newsletter-secondary:hover,
.time-newsletter-secondary:focus-visible {
  border-color: #FFD2D2;
  background: #FFD2D2;
  color: #000000;
  outline: none;
}

.time-newsletter-primary:disabled,
.time-newsletter-secondary:disabled {
  cursor: wait;
  opacity: 0.55;
}

.time-newsletter-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #000000;
  font-size: 13px;
  line-height: 1.5;
}

.time-newsletter-status[data-kind="error"] {
  padding-left: 10px;
  border-left: 3px solid #000000;
}

.time-newsletter-status[data-kind="success"] {
  padding: 12px;
  background: #FFD2D2;
}

.time-newsletter-consent {
  margin: 18px 0 0;
  color: #767676;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .time-newsletter-overlay {
    align-items: flex-start;
    padding: 14px;
  }

  .time-newsletter-dialog {
    max-height: calc(100dvh - 28px);
    margin: auto 0;
    padding: 38px 22px 26px;
  }

  .time-newsletter-title {
    font-size: 32px;
  }
}
