.auto-rs-offer[hidden] {
  display: none !important;
}

.auto-rs-offer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 280ms ease;
}

.auto-rs-offer.is-visible {
  opacity: 1;
}

.auto-rs-offer__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(25rem, 1.18fr);
  width: min(52rem, 100%);
  min-height: 32rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #111;
  color: #fff;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.65);
  transform: translateY(1rem) scale(0.985);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auto-rs-offer.is-visible .auto-rs-offer__panel {
  transform: translateY(0) scale(1);
}

.auto-rs-offer__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #480b08;
}

.auto-rs-offer__media::after {
  position: absolute;
  top: -10%;
  right: -4.2rem;
  width: 7.5rem;
  height: 120%;
  border-radius: 50%;
  background: #111;
  content: "";
}

.auto-rs-offer__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.94) contrast(1.04);
}

.auto-rs-offer__content {
  align-self: center;
  padding: 3.25rem 3.35rem 3rem 2.75rem;
}

.auto-rs-offer__eyebrow {
  margin: 0 0 0.8rem;
  color: #ff4d24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auto-rs-offer__title {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(2.55rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.auto-rs-offer__title strong {
  color: #ff4d24;
  font-weight: inherit;
}

.auto-rs-offer__text {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.auto-rs-offer__code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.auto-rs-offer__code-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auto-rs-offer__code {
  display: block;
  margin-top: 0.12rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auto-rs-offer__copy {
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: #ff6541;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease;
}

.auto-rs-offer__copy:hover,
.auto-rs-offer__copy:focus-visible {
  background: rgba(255, 77, 36, 0.1);
  color: #fff;
  outline: none;
}

.auto-rs-offer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  background: #ff4d24;
  color: #080808;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background-color 180ms ease, transform 180ms ease;
}

.auto-rs-offer__cta:hover,
.auto-rs-offer__cta:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

.auto-rs-offer__cta-arrow {
  width: 0.86rem;
  height: 0.86rem;
  flex: 0 0 auto;
}

.auto-rs-offer__fine-print {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  line-height: 1.45;
}

.auto-rs-offer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.7);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.auto-rs-offer__close:hover,
.auto-rs-offer__close:focus-visible {
  border-color: #ff4d24;
  background: #ff4d24;
  color: #080808;
  outline: none;
}

@media (max-width: 760px) {
  .auto-rs-offer {
    align-items: center;
    padding: 0.75rem;
  }

  .auto-rs-offer__panel {
    grid-template-columns: 1fr;
    width: min(31rem, 100%);
    min-height: 0;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }

  .auto-rs-offer__media {
    height: clamp(7.5rem, 22vh, 10rem);
  }

  .auto-rs-offer__media::after {
    top: auto;
    right: -5%;
    bottom: -3rem;
    width: 110%;
    height: 4.5rem;
    border-radius: 50% 50% 0 0;
  }

  .auto-rs-offer__media-image {
    object-position: center 53%;
  }

  .auto-rs-offer__content {
    padding: 1.35rem 1.2rem max(1.1rem, env(safe-area-inset-bottom));
  }

  .auto-rs-offer__title {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .auto-rs-offer__text {
    margin-top: 0.75rem;
    font-size: 0.88rem;
  }

  .auto-rs-offer__code-row {
    margin-top: 1rem;
  }

  .auto-rs-offer__fine-print {
    margin-bottom: 0;
  }
}

@media (max-width: 360px) {
  .auto-rs-offer__media {
    height: 6.5rem;
  }

  .auto-rs-offer__content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .auto-rs-offer__title {
    font-size: 2.15rem;
  }

  .auto-rs-offer__code-row {
    padding: 0.75rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auto-rs-offer,
  .auto-rs-offer__panel,
  .auto-rs-offer__cta {
    transition: none;
  }
}
