/* Cookie consent banner (assets/js/analytics.js). Only loaded when GA4 is set up. */

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* On a phone the Travel Planner pins its booking bar to the foot of the screen
   (it sets data-gtp-pinned and --gtp-pinned-height): sit above it, not on it. */
html[data-gtp-pinned] .cookie-consent {
  bottom: calc(16px + var(--gtp-pinned-height, 0px));
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  pointer-events: auto;
  max-width: 920px;
  width: 100%;
  background: var(--white, #fff);
  color: var(--text-dark, #1a1a1a);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(6, 29, 84, 0.18);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.cookie-consent__link {
  color: var(--primary-blue, #0a2f8a);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Both buttons look the same: rejecting is as easy as accepting. */
.cookie-consent__btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--primary-blue, #0a2f8a);
  background: var(--primary-blue, #0a2f8a);
  color: var(--white, #fff);
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent__btn:hover {
  background: var(--accent-blue, #0f307d);
}

.cookie-consent__btn:focus-visible,
.footer-cookie-settings:focus-visible {
  outline: 3px solid var(--light-blue, #5a7fc4);
  outline-offset: 2px;
}

/* Footer "Cookie settings" link (a button styled like the other footer links) */
.footer-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-cookie-settings:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}
