/* v5 popup — tam görünen, scroll’suz duyuru pencereleri */

.mfp-container {
  padding: 16px !important;
  box-sizing: border-box;
}

.mfp-content {
  max-height: 90vh;
  overflow: hidden !important;
}

.mfp-close-btn-in .mfp-close {
  color: #333;
  background: #fff;
  opacity: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 34px;
  right: 8px;
  top: 8px;
  z-index: 20;
}

.popup-wrapper {
  display: none;
  position: relative;
  width: min(860px, calc(100vw - 32px));
  max-width: 860px;
  max-height: 85vh;
  margin: 0 auto;
  background: #fff;
  overflow: hidden !important;
  border-radius: 12px;
  box-sizing: border-box;
}

.popup-wrapper img {
  max-width: 100%;
  display: block;
}

/* Type 1 — sadece görsel */
.popup-type-image,
.popup-image-only {
  max-height: 85vh;
  overflow: hidden;
}

.popup-full-img {
  width: 100%;
  max-height: 85vh;
  height: auto;
  object-fit: contain;
  display: block;
}

.popup_main-content h1 {
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.25;
  margin: 0 0 10px;
}

.popup_main-content p,
.popup_main-content h4 {
  margin: 0 0 14px;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.45;
}

.bg_cover,
.bg-cover {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* E-posta input — belirgin alan */
.popup-wrapper .form_control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  line-height: 50px;
  box-sizing: border-box;
  display: block;
  outline: 0;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff !important;
  border: 2px solid #cfd6e0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.popup-wrapper .form_control:focus {
  border-color: #4a6cf7 !important;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.18);
}

.popup-wrapper .form_control::placeholder {
  color: #8a94a6;
}

/* Ortak arka plan fotoğrafı — popup’ı doldurur, taşmaz */
.popup-one,
.popup-two,
.popup-five {
  position: relative;
  padding: clamp(20px, 3.5vw, 40px);
  overflow: hidden;
  max-height: 85vh;
}

.popup-one > .bg-img,
.popup-two > .bg-img,
.popup-five > .bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 0;
  margin: 0;
  padding: 0;
}

/* Type 2 — popup-one */
.popup-one .popup_main-content {
  position: relative;
  z-index: 1;
  text-align: center;
  background-color: rgba(69, 29, 83, 0.8);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 36px);
}

.popup-one .popup_main-content h1,
.popup-one .popup_main-content p {
  color: #fff;
}

.popup-one .popup_main-content .popup-main-btn {
  padding: 12px 36px;
  display: inline-block;
  color: #fff;
  border-radius: 40px;
  border: 1px solid #fff;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 700;
}

.popup-one .popup_main-content .popup-main-btn:hover,
.popup-one .popup_main-content .popup-main-btn:focus {
  background-color: #451d53;
  color: #fff;
  border-color: transparent;
}

/* Type 3 — popup-two (e-posta overlay) */
.popup-two .popup_main-content {
  position: relative;
  z-index: 1;
  text-align: center;
  background-color: rgba(255, 40, 101, 0.7);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 36px);
}

.popup-two .popup_main-content h1,
.popup-two .popup_main-content p {
  color: #fff;
}

.popup-two .popup_main-content .subscribe-form {
  padding: 0;
  max-width: 420px;
  margin: 0 auto;
}

.popup-two .popup_main-content .subscribe-form .form_group {
  margin-bottom: 12px;
}

