/* ---------- 17. Cookie banner and settings dialog ---------- */
.cc-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1500;
  width: min(430px, calc(100vw - 24px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(158, 182, 116, 0.4);
  border-radius: 16px;
  background: rgba(20, 17, 14, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: 'Barlow', 'Inter', -apple-system, sans-serif;
}
.cc-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.cc-banner__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: none;
}
.cc-banner__text a,
.cc-dialog__intro a { color: #9EB674; text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-actions--3 { grid-template-columns: 1fr 1fr 1fr; margin-top: 22px; }
.cc-btn {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #F2EEE6;
  border-radius: 999px;
  background: #F2EEE6;
  color: #12100D;
  font: 700 15px/1 'Barlow', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cc-btn:hover { background: #fff; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible,
.cc-link:focus-visible,
.legal-btn:focus-visible { outline: 2px solid #9EB674; outline-offset: 3px; }
.cc-link {
  display: block;
  margin: 12px auto 0;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font: 600 14px/1 'Barlow', 'Inter', sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cc-link:hover { color: #fff; }

.cc-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid rgba(158, 182, 116, 0.4);
  border-radius: 18px;
  background: #14110e;
  color: #fff;
  overflow: auto;
}
.cc-dialog::backdrop { background: rgba(6, 5, 4, 0.7); }
.cc-dialog__inner { padding: 26px; font-family: 'Barlow', 'Inter', sans-serif; }
.cc-dialog__title { margin: 0 0 6px !important; font-size: 26px !important; }
.cc-dialog__intro { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); max-width: none; }
.cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-row__title { display: block; font-size: 17px; font-weight: 700; color: #fff; cursor: pointer; }
.cc-row__text { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.68); max-width: none; }
.cc-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.cc-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}
.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-switch__track { background: #6E824D; }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(22px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch__track { opacity: 0.6; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid #9EB674; outline-offset: 3px; }

@media (max-width: 560px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 14px; }
  .cc-actions--3 { grid-template-columns: 1fr; }
  .cc-dialog__inner { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-btn, .cc-switch__track, .cc-switch__track::after { transition: none; }
}

/* Footer legal links */
.legal-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.legal-links a,
.legal-links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  opacity: 0.85;
}
.legal-links a:hover,
.legal-links button:hover { opacity: 1; color: #fff; }

.cc-dialog { margin: auto; }
.legal-links button { text-transform: inherit; letter-spacing: inherit; }
