:root {
  --hertz-bubble-radius: 9999px;
  --hertz-bubble-card-radius: 32px;
  --hertz-bubble-border: rgba(244, 122, 32, 0.22);
  --hertz-bubble-shadow: 0 12px 26px rgba(45, 58, 75, 0.08);
  --hertz-bubble-shadow-active: 0 16px 34px rgba(244, 122, 32, 0.2);
}

button,
[role="button"],
[data-transition-target],
[data-shop-cta],
.button,
.back-button,
a[class*="bg-hertz-orange"],
a[class*="bg-deep-navy"],
a[class*="bg-primary-container"],
a[class*="hover:bg"],
a[class*="scale-on-hover"],
a[class*="animate-shake-hover"],
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
.form-input-premium,
.form-input-focus {
  border-radius: var(--hertz-bubble-radius) !important;
}

textarea {
  border-radius: 28px !important;
}

label.cursor-pointer > div,
label[class*="cursor-pointer"] > div[class*="border"],
a[class*="hover:shadow"],
a[class*="border"][class*="group"],
div[class*="cursor-pointer"][class*="border"],
button[class*="border"],
.button-secondary {
  border-radius: var(--hertz-bubble-card-radius) !important;
}

button,
[role="button"],
[data-transition-target],
[data-shop-cta],
.button,
a[class*="bg-hertz-orange"],
a[class*="bg-deep-navy"],
a[class*="bg-primary-container"],
a[class*="hover:bg"],
label.cursor-pointer > div,
label[class*="cursor-pointer"] > div[class*="border"],
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea,
.form-input-premium,
.form-input-focus {
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

button:hover,
[role="button"]:hover,
[data-transition-target]:hover,
[data-shop-cta]:hover,
.button:hover,
a[class*="bg-hertz-orange"]:hover,
a[class*="bg-deep-navy"]:hover,
a[class*="bg-primary-container"]:hover,
a[class*="hover:bg"]:hover,
label.cursor-pointer:hover > div,
label[class*="cursor-pointer"]:hover > div[class*="border"] {
  box-shadow: var(--hertz-bubble-shadow);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea,
.form-input-premium,
.form-input-focus {
  border-color: var(--hertz-bubble-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
select:focus,
textarea:focus,
.form-input-premium:focus,
.form-input-focus:focus {
  border-color: #f47a20 !important;
  box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.16), var(--hertz-bubble-shadow) !important;
  outline: none !important;
}

input[type="checkbox"]:not(.sr-only),
input[type="radio"]:not(.sr-only) {
  width: 2.25rem !important;
  height: 1.25rem !important;
  border-radius: var(--hertz-bubble-radius) !important;
  border: 1px solid rgba(139, 114, 101, 0.38) !important;
  background-color: #ffffff !important;
  background-image: radial-gradient(circle at 10px 50%, #8b7265 0 4px, transparent 5px) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  color: #f47a20 !important;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

input[type="checkbox"]:not(.sr-only):checked,
input[type="radio"]:not(.sr-only):checked {
  border-color: #f47a20 !important;
  background-color: #f47a20 !important;
  background-image: radial-gradient(circle at calc(100% - 10px) 50%, #ffffff 0 4px, transparent 5px) !important;
}

input[type="checkbox"]:not(.sr-only):focus,
input[type="radio"]:not(.sr-only):focus {
  box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.18) !important;
  outline: none !important;
}

label.cursor-pointer > .peer:checked + div,
label[class*="cursor-pointer"] > .peer:checked + div {
  box-shadow: var(--hertz-bubble-shadow-active);
}

.hertz-offer-video-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.hertz-offer-video-stack.intersect-observed {
  transition-duration: 1s;
}

.hertz-offer-video-row {
  --offer-opacity: 0;
  --offer-frame-shift: -52px;
  --offer-copy-shift: 44px;
  --offer-scale: 0.92;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.hertz-offer-video-row.is-reverse {
  --offer-frame-shift: 52px;
  --offer-copy-shift: -44px;
  flex-direction: row-reverse;
}

.hertz-offer-video-frame {
  width: min(43vw, 169px);
  aspect-ratio: 338 / 199;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 122, 32, 0.2);
  border-radius: 24px;
  background: #fff1eb;
  box-shadow: 0 10px 22px rgba(45, 58, 75, 0.1);
  opacity: var(--offer-opacity);
  transform: translate3d(var(--offer-frame-shift), 0, 0) scale(var(--offer-scale));
  transform-origin: center;
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hertz-offer-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hertz-offer-video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  color: #2d3a4b;
  font-family: Manrope, sans-serif;
  line-height: 1.35;
}

.hertz-offer-video-row.is-reverse .hertz-offer-video-copy {
  text-align: right;
}

.hertz-offer-video-title {
  margin: 0;
  color: #111827;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-align: inherit;
  opacity: var(--offer-opacity);
  transform: translate3d(var(--offer-copy-shift), 0, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hertz-offer-video-note {
  margin: 4px 0 0;
  color: #6b7280;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: inherit;
  opacity: var(--offer-opacity);
  transform: translate3d(var(--offer-copy-shift), 0, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hertz-offer-cta-wrap {
  margin-top: 30px;
  padding-bottom: 6px;
}

.hertz-offer-cta-reveal.intersect-observed {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hertz-offer-cta-reveal.intersect-observed.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hertz-offer-cta {
  display: flex !important;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px !important;
  background: #f47a20;
  color: #ffffff;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 14px 30px rgba(244, 122, 32, 0.28);
}

.hertz-offer-cta:hover {
  background: #9a4600;
}

@media (min-width: 768px) {
  .hertz-offer-video-stack {
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-hertz-force-motion="true"]) .hertz-offer-video-row {
    --offer-opacity: 1 !important;
    --offer-frame-shift: 0px !important;
    --offer-copy-shift: 0px !important;
    --offer-scale: 1 !important;
  }

  html:not([data-hertz-force-motion="true"]) .hertz-offer-video-frame,
  html:not([data-hertz-force-motion="true"]) .hertz-offer-video-title,
  html:not([data-hertz-force-motion="true"]) .hertz-offer-video-note {
    transition: none !important;
  }
}

.hertz-offer-deck {
  position: relative;
  isolation: isolate;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  cursor: pointer;
  perspective: 1100px;
}

.hertz-offer-deck::before {
  content: "";
  position: absolute;
  inset: 10px -8px -10px 12px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(250, 228, 217, 0.95), rgba(255, 241, 235, 0.38));
  transform: rotate(2deg);
}

.hertz-offer-card {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 236, 239, 0.92);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(45, 58, 75, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(18px, 14px, -40px) rotate(3deg) scale(0.94);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms ease;
  transform-origin: 50% 100%;
  will-change: opacity, transform;
}

.hertz-offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hertz-offer-card.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  box-shadow: 0 24px 46px rgba(45, 58, 75, 0.2);
}

.hertz-offer-card.is-next {
  z-index: 3;
  opacity: 0.92;
  transform: translate3d(11px, 10px, -24px) rotate(2.2deg) scale(0.965);
}

.hertz-offer-card.is-back {
  z-index: 2;
  opacity: 0.7;
  transform: translate3d(21px, 20px, -42px) rotate(4deg) scale(0.93);
}

.hertz-offer-card.is-last {
  z-index: 1;
  opacity: 0.45;
  transform: translate3d(29px, 29px, -62px) rotate(5.5deg) scale(0.9);
}

.hertz-offer-card.is-dealing-out {
  z-index: 6;
  animation: hertzCardDealOut 560ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.hertz-offer-card.is-dealing-in {
  z-index: 5;
  animation: hertzCardDealIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hertz-offer-deck-hint {
  margin-top: 12px;
  color: #6b7280;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@keyframes hertzCardDealOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  48% {
    opacity: 0.96;
    transform: translate3d(36px, -18px, 24px) rotate(8deg) scale(1.02);
  }
  100% {
    opacity: 0.42;
    transform: translate3d(30px, 30px, -66px) rotate(5.5deg) scale(0.9);
  }
}

@keyframes hertzCardDealIn {
  0% {
    opacity: 0.45;
    transform: translate3d(-28px, 24px, -62px) rotate(-5deg) scale(0.9);
  }
  52% {
    opacity: 1;
    transform: translate3d(-14px, -10px, 18px) rotate(-3deg) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-hertz-force-motion="true"]) .hertz-offer-card,
  html:not([data-hertz-force-motion="true"]) .hertz-offer-card.is-dealing-out,
  html:not([data-hertz-force-motion="true"]) .hertz-offer-card.is-dealing-in {
    animation: none !important;
    transition: none !important;
  }
}
