/* ═══════════════════════════════════════════════
   CROWNTECH — Cookie Consent Banner (UK PECR/GDPR)
   ═══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 2px solid rgba(255,255,255,.08);
  padding: 20px 5%;
  box-shadow: 0 -8px 40px rgba(11,29,53,.5);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner__title {
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 4px;
}
.cookie-banner__desc {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  line-height: 1.55;
}
.cookie-banner__desc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,.35);
}
.cookie-btn--accept:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.cookie-btn--essential {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
}
.cookie-btn--essential:hover {
  background: rgba(255,255,255,.14);
}
.cookie-btn--settings {
  background: none;
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn--settings:hover { color: rgba(255,255,255,.75); }

/* ─── COOKIE SETTINGS MODAL ─── */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11,29,53,.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.9);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.cookie-modal-overlay.open .cookie-modal { transform: scale(1); }
.cookie-modal__header {
  background: var(--navy);
  padding: 28px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__header h3 { color: #fff; font-size: 1.1rem; font-weight: 900; }
.cookie-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cookie-modal__close:hover { background: rgba(255,255,255,.2); }
.cookie-modal__body { padding: 24px 28px; }
.cookie-category {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-category__name { font-weight: 800; font-size: .92rem; color: var(--navy); }
.cookie-category__desc { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.cookie-toggle {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s;
}
.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--green); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle__slider { opacity: .6; cursor: not-allowed; }
.cookie-modal__footer {
  padding: 0 28px 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-modal__footer .cookie-btn { flex: 1; min-width: 120px; text-align: center; }
