/*
 * Exit-intent popup -- SEO Hub #13522.
 *
 * Standalone rather than compiled into main.min.css because the WordPress blog
 * uses this popup too and does not load the Laravel bundle. One file, two
 * consumers: resources/views/sections/popup-exit.blade.php and
 * public/blog/wp-content/mu-plugins/scanwp-exit-popup.php.
 *
 * Behaviour lives in public/js/exit-popup.js. Change both together.
 */

.exit-popup-backdrop{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.55);
  z-index: 10001;
}
.exit-popup-backdrop.is-open{
  display: block;
}

.exit-popup{
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  z-index: 10002;
  text-align: center;
}
.exit-popup.is-open{
  display: block;
}

.exit-popup-inner{
  padding: 40px 32px 32px;
}

.exit-popup-close{
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  color: #999;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.exit-popup-close:hover,
.exit-popup-close:focus{
  color: #333;
}

.exit-popup-eyebrow{
  margin: 0 0 8px;
  color: #ff5722;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.exit-popup-title{
  margin: 0 0 16px;
  color: #333;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.exit-popup-text{
  margin: 0 0 20px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.exit-popup-coupon{
  margin: 0 0 20px;
  padding: 12px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  color: #777;
  font-size: 15px;
}
.exit-popup-code{
  color: #333;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}

.exit-popup-cta{
  display: block;
  padding: 15px 20px;
  background-color: #ff5722;
  border-radius: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.exit-popup-cta:hover,
.exit-popup-cta:focus{
  background-color: #e64a19;
  color: #fff;
  text-decoration: none;
}

.exit-popup-secondary{
  display: inline-block;
  margin-top: 16px;
  color: #00adb5;
  font-size: 14px;
  text-decoration: underline;
}

/* The backdrop covers the page, so let the popup own the scrolling. */
body.exit-popup-open{
  overflow: hidden;
}

@media (max-width: 480px){
  .exit-popup-inner{
    padding: 36px 20px 24px;
  }
  .exit-popup-title{
    font-size: 22px;
  }
  .exit-popup-text{
    font-size: 15px;
  }
}
