.offer-popup {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
  overscroll-behavior: contain;
  font-family: "Noto Sans Clinicana", "Noto Sans", Arial, Helvetica, sans-serif;
}

html.offer-popup-page-locked,
body.offer-popup-page-locked {
  overscroll-behavior: none;
}

.offer-popup,
.offer-popup * {
  box-sizing: border-box;
}

.offer-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.offer-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 24, .72);
  opacity: 0;
  transition: opacity .36s ease;
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
}

.offer-popup.is-open .offer-popup__backdrop {
  opacity: 1;
}

.offer-popup__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(320px, 1fr);
  width: min(940px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  max-height: min(720px, calc(100dvh - 48px));
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(3, 20, 34, .28);
  transform: translateY(14px);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.offer-popup__panel--form-only {
  grid-template-columns: minmax(320px, 520px);
  width: min(520px, 100%);
}

.offer-popup.is-open .offer-popup__panel {
  transform: translateY(0);
}

.offer-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(26, 28, 30, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1a1c1e;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(3, 20, 34, .12);
}

.offer-popup__close span,
.offer-popup__close span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.offer-popup__close span {
  transform: rotate(45deg);
}

.offer-popup__close span::after {
  content: "";
  transform: rotate(90deg);
}

.offer-popup__media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #0c5dae;
  border-radius: 16px 0 0 16px;
}

.offer-popup__picture,
.offer-popup__image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
}

.offer-popup__image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.018);
  will-change: opacity, transform;
}

.offer-popup.is-open .offer-popup__image {
  animation: offer-popup-image-settle .7s cubic-bezier(.22, 1, .36, 1) both;
}

.offer-popup__content {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 520px;
  max-height: inherit;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  padding: 54px 44px 40px;
  background: #fff;
  border-radius: 0 16px 16px 0;
  color: #1a1c1e;
}

.offer-popup__panel--form-only .offer-popup__content {
  border-radius: 16px;
}

.offer-popup__form-view,
.offer-popup__success {
  width: 100%;
  min-width: 0;
}

.offer-popup__form-view > * {
  opacity: 1;
  transform: none;
}

.offer-popup__eyebrow {
  margin: 0 0 8px;
  color: #2b8fc2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-popup__title {
  margin: 0 0 10px;
  color: #1a1c1e;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.offer-popup__intro {
  margin: 0 0 24px;
  color: #52616d;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.offer-popup__form {
  display: block;
}

.offer-popup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.offer-popup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.offer-popup__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.offer-popup__field > span {
  color: #52616d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.offer-popup__field > input:not([type="hidden"]),
.offer-popup__country-btn {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #f8fafb;
  color: #1a1c1e;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.offer-popup__field > input:not([type="hidden"]):focus,
.offer-popup__country-btn:focus {
  border-color: #3ba5dc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 165, 220, .14);
}

.offer-popup__field.is-invalid > input:not([type="hidden"]),
.offer-popup__field.is-invalid .offer-popup__country-btn,
.offer-popup__field.is-invalid .sf-phone-row {
  border-color: #d64747;
  background: #fff8f8;
}

.offer-popup__country-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.offer-popup__country-btn-flag {
  display: none;
  flex: 0 0 24px;
  width: 24px;
  font-size: 20px;
  line-height: 1;
}

.offer-popup__country-btn.has-value .offer-popup__country-btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-popup__country-btn-flag img,
.offer-popup__country-list .sf-country-item__flag img,
.offer-popup__code-list .sf-country-item__flag img,
.offer-popup__phone-prefix .sf-phone-prefix__flag img {
  width: 24px;
  height: 18px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.offer-popup__country-btn-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #1a1c1e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-popup__country-btn:not(.has-value) .offer-popup__country-btn-text {
  color: #9aa3aa;
}

.offer-popup__country-btn-arrow {
  flex: 0 0 auto;
  color: #52616d;
}

.offer-popup__country-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow: hidden;
  padding: 10px 0 6px;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(3, 20, 34, .16);
  animation: offer-popup-picker-in .2s cubic-bezier(.16, 1, .3, 1) both;
}

.offer-popup__country-picker[hidden] {
  display: none;
}

.offer-popup__country-picker.is-above {
  top: auto;
  bottom: calc(100% + 8px);
}

.offer-popup__country-picker .sf-country-search {
  flex: 0 0 auto;
  margin: 0 12px 8px;
}

.offer-popup__country-list {
  max-height: 210px;
  padding: 0 6px;
}

.offer-popup__country-list .sf-country-item,
.offer-popup__code-list .sf-country-item {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
}

.offer-popup__country-list .sf-country-item__flag,
.offer-popup__code-list .sf-country-item__flag {
  display: inline-flex;
  justify-content: center;
  width: 24px;
  flex: 0 0 24px;
}

.offer-popup__phone-row {
  width: 100%;
  min-width: 0;
  height: 48px;
  border-width: 1px;
  border-color: #dce4ea;
  border-radius: 8px;
  background: #f8fafb;
  overflow: hidden;
}

.offer-popup__phone-row:focus-within {
  border-color: #3ba5dc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 165, 220, .14);
}

.offer-popup__phone-prefix {
  flex: 0 0 auto;
  min-width: 82px;
  height: 100%;
  border-color: #dce4ea;
}

.offer-popup__country-btn.is-updated,
.offer-popup__phone-prefix.is-updated {
  animation: offer-popup-control-pop .28s cubic-bezier(.16, 1, .3, 1);
}

.offer-popup__phone-row .sf-phone-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 46px;
  font-size: 15px;
}

