/* Evergreen promo popup (TRYRIBALTA) ------------------------------- */
.rp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.rp-overlay.rp-open {
  opacity: 1;
  visibility: visible;
}

.rp-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  transform: translateY(20px) scale(.97);
  transition: transform .3s ease;
}

.rp-overlay.rp-open .rp-dialog {
  transform: none;
}

.rp-header {
  background: #be1308;
  background: linear-gradient(135deg, #f71606 0%, #be1308 100%);
  color: #fff;
  padding: 28px 24px 24px;
  border-radius: 10px 10px 0 0;
}

.rp-header img {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.rp-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .9;
}

.rp-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.rp-body {
  padding: 24px 28px 26px;
  color: #333;
}

.rp-price {
  margin: 12px 0 0;
  font-size: 16px;
}

.rp-price s {
  opacity: .75;
  margin-right: 6px;
}

.rp-price strong {
  display: inline-block;
  padding: 2px 12px;
  background: #fff;
  border-radius: 20px;
  color: #be1308;
  font-size: 18px;
}

.rp-perks {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
}

.rp-perks li {
  margin-bottom: 8px;
}

.rp-perks li:last-child {
  margin-bottom: 0;
}

.rp-perks .fa {
  width: 18px;
  margin-right: 8px;
  color: #f71606;
  font-size: 15px !important;
  line-height: 1 !important;
}

.rp-code-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
}

.rp-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 20px;
  padding: 10px 10px 10px 18px;
  background: #fff5f4;
  border: 2px dashed #f71606;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.rp-code-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #be1308;
}

.rp-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  line-height: 1.2;
  background: #be1308;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rp-code.rp-copied .rp-copy {
  background: #2e8b3e;
}

.rp-dialog .btn-new.rp-cta {
  display: block;
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
}

.rp-dismiss {
  margin-top: 12px;
  padding: 4px;
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  text-decoration: underline;
}

.rp-dismiss:hover,
.rp-dismiss:focus {
  color: #333;
}

.rp-fine {
  margin: 14px 0 0 !important;
  font-size: 11px !important;
  color: #999;
}

.rp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, .2);
  border: none;
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease;
}

.rp-close:hover,
.rp-close:focus {
  background: rgba(0, 0, 0, .4);
}

.rp-close .fa {
  font-size: 16px !important;
  line-height: 1 !important;
}

body.rp-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .rp-header {
    padding: 24px 20px 20px;
  }

  .rp-title {
    font-size: 25px;
  }

  .rp-body {
    padding: 20px 18px 22px;
  }

  .rp-code-text {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

/* short phones (e.g. iPhone SE): tighten spacing so it fits without scrolling */
@media (max-height: 640px) {
  .rp-header {
    padding: 16px 20px 14px;
  }

  .rp-header img {
    height: 26px;
    margin-bottom: 8px;
  }

  .rp-title {
    font-size: 22px;
  }

  .rp-price {
    margin-top: 8px;
  }

  .rp-body {
    padding: 14px 18px 14px;
  }

  .rp-perks {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .rp-perks li {
    margin-bottom: 4px;
  }

  .rp-code {
    margin-bottom: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .rp-dialog .btn-new.rp-cta {
    padding: 12px 20px;
  }

  .rp-dismiss {
    margin-top: 4px;
  }

  .rp-fine {
    margin-top: 4px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-overlay,
  .rp-dialog {
    transition: none;
  }
}
