/*
 * Cookie consent bar and preferences. Self-contained (used on every layout,
 * including the standalone pages), in the Ruckus palette and typeface.
 */
.rk-consent {
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  inset-inline-start: 230px;
  inset-inline-end: 100px; /* clear of the WhatsApp button */
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 18px;
  border-top: 3px solid #fac400;
  border-radius: 6px;
  background: #1e2333;
  color: #fff;
  font-family: "Advent Pro", sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(17, 7, 41, 0.3);
}

html[data-sidebar="collapsed"] .rk-consent {
  inset-inline-start: 114px;
}

.rk-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.rk-consent__text a {
  color: #ffeb3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rk-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.rk-consent__btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rk-consent__btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rk-consent__btn--primary {
  border-color: #fac400;
  background: #fac400;
  color: #1e2333;
}

.rk-consent__btn--primary:hover {
  border-color: #ffd63a;
  background: #ffd63a;
}

.rk-consent a:focus-visible,
.rk-consent__btn:focus-visible {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
}

/* Tablet and mobile: full-width bar; the WhatsApp button moves above it */
@media (max-width: 992px) {
  .rk-consent,
  html[data-sidebar="collapsed"] .rk-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }

  .rk-consent__actions > * {
    flex: 1;
    min-height: 44px;
  }

  html.consent-open .whatsapp-float {
    bottom: calc(var(--consent-bar-h, 0px) + 24px);
  }

  /* While the navigation drawer is open the bar steps aside; it returns on close */
  html.nav-open .rk-consent {
    display: none;
  }

  html.nav-open.consent-open .whatsapp-float {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rk-consent__btn {
    transition: none;
  }
}