.offer-popup__code-picker {
  top: calc(100% + 8px);
  max-height: 280px;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(3, 20, 34, .16);
  animation: offer-popup-picker-in .2s cubic-bezier(.16, 1, .3, 1) both;
}

.offer-popup__code-picker[hidden] {
  display: none;
}

.offer-popup__code-picker.is-above {
  top: auto;
  bottom: calc(100% + 8px);
}

.offer-popup__message {
  min-height: 20px;
  margin: 10px 0 12px;
  color: #d64747;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

.offer-popup__submit,
.offer-popup__mobile-cta {
  width: 100%;
  height: 60px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(115deg, #88eaff, #6fbaff 50%, #6fbaff 70%, #88eaff 110%);
  background-size: 200%;
  color: #1a1c1e;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(111, 186, 255, .28);
  transition: background-position .7s, box-shadow .25s ease, transform .25s ease, opacity .2s ease;
}

.offer-popup__mobile-cta {
  display: none;
}

.offer-popup__submit:hover,
.offer-popup__mobile-cta:hover {
  background-position: 100% 0;
  box-shadow: 0 22px 44px rgba(111, 186, 255, .36);
  transform: translateY(-1px);
}

.offer-popup__submit:active,
.offer-popup__mobile-cta:active {
  transform: translateY(0);
}

.offer-popup__submit:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
}

.offer-popup__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 28, 30, .25);
  border-top-color: #1a1c1e;
  border-radius: 50%;
  animation: offer-popup-spin .75s linear infinite;
}

.offer-popup__success {
  align-self: center;
  text-align: center;
}

.offer-popup__success > * {
  opacity: 0;
  transform: translateY(12px);
}

.offer-popup__success.is-visible > * {
  animation: offer-popup-content-in .42s cubic-bezier(.16, 1, .3, 1) both;
}

.offer-popup__success.is-visible h2 {
  animation-delay: .08s;
}

.offer-popup__success.is-visible p {
  animation-delay: .14s;
}

.offer-popup__success-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #16a36a;
  color: #fff;
}

.offer-popup__success.is-visible .offer-popup__success-icon {
  animation: offer-popup-success-pop .58s cubic-bezier(.16, 1, .3, 1) both;
}

.offer-popup__success h2 {
  margin: 0 0 10px;
  color: #1a1c1e;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.offer-popup__success p {
  margin: 0;
  color: #52616d;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

html[dir="rtl"] .offer-popup__close {
  right: auto;
  left: 14px;
}

@keyframes offer-popup-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes offer-popup-panel-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes offer-popup-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes offer-popup-image-settle {
  to {
    transform: scale(1);
  }
}

@keyframes offer-popup-control-pop {
  0% {
    transform: scale(1);
  }
  48% {
    transform: scale(1.018);
    box-shadow: 0 0 0 3px rgba(136, 234, 255, .22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes offer-popup-success-pop {
  0% {
    opacity: 0;
    transform: scale(.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes offer-popup-picker-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-popup,
  .offer-popup *,
  .offer-popup *::before,
  .offer-popup *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .offer-popup__panel,
  .offer-popup__image,
  .offer-popup__form-view > *,
  .offer-popup__success > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .offer-popup {
    align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .offer-popup__panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(440px, calc(100vw - 28px));
    max-height: none;
    margin: auto 0;
    border-radius: 18px;
  }

  .offer-popup__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 16px 16px 0 0;
  }

  .offer-popup__image {
    min-height: 0;
  }

  .offer-popup__picture {
    min-height: 0;
  }

  .offer-popup__content {
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 26px 20px 22px;
    overflow: visible;
    border-radius: 0 0 16px 16px;
  }

  .offer-popup__form,
  .offer-popup__grid,
  .offer-popup__field,
  .offer-popup__submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .offer-popup__form {
    display: none;
  }

  .offer-popup__mobile-cta {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .offer-popup__title {
    font-size: 23px;
    line-height: 1.22;
  }

  .offer-popup__eyebrow,
  .offer-popup__title,
  .offer-popup__intro {
    text-align: center;
  }

  .offer-popup__field > input:not([type="hidden"]),
  .offer-popup__country-btn,
  .offer-popup__country-search,
  .offer-popup__code-search,
  .offer-popup__phone-row .sf-phone-input {
    font-size: 16px;
  }

  .offer-popup__intro {
    margin-bottom: 18px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .offer-popup {
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .offer-popup__panel {
    width: min(390px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    min-height: 0;
    margin: 0 auto;
    border-radius: 18px;
  }

  .offer-popup__media {
    aspect-ratio: 4 / 3;
    border-radius: 18px 18px 0 0;
  }

  .offer-popup__content {
    padding: 22px 16px 20px;
    border-radius: 0 0 18px 18px;
  }

  .offer-popup__title {
    font-size: 22px;
  }

  .offer-popup__field > input:not([type="hidden"]),
  .offer-popup__country-btn,
  .offer-popup__phone-row {
    height: 46px;
  }

  .offer-popup__phone-row .sf-phone-input {
    height: 44px;
  }

  .offer-popup__submit,
  .offer-popup__mobile-cta {
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    font-size: 18px;
  }

  .offer-popup__close {
    top: 8px;
    right: 8px;
  }

  html[dir="rtl"] .offer-popup__close {
    right: auto;
    left: 10px;
  }
}
