/* ==========================================================================
   cookie-consent.css – banner GDPR și fereastra de setări, în stilul site.css
   ========================================================================== */

#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 30px rgba(28, 43, 54, 0.14);
  padding: 22px 20px;
  z-index: 99996;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 3px solid var(--teal, #0b7080);
  font-family: var(--sans, 'Lato', sans-serif);
}

#cookieConsent.show { transform: translateY(0); }

.cookie-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-right: 70px;
}

.cookie-text { flex: 1; min-width: 280px; }

.cookie-text h3 {
  margin: 0 0 6px;
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 1.15rem;
  color: var(--ink, #1c2b36);
}

.cookie-text p { margin: 0; font-size: 0.93rem; color: var(--muted, #64717b); line-height: 1.5; }
.cookie-text a { color: var(--teal, #0b7080); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-btn {
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: var(--sans, 'Lato', sans-serif);
}

.cookie-btn-accept { background: var(--teal, #0b7080); border-color: var(--teal, #0b7080); color: #fff; }
.cookie-btn-accept:hover { background: var(--teal-dark, #075b69); border-color: var(--teal-dark, #075b69); transform: translateY(-2px); }
.cookie-btn-decline { background: #fff; color: var(--ink, #1c2b36); border-color: var(--line, #e7e1d6); }
.cookie-btn-decline:hover { border-color: var(--ink, #1c2b36); }
.cookie-btn-settings { background: transparent; color: var(--teal, #0b7080); border-color: var(--teal, #0b7080); }
.cookie-btn-settings:hover { background: var(--teal, #0b7080); color: #fff; }

/* fereastra de setări */
#cookieSettings {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 30, 0.7);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookieSettings.show { display: flex; }

.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  font-family: var(--sans, 'Lato', sans-serif);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line, #e7e1d6);
}

.cookie-modal-header h2 { margin: 0; font-family: var(--serif, 'Playfair Display', serif); font-size: 1.35rem; color: var(--ink, #1c2b36); }

.cookie-modal-close {
  background: var(--cream, #f8f5ef);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink, #1c2b36);
}

.cookie-modal-close:hover { background: var(--teal, #0b7080); color: #fff; }

.cookie-modal-body { padding: 10px 26px; }

.cookie-category { padding: 16px 0; border-bottom: 1px solid var(--line, #e7e1d6); }
.cookie-category:last-child { border-bottom: none; }
.cookie-category-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie-category h3 { margin: 0; font-size: 1rem; font-family: var(--sans, 'Lato', sans-serif); font-weight: 700; color: var(--ink, #1c2b36); }
.cookie-category p { margin: 0; font-size: 0.9rem; color: var(--muted, #64717b); line-height: 1.5; }
.cookie-required { font-size: 0.8rem; color: var(--teal, #0b7080); font-weight: 700; }

.cookie-toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-slider {
  position: absolute;
  inset: 0;
  background: #cfd8dd;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.cookie-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cookie-toggle input:checked + .cookie-slider { background: var(--teal, #0b7080); }
.cookie-toggle input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-slider { opacity: 0.6; cursor: not-allowed; }

.cookie-modal-footer { padding: 18px 26px 24px; border-top: 1px solid var(--line, #e7e1d6); text-align: right; }

@media (max-width: 767px) {
  #cookieConsent { padding: 18px 16px; max-height: 70vh; overflow-y: auto; }
  .cookie-container { padding-right: 0; padding-bottom: 56px; gap: 14px; }
  .cookie-text { min-width: 0; }
  .cookie-text p { font-size: 0.88rem; }
  .cookie-buttons { width: 100%; gap: 8px; }
  .cookie-btn { flex: 1 1 auto; text-align: center; white-space: normal; padding: 10px 14px; }
}
