/* Components with embedded text are rebuilt here so Arabic and English stay correct. */
.offer-ribbon {
  display: grid;
  place-items: center;
  margin: 0;
  object-fit: initial;
  clip-path: polygon(0 0, 100% 0, 87% 50%, 100% 100%, 0 100%, 13% 50%);
  background: linear-gradient(180deg, #ee2b31, #db161d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  filter: drop-shadow(0 3px 5px rgba(99, 0, 5, .25));
}

.offer-plans,
.offer-benefits { direction: ltr; }
.offer-plan,
.offer-benefit-list { direction: rtl; }
.offer-dialog[dir="ltr"] .offer-plan,
.offer-dialog[dir="ltr"] .offer-benefit-list { direction: ltr; }

.offer-confetti {
  position: absolute;
  z-index: 2;
  top: -120px;
  left: 50%;
  width: 496px;
  height: 496px;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .9;
  transition: opacity .2s ease;
}
.offer-confetti.is-finished { opacity: 0; }
.offer-hero-copy { z-index: 3; }
.offer-ribbon,
.offer-close { z-index: 5; }

@media (min-width: 721px) {
  .offer-stage {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
  }

  .offer-dialog {
    --offer-fit: 1;
    position: absolute;
    inset: 0 auto auto 0;
    width: 664px;
    max-height: none;
    overflow: hidden;
    border-radius: 24px;
    transform: scale(var(--offer-fit));
    transform-origin: top left;
  }

  .offer-modal.is-open .offer-dialog {
    transform: scale(var(--offer-fit));
  }

  .offer-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    float: none;
    margin: 0;
  }

  .offer-dialog[dir="ltr"] .offer-close {
    inset-inline-start: auto;
    inset-inline-end: 12px;
    float: none;
    margin: 0;
  }
}

.offer-close {
  position: absolute;
  z-index: 8;
  top: 12px;
  inset-inline-start: 12px;
  float: none;
  margin: 0;
  line-height: 0;
  padding: 0;
}
.offer-dialog[dir="ltr"] .offer-close {
  inset-inline-start: auto;
  inset-inline-end: 12px;
  float: none;
  margin: 0;
}
.offer-close svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.offer-benefit {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 14px;
  align-items: start;
  padding: 0;
  direction: ltr;
}
.offer-dialog[dir="ltr"] .offer-benefit {
  grid-template-columns: 24px 1fr;
  padding: 0;
}
.offer-benefit::after { content: none; }
.offer-benefit-copy { min-width: 0; }
.offer-check {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #0181fa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-dialog[dir="rtl"] .offer-check { grid-column: 2; grid-row: 1; }
.offer-dialog[dir="rtl"] .offer-benefit-copy { grid-column: 1; grid-row: 1; direction: rtl; text-align: right; }
.offer-dialog[dir="ltr"] .offer-check { grid-column: 1; grid-row: 1; }
.offer-dialog[dir="ltr"] .offer-benefit-copy { grid-column: 2; grid-row: 1; direction: ltr; text-align: left; }

.offer-category {
  isolation: isolate;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.offer-category img {
  transition: transform .25s ease, filter .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .offer-category:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 177, 255, .7);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, .3),
      0 0 0 1px rgba(1, 129, 250, .2),
      0 0 20px rgba(1, 129, 250, .32),
      inset 0 0 16px rgba(1, 129, 250, .12);
    filter: brightness(1.06);
  }
  .offer-category:hover img { transform: scale(1.025); filter: saturate(1.08); }
}

.offer-wave {
  z-index: 1;
  height: 136px;
  transform: translateY(-10px);
}

.offer-ticket {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 96px;
  display: grid;
  grid-template-columns: 57% 43%;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #141414;
  text-align: center;
  direction: ltr;
}
.offer-ticket::before,
.offer-ticket::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: calc(57% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #02060b;
}
.offer-ticket::before { top: -6px; }
.offer-ticket::after { bottom: -6px; }

.offer-ticket-price,
.offer-ticket-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.offer-ticket-price { gap: 1px; padding: 8px; }
.offer-ticket-price span,
.offer-ticket-price small { font-size: 12px; line-height: 1.35; }
.offer-ticket-price strong {
  font-family: 'SF Pro Display', sans-serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  direction: ltr;
}

.offer-ticket-promo {
  position: relative;
  gap: 1px;
  padding: 8px 10px;
  background: var(--offer-gold);
}
.offer-ticket-promo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -4px;
  width: 8px;
  background: radial-gradient(circle, #02060b 2px, transparent 2.5px) center -1px / 8px 10px repeat-y;
}
.offer-ticket-promo span { max-width: 78px; font-size: 10px; line-height: 1.25; }
.offer-ticket-promo strong {
  font-family: 'SF Pro Display', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  direction: ltr;
}

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

@media (max-width: 720px) {
  .offer-stage { width: 100%; }
  .offer-confetti { top: -105px; width: 430px; height: 430px; }
  .offer-wave { height: 136px; transform: translateY(-8px); }
  .offer-benefit { grid-template-columns: 1fr 24px; }
  .offer-dialog[dir="ltr"] .offer-benefit { grid-template-columns: 24px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-confetti { display: none; }
  .offer-category,
  .offer-category img { transition: none; }
}
