:root {
  --airport-glass-gap: max(14px, env(safe-area-inset-bottom, 0px));
  --airport-glass-flight-limit: min(var(--airport-glass-height, 10rem), 45vh);
  --airport-glass-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #a7c39730,
    0 10px 32px #1c3c2420, 0 0 16px #70b94724;
}

@supports (height: 1dvh) {
  :root {
    --airport-glass-flight-limit: min(var(--airport-glass-height, 10rem), 45dvh);
  }
}

html:has(.airport-parking-cta) {
  scroll-padding-bottom: calc(80px + var(--airport-glass-gap));
}

body:has(.airport-parking-cta)::after {
  content: "";
  display: block;
  height: calc(80px + var(--airport-glass-gap));
}

html:has(.rp-flight-rental) {
  scroll-padding-bottom: calc(var(--airport-glass-flight-limit) + var(--airport-glass-gap));
}

body:has(.rp-flight-rental)::after {
  content: "";
  display: block;
  height: calc(var(--airport-glass-flight-limit) + var(--airport-glass-gap));
}

.airport-parking-cta,
.rp-flight-rental {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  /* PHP's captured reset uses raised specificity for margins, padding, borders and headings. */
  border: 1px solid #f9fff5 !important;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfefa, #e9f3e4 65%, #f6faf3);
  box-shadow: var(--airport-glass-shadow);
  color: #17291c;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .airport-parking-cta,
  .rp-flight-rental {
    background: linear-gradient(130deg, #fcfff9e8, #f1f8efbd 48%, #e2f1dcd6 84%, #fcfff9e8);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
}

.rp-airport-rental-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #f1fae7 !important;
  border-radius: 15px;
  background: linear-gradient(150deg, #f7fce9, #cce8b9);
  box-shadow: inset 0 1px 1px #fff8, 0 2px 7px #325b2420;
}

.rp-airport-rental-icon img {
  display: block;
  width: 28px;
  height: 28px;
  filter: invert(17%) sepia(32%) saturate(1040%) hue-rotate(69deg);
}

.airport-parking-cta {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: var(--airport-glass-gap);
  z-index: 30;
  gap: 12px;
  width: min(310px, calc(100% - 32px));
  padding: 11px 14px !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.airport-parking-cta-arrow {
  padding: 0 2px;
  color: #31592a;
  font-size: 21px;
}

.airport-parking-cta:hover {
  border-color: #bdd9ac !important;
}

.rp-flight-rental-dock {
  position: fixed;
  right: 0;
  bottom: var(--airport-glass-gap);
  left: 0;
  z-index: 30;
  pointer-events: none;
}

.rp-flight-rental {
  gap: clamp(12px, 1.7vw, 24px);
  max-height: var(--airport-glass-flight-limit);
  padding: 17px clamp(18px, 2.5vw, 34px) !important;
  overflow: auto;
  pointer-events: auto;
}

.rp-flight-rental h2 {
  margin: 0 0 4px !important;
  font-size: clamp(17px, 1.7vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.rp-flight-rental p {
  margin: 0;
  color: #405548;
  font-size: 15px;
  line-height: 1.4;
}

.rp-flight-rental-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 15px !important;
  border: 1px solid #b0d29d !important;
  border-radius: 15px;
  background: linear-gradient(150deg, #ebf7e3, #c8e7b4);
  box-shadow: inset 0 1px 1px #fff8;
  color: #213d20;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.rp-flight-rental-link:hover {
  background: #c1e2a9;
}

.rp-flight-rental-link span {
  font-size: 20px;
  line-height: 1;
}

.airport-parking-cta:focus-visible,
.rp-flight-rental-link:focus-visible {
  outline: 3px solid #447b25;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .airport-parking-cta,
  .rp-flight-rental {
    animation: airport-glass-glow 4.8s ease-in-out;
  }
}

@keyframes airport-glass-glow {
  50% {
    box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #a7c39738,
      0 10px 32px #1c3c2420, 0 0 26px #76c5474d;
  }
}

@media (min-width: 801px) and (max-height: 430px) {
  .airport-parking-cta {
    right: 80px;
  }

  html:has(.rp-flight-rental) .messenger-rail {
    top: 12px !important;
    transform: none !important;
  }
}

@media (max-width: 800px) {
  .rp-travel-flight iframe {
    margin-inline: auto !important;
  }

  .rp-flight-rental {
    /* Match the breathing room around the embedded board. */
    margin: 0 12px !important;
  }
}

@media (max-width: 620px) {
  :root {
    --airport-glass-height: 13rem;
  }

  .rp-flight-rental {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px 11px;
    padding: 12px 14px !important;
    border-radius: 20px;
  }

  .rp-flight-rental .rp-airport-rental-icon {
    align-self: start;
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .rp-flight-rental .rp-airport-rental-icon img {
    width: 25px;
    height: 25px;
  }

  .rp-flight-rental p {
    font-size: 13px;
    line-height: 1.35;
  }

  .rp-flight-rental-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .rp-flight-rental > div {
    display: contents;
  }

  .rp-flight-rental h2 {
    margin-bottom: 0 !important;
  }

  .rp-flight-rental p {
    grid-column: 1 / -1;
  }
}