.popup-two .popup_main-content .subscribe-form .popup-main-btn {
  width: 100%;
  border: 1px solid #fff;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.popup-two .popup_main-content .subscribe-form .popup-main-btn:hover,
.popup-two .popup_main-content .subscribe-form .popup-main-btn:focus {
  background-color: #ff2865;
  color: #fff;
  border-color: transparent;
}

/* Type 4/5/7 — split */
.popup-three .popup_main-content,
.popup-four .popup_main-content,
.popup-six .popup_main-content {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  background-color: #fff;
  min-height: 0;
  max-height: 85vh;
  overflow: hidden;
}

.popup-three .popup_main-content .left-bg,
.popup-four .popup_main-content .left-bg,
.popup-six .popup_main-content .left-bg {
  position: relative;
  width: 42%;
  flex: 0 0 42%;
  min-height: 300px;
  max-height: 85vh;
  overflow: hidden;
}

.popup-three .popup_main-content .left-bg .bg-img,
.popup-four .popup_main-content .left-bg .bg-img,
.popup-six .popup_main-content .left-bg .bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

.popup-three .popup_main-content .right-content,
.popup-four .popup_main-content .right-content {
  width: 58%;
  flex: 1 1 auto;
  padding: clamp(22px, 3.5vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.popup-three .popup_main-content .right-content .popup-main-btn {
  padding: 12px 36px;
  background-color: #ff2865;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 35px;
  display: inline-block;
  text-decoration: none;
  align-self: center;
}

.popup-four .popup_main-content .subscribe-form {
  padding: 0;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.popup-four .popup_main-content .subscribe-form .form_group {
  margin-bottom: 12px;
}

.popup-four .popup_main-content .subscribe-form .popup-main-btn {
  width: 100%;
  background-color: #f8960d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
}

/* Type 6 — countdown overlay */
.popup-five .popup_main-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(18px, 3vw, 32px);
}

.popup-five .popup_main-content h1,
.popup-five .popup_main-content h4 {
  color: #fff;
}

.popup-five .popup_main-content .popup-main-btn {
  padding: 12px 28px;
  display: inline-block;
  color: #fff;
  background-color: #29a19c;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
}

/* Type 7 — countdown split */
.popup-six .popup_main-content {
  position: relative;
  min-height: 300px;
}

.popup-six .popup_main-content .left-bg {
  width: 45%;
  flex: 0 0 45%;
}

.popup-six .popup_main-content .right-content {
  background-color: #930077;
  width: 55%;
  flex: 1 1 auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(14px, 2.5vw, 24px);
  text-align: center;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.popup-six .popup_main-content .right-content h1,
.popup-six .popup_main-content h4 {
  color: #fff;
}

.popup-six .popup_main-content .right-content .popup-main-btn {
  padding: 12px 28px;
  display: inline-block;
  color: #fff;
  background-color: #494949;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  align-self: center;
}

/* Countdown */
.popup-wrapper .syotimer__body {
  max-width: 360px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.popup-wrapper .syotimer-cell {
  flex: 1 1 22%;
  min-width: 60px;
  padding: 0 4px;
}

.popup-wrapper .syotimer-cell__value {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f3a52;
  border-radius: 10px;
  font-size: clamp(20px, 2.8vw, 28px);
  color: #fff;
  margin-bottom: 6px;
  border: 0;
}

.popup-wrapper .syotimer-cell__value:after {
  content: none;
}

.popup-wrapper .syotimer-cell__unit {
  font-size: 12px;
  color: #fff;
  text-transform: capitalize;
}

.floating-btns {
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 402;
}

.floating-btns .floating-wpp,
.floating-wpp:not(.whatsapp-btn-1) {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.telegram-btn,
.facebook-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 100;
}

.telegram-btn img,
.facebook-btn img {
  width: 60px;
  height: 60px;
}

@media (max-width: 767px) {
  .popup-wrapper {
    width: calc(100vw - 24px);
    max-height: 82vh;
  }

  .popup-three .popup_main-content,
  .popup-four .popup_main-content,
  .popup-six .popup_main-content {
    flex-direction: column;
    max-height: 82vh;
  }

  .popup-three .popup_main-content .left-bg,
  .popup-four .popup_main-content .left-bg,
  .popup-six .popup_main-content .left-bg {
    width: 100%;
    flex: 0 0 auto;
    min-height: 140px;
    max-height: 180px;
  }

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

  .popup-one,
  .popup-two,
  .popup-five {
    padding: 14px;
  }

  .popup-wrapper .syotimer-cell {
    flex: 1 1 45%;
  }
}
