.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  background: #1A1A1A;
  border: 1px solid rgba(196, 146, 42, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-inner {
  padding: 28px 28px 24px;
}

.cookie-header {
  margin-bottom: 20px;
}

.cookie-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #F0EBE0;
  margin-bottom: 8px;
}

.cookie-header p {
  font-size: 0.875rem;
  color: #8A8278;
  line-height: 1.6;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 146, 42, 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.cookie-cat-info {
  flex: 1;
}

.cookie-cat-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #F0EBE0;
  margin-bottom: 2px;
}

.cookie-cat-desc {
  display: block;
  font-size: 0.775rem;
  color: #6A6460;
  line-height: 1.4;
}

.cookie-toggle-wrap {
  position: relative;
  flex-shrink: 0;
}

.cookie-toggle-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle {
  display: block;
  width: 40px;
  height: 22px;
  background: #333;
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-toggle-wrap input:checked + .cookie-toggle {
  background: #C4922A;
}

.cookie-toggle-wrap input:checked + .cookie-toggle::after {
  transform: translateX(18px);
}

.cookie-toggle.always-on {
  background: rgba(196, 146, 42, 0.3);
  cursor: default;
}

.cookie-toggle.always-on::after {
  transform: translateX(18px);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.cookie-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cookie-btn-save {
  background: transparent;
  border: 1px solid rgba(196, 146, 42, 0.3);
  color: #C4922A;
}

.cookie-btn-save:hover {
  background: rgba(196, 146, 42, 0.1);
}

.cookie-btn-all {
  background: #C4922A;
  color: #0D0D0D;
}

.cookie-btn-all:hover {
  background: #DFB44A;
}

.cookie-legal-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cookie-legal-links a {
  font-size: 11px;
  color: #504840;
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-legal-links a:hover {
  color: #C4922A;
}

@media (max-width: 480px) {
  .cookie-inner {
    padding: 20px 20px 18px;
  }
  .cookie-actions {
    flex-direction: column;
  }
}
