/* Cookie consent banner, Google placeholders, and privacy page layout. */

/* ---- Banner ---- */
.tbs-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Above the preloader (99999) and the sticky header (9999). */
  z-index: 100001;
  max-height: 50vh;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  border-top: 4px solid #e43426;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.5;
}
.tbs-consent[hidden] { display: none; }
.tbs-consent *, .tbs-consent *:before, .tbs-consent *:after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  .tbs-consent { animation: tbsConsentIn 0.3s ease-out; }
}
@keyframes tbsConsentIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.tbs-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.tbs-consent__text { flex: 1 1 420px; min-width: 0; }
.tbs-consent__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: bold;
  color: #222;
  outline: none;
}
.tbs-consent__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  overflow-wrap: anywhere;
}
.tbs-consent__text a { color: #b3261b; text-decoration: underline; }
.tbs-consent__note { margin-top: 6px !important; font-weight: bold; }

.tbs-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Accept and Decline share one style on purpose: equal prominence. */
.tbs-btn {
  background: #c52a1e;
  color: #fff;
  border: 2px solid #c52a1e;
  border-radius: 5px;
  padding: 9px 22px;
  min-height: 44px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
}
.tbs-btn:hover { background: #4e5a76; border-color: #4e5a76; color: #fff; }
.tbs-form-privacy a:focus-visible,
.tbs-consent a:focus-visible,
.tbs-btn:focus-visible,
.tbs-link-btn:focus-visible,
.tbs-google-placeholder a:focus-visible,
.tbs-policy a:focus-visible {
  outline: 3px solid #1a3a8f;
  outline-offset: 2px;
}
/* Visually hidden but still read by screen readers. */
.tbs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 575px) {
  .tbs-consent { padding: 12px 14px; }
  .tbs-consent__title { font-size: 16px; }
  .tbs-consent__text p { font-size: 14px; }
  .tbs-consent__actions { width: 100%; }
  .tbs-consent__actions .tbs-btn { flex: 1 1 0; padding: 9px 10px; }
}

/* Button that looks like a link (footer "Cookie settings"). */
.tbs-link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.event-footer .copyright .tbs-footer-links a,
.event-footer .copyright .tbs-footer-links .tbs-link-btn { color: #b9c2d6; text-decoration: underline; }
.event-footer .tbs-link-btn:focus-visible,
.event-footer .tbs-footer-links a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Google placeholders ---- */
.tbs-google-placeholder {
  background: #f3f4f7;
  border: 1px solid #d8dbe3;
  color: #333;
  text-align: center;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tbs-google-placeholder p { color: #333; margin: 0; max-width: 560px; overflow-wrap: anywhere; }
.tbs-google-placeholder a { color: #b3261b; text-decoration: underline; }
.tbs-google-placeholder--map { width: 100%; height: 450px; }
.tbs-google-placeholder--reviews { width: 100%; min-height: 160px; }
.tbs-google-placeholder[hidden] { display: none; }
/* When Google is allowed, show "loading/unavailable" text instead of "off" text. */
.tbs-on-only { display: none; }
html.tbs-google-on .tbs-on-only { display: block; }
html.tbs-google-on .tbs-off-only { display: none; }
/* Reviews could not load: replace the "loading" text with a failure message. */
.tbs-failed-only { display: none; }
html.tbs-google-failed .tbs-on-only { display: none; }
html.tbs-google-failed .tbs-failed-only { display: block; }
iframe.tbs-map-frame[hidden] { display: none; }
iframe.tbs-map-frame { display: block; max-width: 100%; height: 450px; }

.tbs-form-privacy { margin: 10px 0 0; font-size: 14px; color: #555; }
.tbs-form-privacy a { color: #b3261b; text-decoration: underline; }

/* ---- Privacy policy page ---- */
.tbs-policy-header {
  /* Dark like the site footer: the logo's wordmark is white. */
  background: #111;
  padding: 14px 0;
}
/* Bootstrap's clearfix pseudo-elements would otherwise count as flex items. */
.tbs-policy-header .container:before,
.tbs-policy-header .container:after { display: none; }
.tbs-policy-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tbs-policy-header img { display: block; max-width: 138px; height: auto; }
.tbs-policy-header a.tbs-home-link { color: #fff; font-weight: bold; text-decoration: underline; }
.tbs-policy-header a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tbs-policy { padding: 40px 0 60px; }
.tbs-policy .container { max-width: 800px; }
.tbs-policy h1 { font-size: 34px; margin: 0 0 6px; color: #222; }
.tbs-policy h2 { font-size: 22px; margin: 34px 0 10px; color: #222; }
.tbs-policy p, .tbs-policy li { color: #333; line-height: 1.7; overflow-wrap: anywhere; }
.tbs-policy ul { padding-left: 22px; }
.tbs-policy a { color: #b3261b; text-decoration: underline; }
.tbs-policy .tbs-effective { color: #555; margin-bottom: 20px; }
@media (max-width: 767px) {
  .tbs-policy { padding: 24px 0 40px; }
  .tbs-policy h1 { font-size: 28px; }
  .tbs-policy h2 { font-size: 20px; }
}
