/* CSS Document */

/* =======================
   COOKIE POPUP (CSS)
   Zet dit in assets/css/components.css (of maak cookie.css)
======================= */
.cookieBanner{
  position: fixed;
  inset: auto 0 16px 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 0 16px;
}

.cookieCard{
  width: min(980px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,27,43,.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(11,27,43,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}

.cookieText h3{
  margin: 0 0 6px;
  font-size: 15px;
}

.cookieText p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
}

.cookieLink{
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--blue2);
  text-decoration: underline;
}

.cookieActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookieBtn{
  white-space: nowrap;
}

/* mobiele optimalisatie */
@media (max-width: 720px){
  .cookieCard{
    flex-direction: column;
    align-items: stretch;
  }
  .cookieActions{
    width: 100%;
    justify-content: stretch;
  }
  .cookieBtn{
    width: 100%;
  }
}

/* animatie */
.cookieBanner[hidden]{ display:none; }
.cookieBanner.isVisible{ animation: cookieSlideUp .22s ease-out; }
@keyframes cookieSlideUp{
  from{ transform: translateY(14px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* ===== Cookie banner (responsive) ===== */
.cookieBanner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  display: none;              /* JS zet dit op block/flex */
  gap: 12px;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,27,43,.14);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 18px 40px rgba(11,27,43,.18);
  backdrop-filter: blur(10px);
}

.cookieBanner.show {
  display: flex;
}

.cookieText {
  min-width: 0;
}

.cookieText strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.cookieText p {
  margin: 0;
  color: rgba(11,27,43,.72);
  font-size: 13px;
  line-height: 1.35;
}

.cookieActions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

/* Mobiel: wordt een bottom sheet, knoppen onder elkaar/naast elkaar */
@media (max-width: 640px) {
  .cookieBanner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookieActions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cookieActions .btn {
    width: 100%;
    justify-content: center;
  }
}

.cookiePrefBox .cookiePrefRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20,45,80,.08);
}
.cookiePrefBox .cookiePrefRow:last-child{ border-bottom: 0; }
.small{ font-size: 13px; color: rgba(20,45,80,.65); }
