/* Email Popup Modal Styles */
.email-popup-overlay {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.40);
  z-index: 700010001;
}

.email-popup-modal {
  width: 345px;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: #000;
  position: relative;
  overflow-y: auto;
  animation: emailPopupFadeInUpSubtle 0.5s ease-out;
}

@media (min-width: 1024px) {
  .email-popup-modal {
    width: 800px;
    height: 600px;
    flex-direction: row;
    overflow: hidden;
  }
}

.email-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  opacity: 0.65;
  padding: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
}

.email-popup-close:hover {
  opacity: 1;
}

@media (min-width: 1024px) {
  .email-popup-close {
    top: 18px;
    right: 18px;
  }
}

.email-popup-image-section {
  width: 100%;
  height: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-image: url('/images/alpine/popup-bg-mobile.webp');
  position: relative;
}


@media (min-width: 1024px) {
  .email-popup-image-section {
    width: 50%;
    height: 100%;
    background-image: url('/images/alpine/popup-bg-desktop.webp');
    justify-content: flex-start;
    padding-top: 60px;
  }
}

.email-popup-logo {
  width: 160px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .email-popup-logo {
    width: 240px;
    margin-bottom: 30px;
  }
}

/* Logo in form section (above title) */
.email-popup-form-logo {
  width: 160px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .email-popup-form-logo {
    width: 200px;
    margin-bottom: 20px;
  }
}

.email-popup-form-section {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

@media (min-width: 1024px) {
  .email-popup-form-section {
    width: 50%;
    height: 100%;
    justify-content: center;
  }
}

.email-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.email-popup-title {
  color: #fff;
  font-family: 'Recursive', sans-serif;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.25em;
  margin: 0 0 10px 0;
}

@media (min-width: 1024px) {
  .email-popup-title {
    font-size: 44px;
  }
}

.email-popup-subtitle {
  color: #fff;
  font-family: 'Recursive', sans-serif;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

@media (min-width: 1024px) {
  .email-popup-subtitle {
    font-size: 16px;
    margin-top: 8px;
  }
}

.email-popup-form-wrapper {
  width: 280px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: emailPopupFadeInUpSubtle 0.3s ease-out 0.2s both;
}

@media (min-width: 1024px) {
  .email-popup-form-wrapper {
    width: 300px;
    margin-top: 28px;
  }
}

.email-popup-input {
  width: 100%;
  height: auto;
  padding: 16px 20px;
  border: 1px solid rgba(243, 144, 2, 1.00);
  border-style: solid;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  font-family: 'Recursive', sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

.email-popup-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.email-popup-input:focus {
  outline: none;
  border-color: #f39002;
}

.email-popup-button {
  width: 100%;
  padding: 18px 24px;
  background-color: rgba(243, 144, 2, 1.00);
  border: 2px solid rgba(243, 144, 2, 1.00);
  color: #fff;
  font-size: 18px;
  font-family: 'Recursive', sans-serif;
  font-weight: 800;
  text-transform: capitalize;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.5s ease;
  box-sizing: border-box;
}

.email-popup-button:hover {
  background: rgba(63, 29, 93, 0.00);
  color: rgba(243, 144, 2, 1.00);
}

.email-popup-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.email-popup-back-wrapper {
  width: 180px;
  margin-top: 30px;
  animation: emailPopupFadeIn 0.3s ease-out 2s both;
}

.email-popup-back-btn {
  margin-top: 0;
}

.email-popup-coupon {
  margin-top: 16px;
  padding: 16px 20px;
  border: 4px dashed rgba(243, 144, 2, 1.00);
  background-color: #fff;
}

@media (min-width: 1024px) {
  .email-popup-coupon {
    margin-top: 20px;
    padding: 18px 20px;
  }
}

.email-popup-code {
  color: #000;
  font-family: 'Recursive', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.email-popup-success .email-popup-form-section {
  justify-content: center;
}

.email-popup-success .email-popup-image-section {
  padding-bottom: 30px;
}

.email-popup-new-user-text {
  color: #fff;
  font-family: 'Recursive', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .email-popup-new-user-text {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .email-popup-success .email-popup-image-section {
    padding-top: 80px;
    padding-bottom: 0;
    justify-content: center;
    align-items: center;
  }

  .email-popup-success .email-popup-logo {
    margin-top: 0;
  }
}

.email-popup-form-wrapper .error_message {
  color: #ff0000;
  font-size: 12px;
  margin-top: 5px;
  width: 100%;
}

@keyframes emailPopupFadeInUpSubtle {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emailPopupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.email-popup-input.has_error {
  border-color: #A82A2A !important;
}