/* ===== ELITE ITALY — GDPR COOKIE CONSENT ===== */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cookie-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ── Main banner (bottom bar) ── */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 9900;
  background: #0a0a0a;
  border-top: 1px solid rgba(184,150,90,0.25);
  padding: 24px 5%;
  transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Montserrat', sans-serif;
}
.cookie-banner.show {
  bottom: 0;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1300px;
  margin: 0 auto;
}

.cookie-icon {
  font-size: 28px;
  flex-shrink: 0;
  opacity: 0.85;
}

.cookie-text {
  flex: 1;
}
.cookie-text h3 {
  font-size: 13px;
  font-weight: 600;
  color: #faf9f7;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cookie-text p {
  font-size: 12px;
  color: #888780;
  line-height: 1.7;
  max-width: 680px;
}
.cookie-text p a {
  color: #b8965a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text p a:hover {
  color: #d4af7a;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 22px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: #b8965a;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #8a6e3e;
}
.cookie-btn-decline {
  background: transparent;
  color: #888780;
  border: 1px solid #333;
}
.cookie-btn-decline:hover {
  border-color: #888780;
  color: #faf9f7;
}
.cookie-btn-customize {
  background: transparent;
  color: #b8965a;
  border: 1px solid rgba(184,150,90,0.4);
  padding: 12px 18px;
}
.cookie-btn-customize:hover {
  border-color: #b8965a;
  background: rgba(184,150,90,0.07);
}

/* ── Preferences modal ── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cookie-modal.show {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-box {
  background: #faf9f7;
  width: min(560px, 100vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 40px 32px;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.cookie-modal.show .cookie-modal-box {
  transform: translateY(0);
}

.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888780;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  line-height: 1;
}
.cookie-modal-close:hover { color: #0a0a0a; }

.cookie-modal-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #0a0a0a;
  margin-bottom: 8px;
}
.cookie-modal-box > p {
  font-size: 12px;
  color: #6b6356;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Cookie category rows */
.cookie-category {
  border-top: 1px solid #f0ede8;
  padding: 18px 0;
}
.cookie-category:last-of-type {
  border-bottom: 1px solid #f0ede8;
  margin-bottom: 24px;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 16px;
}
.cookie-category-title {
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cookie-category-desc {
  font-size: 12px;
  color: #888780;
  line-height: 1.6;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: #c8c0b4;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: #b8965a;
}
.cookie-toggle input:disabled + .cookie-toggle-track {
  background: #0a0a0a;
  cursor: not-allowed;
  opacity: 0.9;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(18px);
}

.cookie-modal-footer {
  display: flex;
  gap: 10px;
}
.cookie-modal-footer .cookie-btn {
  flex: 1;
  text-align: center;
}

/* ── Re-open button (bottom-left after consent) ── */
.cookie-reopen {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 8900;
  background: #0a0a0a;
  color: #b8965a;
  border: 1px solid rgba(184,150,90,0.3);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s;
}
.cookie-reopen.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-reopen:hover { border-color: #b8965a; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .cookie-modal-box { padding: 32px 24px 28px; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
  .cookie-reopen { bottom: 20px; left: 20px; }
}
