/**
 * DJ Refresh — cookie consent banner.
 *
 * The Cookie Notice plugin ships its own look (a full-bleed navy bar, dark-on-dark text, and
 * square "Ok / No" buttons) which does not belong on this page. Its markup is fixed, so this
 * restyles it in place: a floating, rounded dark panel using the DJ button components.
 *
 * The plugin still owns the SHOW/HIDE logic via its `cookie-notice-hidden` class — we only
 * change how it looks, never whether it appears, so consent behaviour is untouched.
 */

.djr-page #cookie-notice {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 900;

  width: calc(100% - 48px);
  max-width: 980px;
  min-height: 0;
  padding: 0;

  background: transparent!important;
  color: var(--djr-white);
  font-size: 14px;
  text-align: left;
}

/* The plugin hides the bar by adding this class; make sure that actually removes it from
   the layout rather than leaving a stray strip at the bottom of the page. */
.djr-page #cookie-notice.cookie-notice-hidden {
  display: none;
}

/*
 * Dismiss on accept/refuse. The plugin sets the cookie and adds `cn-animated`, then relies on
 * its own fade-out animation to hide the bar — but that animation doesn't run here, so the
 * plugin never fires the animationend that would hide it, and the bar just stays. So we do the
 * hide ourselves off `cn-animated`, with a fade via opacity/visibility.
 */
.djr-page #cookie-notice {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.djr-page #cookie-notice.cn-animated {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.djr-page #cookie-notice .cookie-notice-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;

  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.djr-page #cookie-notice .cn-text-container {
  flex: 1 1 auto;
  margin: 0;
  color: #c9c9c9;
  font-size: 14px;
  line-height: 1.5;
}

.djr-page #cookie-notice .cn-buttons-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Reset the plugin's button chrome before applying ours. */
.djr-page #cookie-notice .cn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--djr-radius-pill);
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Accept — the DJ primary button. */
.djr-page #cookie-notice #cn-accept-cookie {
  background: var(--djr-red);
  border-color: var(--djr-red);
  color: var(--djr-white);
}

.djr-page #cookie-notice #cn-accept-cookie:hover {
  background: var(--djr-red-dark);
  border-color: var(--djr-red-dark);
}

/* Refuse — outline, on dark. */
.djr-page #cookie-notice #cn-refuse-cookie {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--djr-white);
}

.djr-page #cookie-notice #cn-refuse-cookie:hover {
  background: var(--djr-white);
  border-color: var(--djr-white);
  color: var(--djr-ink);
}

/* Privacy policy — a quiet text link, not a third button. */
.djr-page #cookie-notice #cn-more-info {
  padding: 11px 4px;
  border-color: transparent;
  color: #9d9d9d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.djr-page #cookie-notice #cn-more-info:hover {
  color: var(--djr-white);
}

/* The plugin's close icon is dead weight here — it dismisses the bar without recording a
   choice, and "Ok" / "No" already sit right next to it. Hide it rather than style it. */
.djr-page #cookie-notice .cn-close-icon {
  display: none;
}

@media (max-width: 780px) {
  .djr-page #cookie-notice {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .djr-page #cookie-notice .cookie-notice-container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .djr-page #cookie-notice .cn-buttons-container {
    justify-content: center;
    flex-wrap: wrap;
  }
}
