/* ============================================================
   Cookie Banner — fixed bottom bar
   BWS UI only (no Bootstrap classes)
   ============================================================ */

.lrn-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e1b4b; /* deep indigo — matches brand */
  color: #e0e7ff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .22);
  /* Start hidden below viewport for slide-up animation */
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Banner is visible after JS adds the class */
.lrn-cookie-banner--visible {
  transform: translateY(0);
}

/* Slide back down when hiding */
.lrn-cookie-banner--hiding {
  transform: translateY(100%);
}

/* Inner layout */
.lrn-cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.lrn-cookie-text {
  flex: 1 1 300px;
}

.lrn-cookie-text p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: #c7d2fe;
}

.lrn-cookie-link {
  color: #a5b4fc;
  text-decoration: underline;
  white-space: nowrap;
  margin-left: .25em;
}

.lrn-cookie-link:hover,
.lrn-cookie-link:focus {
  color: #fff;
}

.lrn-cookie-actions {
  flex-shrink: 0;
}

/* Accept button — uses bws-btn-primary but override colours for dark bg */
#lrnCookieAccept.bws-btn {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, transform .12s;
}

#lrnCookieAccept.bws-btn:hover,
#lrnCookieAccept.bws-btn:focus {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
}

#lrnCookieAccept.bws-btn:active {
  transform: translateY(0);
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .lrn-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .lrn-cookie-actions {
    width: 100%;
  }

  #lrnCookieAccept.bws-btn {
    width: 100%;
    text-align: center;
  }
}
