/* ================================================================
   Boarding Recovery — Cookie Consent Banner
   Colours matched to site palette (main.css):
     Primary:  #445f7a  (navbar, footer, headings, body text)
     Accent:   #ff1d25  (hover, active states)
     Light bg: #f5f5f5
     Border:   #ddd
   ================================================================ */

/* ---------- Overlay / backdrop ---------- */
#cookie-consent-banner {
  display: none;          /* shown by JS */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #2e4256; /* slightly darker than #445f7a for contrast */
  border-top: 3px solid #ff1d25;
  padding: 18px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  /* flex is set here so the JS can toggle display:flex */
  align-items: center;
  justify-content: center;
}

/* ---------- Inner wrapper (constrained width) ---------- */
.cookie-banner-inner {
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---------- Text block ---------- */
.cookie-banner-text {
  flex: 1 1 300px;
}

.cookie-banner-text p {
  margin: 0;
  color: #fff !important;   /* override .page-contents p colour */
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.cookie-banner-text a {
  color: #a8c4db;
  text-decoration: underline;
}

.cookie-banner-text a:hover,
.cookie-banner-text a:focus {
  color: #fff;
}

/* ---------- Buttons ---------- */
.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42857;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Reject — equal visual prominence (outlined style) */
.cookie-btn-reject {
  background-color: transparent;
  border-color: #a8c4db;
  color: #a8c4db;
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  outline: none;
}

/* Accept — filled, site primary colour */
.cookie-btn-accept {
  background-color: #445f7a;
  border-color: #fff;
  color: #fff;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background-color: #ff1d25;
  border-color: #ff1d25;
  color: #fff;
  outline: none;
}

/* ---------- YouTube click-to-load placeholder ---------- */
.yt-consent-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background-color: #1a1a2e;
  border: 1px solid #445f7a;
  border-radius: 4px;
  overflow: hidden;
}

.yt-consent-placeholder .yt-placeholder-inner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.yt-consent-placeholder .yt-icon {
  font-size: 48px;
  margin-bottom: 14px;
  color: #a8c4db;
  line-height: 1;
}

.yt-consent-placeholder .yt-placeholder-text {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.yt-consent-placeholder .yt-load-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #445f7a;
  border: 2px solid #a8c4db;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.yt-consent-placeholder .yt-load-btn:hover,
.yt-consent-placeholder .yt-load-btn:focus {
  background-color: #ff1d25;
  border-color: #ff1d25;
  outline: none;
}

/* Inside .embed-responsive the placeholder must fill it */
.embed-responsive .yt-consent-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding-bottom: 0;
  border-radius: 0;
}

/* ---------- "Cookie settings" footer link ---------- */
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
  color: #a8c4db;
  outline: none;
}

/* ---------- Mobile stacking ---------- */
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cookie-btn {
    flex: 1 1 auto;
  }
}
