/* ── Cookie Consent — adverr® design ──────────────────────────────────── */

/* Banner */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  border-top: 1px solid #e3ddd0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(14,14,14,0.08);
  animation: ccSlideUp .3s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes ccSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cc-banner__text {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  color: #353535;
  line-height: 1.5;
  min-width: 200px;
}
.cc-banner__link {
  color: #c69b3d;
  font-weight: 600;
  margin-left: 4px;
  text-decoration: none;
}
.cc-banner__link:hover { text-decoration: underline; }
.cc-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn--gold {
  background: #0e0e0e;
  color: #fff;
  border-color: #0e0e0e;
}
.cc-btn--gold:hover { background: #9a7423; border-color: #9a7423; }
.cc-btn--ghost {
  background: transparent;
  color: #0e0e0e;
  border-color: #0e0e0e;
}
.cc-btn--ghost:hover { background: #0e0e0e; color: #fff; }
.cc-btn--full { flex: 1; }

/* Overlay */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(14,14,14,0.5);
  backdrop-filter: blur(2px);
  animation: ccFadeIn .2s ease both;
}
.cc-overlay[aria-hidden="true"] { display: none; }
@keyframes ccFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal */
.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9200;
  background: #faf6ec;
  border: 1px solid #e3ddd0;
  border-radius: 16px;
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 680px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(14,14,14,0.18);
  animation: ccModalIn .25s cubic-bezier(.25,.46,.45,.94) both;
}
.cc-modal[aria-hidden="true"] { display: none; }
@keyframes ccModalIn {
  from { transform: translate(-50%, -48%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}
.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e3ddd0;
  flex-shrink: 0;
}
.cc-modal__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0e0e0e;
}
.cc-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #6b6b6b;
  border-radius: 6px;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
}
.cc-modal__close:hover { background: #f5f1e8; color: #0e0e0e; }

.cc-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.cc-modal__intro {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 10px;
  line-height: 1.55;
}

.cc-modal__footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e3ddd0;
  flex-shrink: 0;
}

/* Categories accordion */
.cc-cats { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }

.cc-cat { border: 1px solid #e3ddd0; border-radius: 10px; overflow: hidden; background: #fff; }

.cc-cat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0e0e0e;
  transition: background .15s;
}
.cc-cat__head:hover { background: #f5f1e8; }

.cc-cat__arrow {
  flex-shrink: 0;
  color: #6b6b6b;
  transition: transform .2s;
}
.cc-cat__head[aria-expanded="true"] .cc-cat__arrow {
  transform: rotate(90deg);
}

.cc-cat__label { flex: 1; }

.cc-cat__always {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2c7a4b;
  flex-shrink: 0;
}

.cc-cat__body {
  padding: 0 16px 14px 40px;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.55;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-toggle__track {
  width: 42px;
  height: 24px;
  background: #e3ddd0;
  border-radius: 999px;
  transition: background .2s;
  position: relative;
}
.cc-toggle input:checked ~ .cc-toggle__track { background: #c69b3d; }
.cc-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform .2s;
}
.cc-toggle input:checked ~ .cc-toggle__track .cc-toggle__thumb {
  transform: translateX(18px);
}

/* Responsive */
@media (max-width: 600px) {
  .cc-banner { padding: 14px 16px; gap: 12px; }
  .cc-banner__actions { width: 100%; }
  .cc-btn { padding: 10px 16px; font-size: 12px; }
  .cc-modal__header { padding: 16px 16px 12px; }
  .cc-modal__body  { padding: 14px 16px; }
  .cc-modal__footer { padding: 12px 16px; }
}
