/* Way App cashback promo — sidebar card + modal */
.way-app-promo {
  --wap-bg: #031b16;
  --wap-mint: #0cf0bb;
  --wap-mint-dark: #023126;
  --wap-white: #ffffff;
  --wap-step: #d3d5d9;
  --wap-step-num: #05614c;
  --wap-title-gradient: linear-gradient(94.82deg, #54e1c0 0.61%, #628c82 153.51%);
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wap-bg);
  color: var(--wap-white);
  font-family: "Inter", "Roboto", sans-serif;
}

.way-app-promo__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 444px;
  padding: 32px 20px 20px;
  background-color: var(--wap-bg);
  background-image: var(--wap-bg-image-desktop);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.way-app-promo__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124px;
  background: linear-gradient(to top, #021813 0%, rgba(2, 24, 19, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.way-app-promo__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.way-app-promo__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  line-height: normal;
}

.way-app-promo__title-accent {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  background-image: var(--wap-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.way-app-promo__title-main {
  display: block;
  color: var(--wap-white);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

.way-app-promo__steps {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.way-app-promo__step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wap-step);
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.way-app-promo__step-num {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 19.5px;
  background: var(--wap-step-num);
  color: #ffffff;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.way-app-promo__code {
  color: var(--wap-mint);
  font-weight: 500;
}

.way-app-promo__badge {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 145px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border-radius: 32px;
  border: 1px solid rgba(224, 224, 224, 0.1);
  background: rgba(16, 18, 35, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0.9;
  pointer-events: none;
}

.way-app-promo__badge-icon {
  flex-shrink: 0;
  display: block;
  color: #ffffff;
}

.way-app-promo__cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--wap-mint);
  color: var(--wap-mint-dark);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s ease;
}

.way-app-promo__cta:hover,
.way-app-promo__cta:focus {
  opacity: 0.92;
  outline: none;
}

/* Modal — centered over page; page background unchanged (dim overlay only) */
.way-app-promo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.way-app-promo-modal.is-open {
  display: flex;
}

.way-app-promo-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: default;
}

.way-app-promo-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(580px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 48px 24px 56px;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  cursor: default;
  box-sizing: border-box;
}

.way-app-promo-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.way-app-promo-modal__close:hover,
.way-app-promo-modal__close:focus {
  opacity: 0.7;
  outline: none;
}

.way-app-promo-modal__title {
  margin: 0 0 20px;
  padding: 0 24px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.way-app-promo-modal__title-accent {
  color: #079271;
}

.way-app-promo-modal__title-rest {
  color: #111;
}

.way-app-promo-modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 743 / 722;
  background: #f5f5f5;
}

.way-app-promo-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 743 / 722;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  cursor: default;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.way-app-promo-modal.is-loading .way-app-promo-modal__image {
  opacity: 0;
}

.way-app-promo-modal__store-link {
  position: absolute;
  bottom: 5.5%;
  height: 10%;
  z-index: 2;
  display: block;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
}

.way-app-promo-modal__store-link--google {
  left: 18%;
  width: 28%;
}

.way-app-promo-modal__store-link--apple {
  right: 18%;
  width: 28%;
}

body.way-app-promo-modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .way-app-promo__inner {
    min-height: 437px;
    background-image: var(--wap-bg-image-mobile);
  }

  .way-app-promo__badge {
    bottom: 140px;
  }

  .way-app-promo__title-accent,
  .way-app-promo__title-main {
    font-size: 18px;
  }

  .way-app-promo-modal {
    padding: 16px;
  }

  .way-app-promo-modal__dialog {
    padding: 40px 16px 48px;
  }

  .way-app-promo-modal__title {
    font-size: 22px;
    margin-bottom: 16px;
  }
}
