/* === Exit Pop Overlay ===
 * Design based on the old CMS Exitpop.vue component.
 * Two-column layout on desktop (content left, product right),
 * single column on mobile with product image shown inline.
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Overlay backdrop */
.ep-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999999;
  overflow: auto;
  display: none;
}

.ep-overlay.ep-visible {
  display: block;
}

/* Centering container */
.ep-container {
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Modal box */
.ep-outer {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 920px;
  background: #fff;
  position: relative;
  border-radius: 25px;
  border: 2px solid #0c64c5;
  overflow: hidden;
}

/* Close button */
.ep-close {
  position: absolute;
  z-index: 99;
  right: 15px;
  top: 15px;
  font-size: 18px;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #282828;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  font-family: sans-serif;
  border: none;
}

/* Body layout: two columns */
.ep-body {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Left column: content */
.ep-left {
  width: 55%;
  text-align: center;
  padding: 30px 30px 35px;
}

/* "WAIT!" or similar header text — not used in current data but kept for future */
.ep-text1 {
  font-size: 68px;
  line-height: 72px;
  color: #ff0000;
  font-weight: 900;
  text-transform: uppercase;
}

/* Divider with centered label */
.ep-divider {
  height: 3px;
  margin: 25px 0;
  border-bottom: 3px solid #ddd;
}

.ep-divider span {
  display: inline-block;
  vertical-align: middle;
  padding: 0 13px;
  background: #fff;
  font-size: 23px;
  line-height: 30px;
  color: #191919;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: -20px;
  letter-spacing: 1px;
}

/* Large discount text */
.ep-discount {
  font-size: 110px;
  line-height: 100px;
  color: #ff0000;
  font-weight: bold;
  padding-bottom: 15px;
  border-bottom: 3px solid #c7c7c7;
  font-family: 'Bebas Neue', sans-serif;
  font-style: italic;
}

/* Coupon label */
.ep-coupon-label {
  font-size: 21px;
  line-height: 30px;
  color: #262626;
  margin-top: 25px;
}

/* Coupon code box */
.ep-coupon {
  display: inline-block;
  vertical-align: top;
  width: 265px;
  border: 3px dashed #0a0a0a;
  font-size: 35px;
  line-height: 50px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 15px;
  letter-spacing: 1.5px;
}

/* CTA button */
.ep-cta {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 375px;
  height: 67px;
  line-height: 67px;
  font-size: 26px;
  color: #fff;
  text-transform: uppercase;
  margin-top: 30px;
  font-weight: 900;
  border-radius: 50px;
  box-shadow: 0px 3px 3px 1px rgba(0, 0, 0, 0.2);
  text-shadow: 2px 2px #2a8b3a;
  background: #1fc862;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Arrow circle icon after button text */
.ep-cta-arrow {
  display: inline-block;
  width: 27px;
  height: 27px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-left: 10px;
}

.ep-cta-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.ep-cta:hover {
  background: #1ab856;
}

/* Right column: product image */
.ep-right {
  width: 45%;
  background: #f4f9ff;
  padding: 50px 20px;
  text-align: center;
}

/* Product image */
.ep-prod {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

/* Mobile product image (hidden on desktop, shown on mobile) */
.ep-show-mobile {
  display: none;
}

/* === Mobile (<= 910px) === */
@media only screen and (max-width: 910px) {
  .ep-right {
    display: none;
  }

  .ep-show-mobile {
    display: block;
  }

  .ep-container {
    padding: 20px 0;
  }

  .ep-outer {
    width: calc(100% - 20px);
    max-width: 400px;
  }

  .ep-left {
    width: 100%;
    padding: 20px 15px 20px;
  }

  .ep-text1 {
    font-size: 44px;
    line-height: 44px;
  }

  .ep-divider {
    margin: 20px 0;
  }

  .ep-divider span {
    padding: 0 13px;
    font-size: 16px;
    line-height: 22px;
    margin-top: -17px;
  }

  .ep-discount {
    font-size: 70px;
    line-height: 60px;
    padding-bottom: 10px;
  }

  .ep-coupon-label {
    font-size: 20px;
    line-height: 26px;
    margin-top: 10px;
  }

  .ep-coupon {
    width: 240px;
    font-size: 30px;
    line-height: 46px;
  }

  .ep-cta {
    font-size: 22px;
    margin-top: 25px;
  }

  .ep-prod {
    width: 160px;
    margin-top: 10px;
  }

  .ep-close {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    right: 10px;
    top: 10px;
  }
}
