/* ── UniSender Subscribe Popup ── */
#us-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 28px rgba(26,106,173,0.18), 0 1px 4px rgba(0,0,0,0.07);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.22,1,.36,1), opacity 0.25s ease;
}
#us-popup.us-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.us-accent {
  height: 4px;
  width: 100%;
  background: #1a6aad;
}
#us-popup-inner {
  padding: 1.4rem 1.6rem 1.6rem;
}
#us-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #bbb;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
#us-close:hover { color: #1a6aad; background: #e8f2fb; }
#us-popup h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0 0 0.3rem;
  padding-right: 1.5rem;
  text-transform: none;
  letter-spacing: normal;
}
#us-popup .us-sub {
  font-size: 15px;
  color: #7a90a4;
  margin: 0 0 1.2rem;
  line-height: 1.45;
}
.us-field { margin-bottom: 0.8rem; }
.us-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0b4c4;
  margin-bottom: 0.35rem;
}
.us-field input {
  width: 100%;
  font-size: 14px;
  padding: 9px 13px;
  border: 1px solid #d0dce8;
  border-radius: 6px;
  background: #f4f8fc;
  color: #1a2a3a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.us-field input:focus {
  border-color: #1a6aad;
  box-shadow: 0 0 0 3px rgba(26,106,173,0.1);
  background: #fff;
}

/* ── Кастомный чекбокс ── */
.us-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.us-consent input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.us-checkbox {
  display: inline-block;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1.5px solid #b0c4d4;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.us-checkbox.us-checked {
  background: #1a6aad;
  border-color: #1a6aad;
}
.us-checkbox.us-checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.us-consent-text {
  font-size: 11px;
  color: #a0b4c4;
  line-height: 1.55;
  cursor: pointer;
}
.us-consent-text a {
  color: #1a6aad;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#us-submit {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #1a6aad;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
  -webkit-appearance: none;
  appearance: none;
}
#us-submit:hover { background: #155d99; }
#us-submit:active { transform: scale(0.98); }
#us-submit:disabled { opacity: 0.45; cursor: default; }
#us-msg {
  font-size: 11px;
  margin-top: 0.5rem;
  min-height: 14px;
  color: #a0b4c4;
}
#us-msg.err { color: #c0392b; }
#us-msg.ok  { color: #27ae60; }
#us-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.us-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d0dce8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  animation: us-pop 0.4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes us-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.us-check svg { width: 18px; height: 18px; }
#us-success h3 { font-size: 15px; font-weight: 700; color: #1a2a3a; margin: 0 0 0.25rem; }
#us-success p  { font-size: 13px; color: #7a90a4; margin: 0; }

@media (max-width: 440px) {
  #us-popup { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
