:root {
  --ride-consent-height: 0px;
}

.consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: none;
  box-sizing: border-box;
  min-height: clamp(176px, 25svh, 280px);
  padding: 20px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--black, #141414);
  color: var(--white, #fff);
  border-top: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .2);
}

.consent-banner--visible {
  display: block;
}

.consent-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  align-items: center;
  gap: 24px;
  width: min(1180px, 100%);
  min-height: inherit;
  margin: 0 auto;
}

.consent-banner__eyebrow {
  margin: 0 0 8px;
  color: var(--red, #ed1c24);
  font: 600 .68rem/1.2 Onest, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.consent-banner__title {
  margin: 0;
  font: 700 clamp(1.05rem, 2vw, 1.45rem)/1.2 Unbounded, sans-serif;
}

.consent-banner__text {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .72);
  font: 400 .92rem/1.55 Onest, sans-serif;
}

.consent-banner__text a {
  color: var(--white, #fff);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.consent-banner__action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--red, #ed1c24);
  border-radius: 8px;
  font: 600 .78rem/1.2 Onest, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.consent-banner__action--accept {
  background: var(--red, #ed1c24);
  color: var(--white, #fff);
}

.consent-banner__action--details {
  background: transparent;
  color: var(--white, #fff);
}

.consent-banner__action:hover,
.consent-banner__action:focus-visible {
  background: var(--white, #fff);
  color: var(--black, #141414);
}

.consent-banner__action:focus-visible,
.consent-banner__text a:focus-visible {
  outline: 3px solid var(--white, #fff);
  outline-offset: 3px;
}

.consent-visible .obj-booking__sticky {
  bottom: var(--ride-consent-height);
}

.consent-visible .tmap__popup {
  bottom: calc(12px + var(--ride-consent-height));
}

@media (max-width: 680px) {
  .consent-banner__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .consent-banner {
    height: 25vh;
    min-height: 0;
    padding: 12px 16px;
    overflow-y: auto;
  }

  .consent-banner__inner {
    gap: 10px;
  }

  .consent-banner__eyebrow {
    display: none;
  }

  .consent-banner__title {
    font-size: .95rem;
  }

  .consent-banner__text {
    margin-top: 6px;
    font-size: .76rem;
    line-height: 1.35;
  }

  .consent-banner__actions {
    gap: 8px;
  }

  .consent-banner__action {
    min-height: 46px;
    padding: 10px 8px;
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner__action {
    transition: none;
  }
}
