.newsletter-modal-open { overflow: hidden; }

.newsletter-modal[hidden] { display: none; }

.newsletter-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }

.newsletter-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.48); backdrop-filter: blur(2px); }

.newsletter-modal__dialog { position: relative; width: min(100%, 520px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28); color: #222; }

.newsletter-modal__header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 21px; border-bottom: 1px solid #ececec; }

.newsletter-modal__header h2 { margin: 0; font-size: 22px; font-weight: 600; }

.newsletter-modal__close { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #8b8b8b; font-size: 26px; line-height: 1; cursor: pointer; }

.newsletter-modal__email { display: flex; align-items: center; gap: 15px; margin: 20px 21px 0; padding: 15px; border: 1px solid #edf0f4; border-radius: 14px; background: #fafbfc; color: #1f2937; }

.newsletter-modal__email-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 8px; background: #eef1f5; color: #65748b; }

.newsletter-modal__email-icon svg { width: 21px; height: 21px; }

.newsletter-modal__email div { display: grid; gap: 1px; min-width: 0; }

.newsletter-modal__email span:not(.newsletter-modal__email-icon) { color: #94a3b8; font-size: 13px; font-weight: 600; }

.newsletter-modal__email strong { overflow: hidden; color: #334155; font-size: 17px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.newsletter-modal__content { padding: 20px 21px 15px; }

.newsletter-modal__content h3 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }

.newsletter-modal__content ul { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; color: #666; font-size: 15px; }

.newsletter-modal__content li::before { content: '✓'; display: inline-grid; width: 19px; height: 19px; margin-right: 9px; place-items: center; border: 1px solid #6bc295; border-radius: 50%; color: #45a976; font-size: 13px; }

.newsletter-modal__consent { display: flex; align-items: flex-start; gap: 12px; padding: 17px 15px; border: 1px solid #e9e9e9; border-radius: 9px; background: #fafafa; color: #656565; font-size: 15px; line-height: 1.5; cursor: pointer; }

.newsletter-modal__consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #222; }

.newsletter-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 21px 23px; border-top: 1px solid #f0f0f0; }

.newsletter-modal__actions button { height: 52px; border-radius: 9px; font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }

.newsletter-modal__cancel { border: 1px solid #e4e4e4; background: #fff; color: #444; }

.newsletter-modal__confirm { border: 1px solid #222; background: #222; color: #fff; }

.newsletter-modal__confirm:disabled { border-color: #a5a5a5; background: #a5a5a5; cursor: default; }

@media (max-width: 560px) {
  .newsletter-modal { padding: 14px; }
  .newsletter-modal__header { min-height: 54px; padding: 0 16px; }
  .newsletter-modal__header h2 { font-size: 16px; }
  .newsletter-modal__email { margin: 16px 16px 0; padding: 13px; }
  .newsletter-modal__content { padding: 16px; }
  .newsletter-modal__actions { padding: 13px 16px 16px; }
}

.newsletter__form { position: relative; }

img {
  -webkit-user-drag: none;
  user-select: none;
}

.newsletter-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 14px 26px;
  border-radius: 9999px;
  background: #222222;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 3000;
}

.newsletter-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.newsletter-toast__icon svg {
  width: 100%;
  height: 100%;
}

.newsletter-toast__text {
  min-width: 0;
}

.newsletter-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .newsletter-toast {
    bottom: 32px;
    left: 16px;
    right: 16px;
    transform: translateY(20px);
    max-width: none;
    padding: 12px 20px;
    font-size: 12px;
  }

  .newsletter-toast.is-visible {
    transform: translateY(0);
  }
}
