.cookie-banner,
.cookie-modal {
  font-family: Arial, sans-serif;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #111827;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cookie-banner__content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 420px;
}

.cookie-banner__text h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cookie-banner__text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
}

.cookie-banner__links a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
}

.cookie-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.cookie-btn:hover {
  opacity: 0.9;
}

.cookie-btn--primary {
  background: #2563eb;
  color: #fff;
}

.cookie-btn--secondary {
  background: #374151;
  color: #fff;
}

.cookie-btn--ghost {
  background: #fff;
  color: #111827;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 32px);
  margin: 60px auto;
  background: #fff;
  color: #111827;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.cookie-modal__header,
.cookie-modal__footer {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-modal__footer {
  border-bottom: 0;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal__header h3 {
  margin: 0;
  font-size: 20px;
}

.cookie-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.cookie-modal__body {
  padding: 20px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cookie-category:last-child {
  border-bottom: 0;
}

.cookie-category__info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.cookie-category__info p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: #2563eb;
}

.cookie-switch input:checked + span::before {
  transform: translateX(22px);
}



@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__content {
    padding: 16px;
  }

  .cookie-modal__dialog {
    margin: 20px auto;
    width: calc(100% - 16px);
  }

  .cookie-modal__footer {
    justify-content: stretch;
  }

  .cookie-modal__footer .cookie-btn,
  .cookie-banner__actions .cookie-btn {
    width: 100%;
  }
}