/* Cookie consent banner + settings — Mechanik Radom */

.cc-banner {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 9999;
  background: var(--surface, #131922);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.16));
  border-radius: var(--radius, 14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 20px;
  max-width: 760px;
  margin-inline: auto;
  color: var(--text, #fff);
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}

@media (min-width: 768px) {
  .cc-banner { padding: 24px 28px; }
}

.cc-banner__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cc-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 24, 61, 0.15);
  border: 1px solid rgba(212, 24, 61, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--red, #d4183d);
}

@media (min-width: 640px) {
  .cc-banner__icon { display: flex; }
}

.cc-banner__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}

.cc-banner__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute, #cbced4);
}

.cc-banner__text a {
  color: var(--red-3, #ef4444);
  font-weight: 600;
  text-decoration: none;
}

.cc-banner__text a:hover { text-decoration: underline; }

.cc-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .cc-banner__actions { flex-direction: row; }
}

.cc-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex: 1;
  text-align: center;
}

.cc-btn--primary {
  background: var(--red, #d4183d);
  color: #fff;
}

.cc-btn--primary:hover { background: var(--red-2, #dc2626); }

.cc-btn--secondary {
  background: transparent;
  border-color: var(--border-strong, rgba(255,255,255,0.16));
  color: var(--text, #fff);
}

.cc-btn--secondary:hover { background: rgba(255,255,255,0.04); }

.cc-btn--ghost {
  background: transparent;
  color: var(--text-mute, #cbced4);
  flex: 0;
  padding: 11px 14px;
}

.cc-btn--ghost:hover { color: var(--text, #fff); }

/* Modal */

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font, 'Inter', system-ui, sans-serif);
}

.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.cc-modal__card {
  position: relative;
  background: var(--surface, #131922);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.16));
  border-radius: var(--radius-lg, 22px);
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  color: var(--text, #fff);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.cc-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--text-mute, #cbced4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.cc-modal__close:hover { color: #fff; }

.cc-modal__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-3, #ef4444);
  font-weight: 700;
  margin-bottom: 8px;
}

.cc-modal__title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.cc-modal__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute, #cbced4);
  margin: 0 0 20px;
}

.cc-cat {
  background: var(--bg-1, #000);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cc-cat__body { flex: 1; min-width: 0; }
.cc-cat__title { font-weight: 700; font-size: 13.5px; }
.cc-cat__desc { font-size: 12px; color: var(--text-mute, #cbced4); margin-top: 4px; line-height: 1.5; }

.cc-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border-strong, rgba(255,255,255,0.16));
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: 0;
  transition: background 0.15s;
}

.cc-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.cc-toggle:checked { background: var(--red, #d4183d); }
.cc-toggle:checked::after { transform: translateX(20px); }
.cc-toggle:disabled { opacity: 0.6; cursor: not-allowed; }

.cc-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .cc-modal__actions { flex-direction: row; }
}

.cc-modal__footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-mute, #cbced4);
}

.cc-modal__footer a {
  color: var(--red-3, #ef4444);
  text-decoration: none;
}

.cc-modal__footer a:hover { text-decoration: underline; }

/* Footer-link styling reused */
.footer__legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 12.5px;
  color: var(--text-mute, #cbced4);
}

.footer__legal a, .footer__legal button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.footer__legal a:hover, .footer__legal button:hover { color: #fff; }
