/* Cookie consent: the banner, the small "Cookies" button that opens it again,
   and the placeholder that stands in for a blocked video.
   Behaviour lives in site/kb-cookie-consent.js. */

.kb-consent-banner {
  /* The Crisp chat launcher is fixed in the bottom right corner: a 54px bubble
     about 32px in from the edge. Without a lane reserved for it, it sits on top
     of the Accept button. Measured on the live site - keep it in step if Crisp's
     launcher size ever changes. */
  --crisp-lane: 96px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 25px;
  box-sizing: border-box;
  padding: 16px 22px;
  background: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
}

.kb-consent-copy {
  flex: 1 1 420px;
  max-width: 780px;
  font-size: 13px;
  line-height: 1.5;
}

.kb-consent-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.kb-consent-copy p {
  margin: 0;
}

.kb-consent-copy a {
  color: var(--accent-color);
  text-decoration: underline;
}

.kb-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  /* Keeps Accept out from under the chat launcher - at every width, since the
     buttons get a full-width row of their own below 700px and still end up in
     the bottom right corner. */
  padding-right: var(--crisp-lane);
}

.kb-consent-button {
  padding: 9px 22px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  background: var(--accent-color);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.kb-consent-button:hover {
  background: #e35fbc;
  border-color: #e35fbc;
}

.kb-consent-secondary {
  background: #fff;
  color: #444;
  border-color: #bbb;
}

.kb-consent-secondary:hover {
  background: #f0f0f0;
  border-color: #999;
  color: #444;
}

/* Bottom left, because the Crisp chat bubble sits bottom right. */
.kb-consent-reopen {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 99990;
  padding: 4px 11px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  color: #777;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.6;
}

.kb-consent-reopen:hover {
  opacity: 1;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Stands in for a blocked video, in the same box the iframe would have had. */
.kb-video-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 560px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 12px 16px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid #ccc;
  text-align: center;
}

.kb-video-consent-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.kb-video-consent-disc {
  fill: #fff;
  stroke: #bbb;
}

.kb-video-consent-play {
  fill: #bbb;
}

.kb-video-consent-text {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
  max-width: 420px;
}

.kb-video-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 0;
}

.kb-video-consent-allow {
  padding: 8px 20px;
}

@media screen and (max-width: 700px) {
  .kb-consent-banner {
    padding: 14px 16px;
  }

  .kb-consent-actions {
    flex: 1 1 100%;
  }

  .kb-consent-button {
    flex: 1 1 auto;
  }

  .kb-video-consent-icon {
    display: none;
  }
}
