/*---=========================
  Premium Announcement Popups CSS
=========================---*/

/* Base wrapper and Magnific Popup override */
.popup-wrapper {
  display: none;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.mfp-inline-holder .mfp-content {
  text-align: center !important;
}

.mfp-content .popup-wrapper {
  display: inline-block !important;
  text-align: left;
  vertical-align: middle;
}

/* Custom Magnific close button */
.mfp-close-btn-in .mfp-close {
  color: #1e293b !important;
  background: #ffffff !important;
  opacity: 0.9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  position: absolute !important;
  right: 15px !important;
  top: 15px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-size: 24px;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.mfp-close-btn-in .mfp-close:hover {
  transform: scale(1.1);
  background: #f1f5f9 !important;
}

/* Common Typography & Buttons */
.popup_main-content {
  padding: 40px;
}

.popup_main-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.popup_main-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 24px;
}

.popup-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #00B67A;
  border: 1px solid #00B67A;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 182, 122, 0.3);
}

.popup-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 182, 122, 0.4);
  color: #ffffff;
}

/* Subscription Form */
.subscribe-form {
  margin-top: 20px;
}

.subscribe-form .form_control {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.subscribe-form .form_control:focus {
  border-color: #00B67A;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 182, 122, 0.15);
}

.subscribe-form .popup-main-btn {
  width: 100%;
  height: 52px;
}

/* --- POPUP TYPES --- */

/* Type 1: Image only */
.popup-one {
  max-width: 500px;
  padding: 0;
}

.popup-one .popup_main-content {
  padding: 0;
  line-height: 0;
}

.popup-one img {
  width: 100%;
  height: auto;
  display: block;
}

/* Type 2: Background Image + Centered Content */
.popup-two {
  max-width: 600px;
  text-align: center;
}

.popup-two .popup_main-content {
  padding: 60px 40px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.popup-two .popup_main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7); /* Fallback overlay */
  z-index: -1;
  border-radius: 24px;
}

/* Type 3, 4, 6: Split Layout (Left Image, Right Content) */
.popup-three, .popup-four, .popup-six {
  max-width: 800px;
}

.popup-three .popup_main-content,
.popup-four .popup_main-content,
.popup-six .popup_main-content {
  display: flex;
  padding: 0;
  align-items: stretch;
}

.popup-three .left-bg,
.popup-four .left-bg,
.popup-six .left-bg {
  width: 42%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
}

.popup-three .right-content,
.popup-four .right-content,
.popup-six .right-content {
  width: 58%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-three .right-content h1,
.popup-four .right-content h1,
.popup-six .right-content h1 {
  font-size: 28px;
}

/* Type 5: Background Image + Centered Content (Newsletter) */
.popup-five {
  max-width: 600px;
  text-align: center;
}

.popup-five .popup_main-content {
  padding: 60px 40px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.popup-five .popup_main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  z-index: -1;
  border-radius: 24px;
}

/* Type 7: Centered Countdown */
.popup-seven {
  max-width: 600px;
  text-align: center;
}

.popup-seven .popup_main-content {
  padding: 60px 40px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

/* Countdown Timer Styling */
.announcement-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 30px;
  gap: 12px;
}

.syotimer-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

.syotimer-cell__value {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.syotimer-cell__unit {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* Dark mode overrides for color schemas (Type 2, 5, 7 or colored backgrounds) */
.announcement-popup-item[data-type="2"] .popup_main-content h1,
.announcement-popup-item[data-type="2"] .popup_main-content p,
.announcement-popup-item[data-type="3"] .right-content h1,
.announcement-popup-item[data-type="3"] .right-content p,
.announcement-popup-item[data-type="5"] .popup_main-content h1,
.announcement-popup-item[data-type="5"] .popup_main-content p,
.announcement-popup-item[data-type="7"] .popup_main-content h1,
.announcement-popup-item[data-type="7"] .popup_main-content p {
  color: #ffffff;
}

.announcement-popup-item[data-type="2"] .syotimer-cell__value,
.announcement-popup-item[data-type="3"] .syotimer-cell__value,
.announcement-popup-item[data-type="5"] .syotimer-cell__value,
.announcement-popup-item[data-type="7"] .syotimer-cell__value {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.announcement-popup-item[data-type="2"] .syotimer-cell__unit,
.announcement-popup-item[data-type="3"] .syotimer-cell__unit,
.announcement-popup-item[data-type="5"] .syotimer-cell__unit,
.announcement-popup-item[data-type="7"] .syotimer-cell__unit {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsiveness */
@media (max-width: 768px) {
  .popup-three .popup_main-content,
  .popup-four .popup_main-content,
  .popup-six .popup_main-content {
    flex-direction: column;
  }

  .popup-three .left-bg,
  .popup-four .left-bg,
  .popup-six .left-bg {
    width: 100%;
    min-height: 250px;
  }

  .popup-three .right-content,
  .popup-four .right-content,
  .popup-six .right-content {
    width: 100%;
    padding: 30px;
  }

  .popup_main-content {
    padding: 30px;
  }

  .popup_main-content h1 {
    font-size: 22px;
  }

  .syotimer-cell {
    width: 60px;
  }

  .syotimer-cell__value {
    height: 52px;
    font-size: 20px;
    border-radius: 10px;
  }
}