#mp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity .25s ease;
}

#mp-popup-overlay.mp-hidden {
  display: none;
}

#mp-popup-overlay.mp-fade-out {
  opacity: 0;
}

#mp-popup {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  text-align: center;
  animation: mp-pop-in .3s ease;
}

@keyframes mp-pop-in {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#mp-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
}

#mp-popup-close:hover {
  color: #333;
}

#mp-popup .mp-badge {
  display: inline-block;
  background: #c00;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}

#mp-popup h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  color: #222;
}

#mp-popup .mp-text {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

#mp-popup .mp-field {
  margin-bottom: 12px;
}

#mp-popup #mp-email {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

#mp-popup #mp-email:focus {
  outline: none;
  border-color: #666;
}

#mp-popup #mp-email.mp-error {
  border-color: #c00;
}

#mp-popup .mp-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: #777;
  margin-bottom: 16px;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.4;
}

#mp-popup .mp-consent input {
  margin-top: 2px;
  flex-shrink: 0;
}

#mp-popup .mp-btn {
  width: 100%;
  background: #333;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

#mp-popup .mp-btn:hover:not(:disabled) {
  background: #000;
}

#mp-popup .mp-btn:disabled {
  opacity: .6;
  cursor: default;
}

#mp-popup .mp-message {
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

#mp-popup .mp-message.mp-hidden {
  display: none;
}

#mp-popup .mp-message.mp-success {
  background: #e8f5e9;
  color: #256029;
}

#mp-popup .mp-message.mp-fail {
  background: #fdecea;
  color: #a4232b;
}

#mp-popup .mp-small {
  margin: 0;
  font-size: 11px;
  color: #aaa;
  line-height: 1.4;
}

@media (max-width: 480px) {
  #mp-popup {
    padding: 26px 18px 18px;
  }
  #mp-popup h3 {
    font-size: 18px;
  }
  #mp-popup .mp-badge {
    font-size: 19px;
  }
}
