.cookie-consent {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  font-family: inherit;
  color: #f8fafc;
}

.cookie-consent__banner {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 1rem;
  backdrop-filter: blur(6px);
}

.cookie-consent__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #f8fafc;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.consent-btn {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(248, 250, 252, 0.15);
  color: #f8fafc;
}

.consent-btn--primary {
  background: #f59e0b;
  color: #111827;
}

.consent-btn--ghost {
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.4);
}

.cookie-consent__fab {
  margin-top: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.cookie-consent__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.cookie-consent__modal-panel {
  position: relative;
  background: #ffffff;
  color: #111827;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: min(780px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 1.2rem;
}

.cookie-consent__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-consent__modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.cookie-consent__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.cookie-consent__lead {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.cookie-consent__categories {
  display: grid;
  gap: 1rem;
}

.cookie-consent__category {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  background: #f8fafc;
}

.cookie-consent__category-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cookie-consent__category-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.cookie-consent__category-header p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.cookie-consent__cookie-list {
  list-style: none;
  padding: 0.6rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #374151;
}

.cookie-consent__cookie-list strong {
  color: #111827;
}

.cookie-consent__cookie-empty {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.cookie-consent__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-consent__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cookie-consent__switch input {
  appearance: none;
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5f5;
  position: relative;
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.cookie-consent__switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.cookie-consent__switch input:checked {
  background: #22c55e;
}

.cookie-consent__switch input:checked::after {
  transform: translateX(22px);
}

.cookie-consent__switch input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .cookie-consent__banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .cookie-consent__modal-panel {
    padding: 1.1rem;
  }
}
