/* DT-619: the two-button cookie dialog and the plain links shown instead of third-party buttons
   (pages/homepage.html). The modal itself is styled in site.css; this file loads after it. */

/* Never taller than the screen: on a short phone or at large text sizes the choices stay reachable. */
.hsl-cookie-modal {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

/* Both choices side by side, the same size and style: neither is the easier one. */
.hsl-cookie-modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hsl-cookie-modal-form .hsl-cookie-choice {
  width: 100%;
  min-height: 3rem;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

/* The title takes the focus when the dialog opens (js/cookie_choice.js); it is not a control, so no ring. */
.hsl-cookie-modal-copy h2:focus {
  outline: none;
}

.hsl-cookie-modal-copy a {
  color: #8fd8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hsl-cookie-modal-copy a:hover {
  color: #b8ebff;
}

.hsl-cookie-modal-copy .hsl-cookie-error {
  color: #ffb4c0;
  font-weight: 600;
}

.hsl-cookie-modal-copy .hsl-cookie-current {
  color: #f3f7ff;
  font-weight: 600;
}

/* Reopened from "Cookie settings": leave without changing the choice. */
.hsl-cookie-keep {
  justify-self: center;
  align-self: center;
  color: #8fd8ff;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hsl-cookie-keep:hover {
  color: #b8ebff;
}

/* DT-622: our logo and the channel name beside YouTube's own button ("default" layout), laid out like
   YouTube's "full" layout but without its light picture box. */
.hsl-yt-channel {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.2rem;
}

.hsl-yt-channel__avatar {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.portal-body .hsl-yt-channel__name {
  align-self: end;
  color: #f3f7ff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.portal-body .hsl-yt-channel__name:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hsl-yt-channel .g-ytsubscribe,
.hsl-yt-channel [id^="___ytsubscribe"] {
  align-self: start;
}

/* "Review us on Trustpilot" when the widget is not loaded: as compact as the widget it stands in for. */
.hsl-trustpilot-link {
  display: flex;
  width: fit-content;
  margin: 0.4rem auto 0;
}

@media (max-width: 720px) {
  .hsl-cookie-modal-form {
    grid-template-columns: 1fr;
  }
}
