.cookie-banner {
  position: fixed;
  bottom: 0;
  max-width: 100vw;
  max-height: 90vh;
  background-color: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(15px, 3vw, 40px);
  font-family: inherit;
  z-index: 999999;
  box-sizing: border-box;

  overflow-y: auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.cookie-banner h2 {
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 clamp(6px, 1.2vh, 12px) 0;
}

.cookie-description {
  font-size: clamp(11px, 1.4vw, 14px);
  color: #334155;
  line-height: 1.6;
  margin-bottom: clamp(12px, 2.5vh, 24px);
}

.cookie-description a {
  color: #1e3a8a;
  text-decoration: underline;
}

.cookie-options-list {
  margin-bottom: clamp(15px, 3vh, 28px);
  border-top: 1px solid #e2e8f0;
}

.cookie-option-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.5vh, 14px) 0;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-option-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(6px, 1.5vw, 15px);
  font-size: clamp(11px, 1.3vw, 13px);
}

.cookie-option-info strong {
  min-width: clamp(120px, 15vw, 160px);
  color: #0f172a;
}

.cookie-option-info span {
  color: #475569;
}

.status-always {
  font-size: clamp(10px, 1.2vw, 12px);
  color: #64748b;
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: clamp(40px, 5vw, 50px);
  height: clamp(20px, 2.5vw, 24px);
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 75%;
  aspect-ratio: 1 / 1;
  left: 3px;
  bottom: 12.5%;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1e3a8a;
}

input:checked + .slider:before {
  transform: translateX(calc(clamp(40px, 5vw, 50px) - 100% - 6px));
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  margin-bottom: clamp(10px, 2vh, 15px);
}

.cookie-btn {
  width: clamp(140px, 25vw, 250px);
  padding: clamp(9px, 1.6vh, 12px) clamp(12px, 2vw, 20px);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #1e3a8a;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #172554;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.cookie-footer-links {
  text-align: center;
  font-size: clamp(10px, 1.2vw, 12px);
  margin-top: clamp(10px, 2vh, 15px);
}

.cookie-footer-links a {
  color: #475569;
  text-decoration: underline;
  margin: 0 5px;
}

@media (max-width: 480px) {
  .cookie-banner {
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    padding: 15px;
  }

  .cookie-option-info strong {
    min-width: 100%;
  }
}

@media (min-width: 768px) {
  .cookie-banner {
    max-width: 100%;
    max-height: 90vh;

    z-index: 999999;
    box-sizing: border-box;

    overflow-y: auto;

    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .cookie-banner {
    width: 100vw;
    max-height: 90vh;
  }
}

body.dark-mode {
  .cookie-banner {
    background-color: #252525;
    box-shadow: 0 10px 40px rgba(221, 218, 218, 0.35);
  }

  .cookie-banner h2 {
    color: #0057b7;
  }

  .cookie-description {
    color: #cbdcea;
  }

  .cookie-description a {
    color: #cbdcea;
  }

  .cookie-options-list {
    border-top: 1px solid #e2e8f0;
  }

  .cookie-option-item {
    border-bottom: 1px solid #e2e8f0;
  }

  .cookie-option-info strong {
    color: #0057b7;
  }

  .cookie-option-info span {
    color: #cbdcea;
  }

  .status-always {
    color: #cbdcea;
  }

  .slider {
    background-color: #cbd5e1;
  }

  .slider:before {
    background-color: white;
  }

  input:checked + .slider {
    background-color: #1e3a8a;
  }

  .btn-primary {
    background-color: #1e3a8a;
    color: #ffffff;
  }

  .btn-primary:hover {
    background-color: #172554;
  }

  .btn-secondary {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
  }

  .btn-secondary:hover {
    background-color: #e2e8f0;
  }

  .cookie-footer-links a {
    color: #cbdcea;
  }
}
