/* Offer-page welcome popup — mirrors site FirstTimeModal styles for static creatives. */

body.locked {
  overflow: hidden !important;
}

.offer-popup-root {
  position: relative;
  z-index: 1000;
}

.offer-popup-root .firsttime-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: offer-popup-fade-in 0.2s ease both;
}

.offer-popup-root .firsttime-modal {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  background: var(--white, #ffffff);
  color: var(--black, #000000);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: offer-popup-pop-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.offer-popup-root .firsttime-modal--entry,
.offer-popup-root .firsttime-modal--email,
.offer-popup-root .firsttime-modal--success {
  max-width: 880px;
}

.offer-popup-root .firsttime-modal__media {
  position: relative;
  flex: 0 0 44%;
  min-height: 460px;
  background-color: #e8e8f0;
  background-size: cover;
  background-position: center;
}

.offer-popup-root .firsttime-modal__media[data-variant="v1"] {
  background-image: url("/assets/modal/firsttime_v1.jpg");
}

.offer-popup-root .firsttime-modal__media[data-variant="v2"] {
  background-image: url("/assets/modal/firsttime_v2.jpg");
}

.offer-popup-root .firsttime-modal__media[data-variant="v3"] {
  background-image: url("/assets/modal/firsttime_v3.jpg");
}

.offer-popup-root .firsttime-modal__media[data-variant="v4"] {
  background-image: url("/assets/modal/firsttime_v4.jpg");
}

.offer-popup-root .firsttime-modal__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.offer-popup-root .firsttime-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offer-popup-root .firsttime-modal__brand {
  font-family: var(--ff-body, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #555555;
}

.offer-popup-root .firsttime-modal__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: var(--white, #ffffff);
  color: #555555;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.offer-popup-root .firsttime-modal__icon-btn:hover {
  background: #f5f5f5;
  color: var(--black, #000000);
  border-color: #d4d4d4;
}

.offer-popup-root .firsttime-modal__icon-spacer {
  border-color: transparent;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.offer-popup-root .firsttime-modal__icon-btn svg {
  width: 18px;
  height: 18px;
}

.offer-popup-root .firsttime-modal__body {
  display: flex;
  flex: 1 1 auto;
  padding: 2.5rem 2.25rem;
}

.offer-popup-root .firsttime-modal__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.offer-popup-root .firsttime-modal__title {
  font-family: var(--ff-display, "Outfit", sans-serif);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0;
  text-transform: none;
}

.offer-popup-root .firsttime-modal__lead {
  font-family: var(--ff-body, "Inter", sans-serif);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.offer-popup-root .firsttime-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 2rem;
  margin-top: 0.5rem;
  border: 1px solid var(--black, #000000);
  border-radius: 0;
  background: var(--black, #000000);
  color: var(--white, #ffffff);
  font-family: var(--ff-body, "Inter", sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.offer-popup-root .firsttime-modal__cta:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.offer-popup-root .firsttime-modal__cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.offer-popup-root .firsttime-modal__skip {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  border: none;
  background: transparent;
  color: #737373;
  font-family: var(--ff-body, "Inter", sans-serif);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.offer-popup-root .firsttime-modal__skip:hover {
  color: var(--black, #000000);
}

.offer-popup-root .firsttime-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.offer-popup-root .firsttime-modal__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: var(--white, #ffffff);
  color: var(--black, #000000);
  font-family: var(--ff-body, "Inter", sans-serif);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.offer-popup-root .firsttime-modal__input:focus {
  outline: none;
  border-color: var(--black, #000000);
}

.offer-popup-root .firsttime-modal__error {
  color: #ef4444;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.offer-popup-root .firsttime-modal__intro--success {
  align-items: center;
  text-align: center;
}

.offer-popup-root .firsttime-modal__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #737373;
}

.offer-popup-root .firsttime-modal__ornament svg {
  width: 22px;
  height: 22px;
}

.offer-popup-root .firsttime-modal__ornament-line {
  width: 48px;
  height: 1px;
  background: #e5e5e5;
}

.offer-popup-root .firsttime-modal__tagline {
  font-family: var(--ff-body, "Inter", sans-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 0.95rem;
  color: #555555;
  margin: 0;
}

@keyframes offer-popup-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes offer-popup-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes offer-popup-sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px), (pointer: coarse) {
  .offer-popup-root .firsttime-modal__overlay {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }

  .offer-popup-root .firsttime-modal,
  .offer-popup-root .firsttime-modal--entry,
  .offer-popup-root .firsttime-modal--email,
  .offer-popup-root .firsttime-modal--success,
  .offer-popup-root .firsttime-modal--sheet {
    max-width: none;
    width: 100%;
    max-height: 50vh;
    max-height: 50dvh;
    flex-direction: column;
    overflow: hidden;
    animation: offer-popup-sheet-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .offer-popup-root .firsttime-modal__media {
    display: none;
  }

  .offer-popup-root .firsttime-modal__header {
    padding: 0.75rem 1rem;
  }

  .offer-popup-root .firsttime-modal__body {
    padding: 0.85rem 1.15rem 1.15rem;
    overflow: hidden;
  }

  .offer-popup-root .firsttime-modal__intro {
    gap: 0.55rem;
    justify-content: flex-start;
  }

  .offer-popup-root .firsttime-modal__title {
    font-size: 1.25rem;
  }

  .offer-popup-root .firsttime-modal__lead {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .offer-popup-root .firsttime-modal__cta {
    margin-top: 0.15rem;
    padding: 0.8rem 1.25rem;
  }

  .offer-popup-root .firsttime-modal__skip {
    margin-top: 0.15rem;
  }

  .offer-popup-root .firsttime-modal--success .firsttime-modal__ornament,
  .offer-popup-root .firsttime-modal--success .firsttime-modal__tagline {
    display: none;
  }
}
