/* =========================
   Cookie Consent
========================= */

:root {
  --cookie-bg: #ffffff;
  --cookie-text: #111827;
  --cookie-muted: #6b7280;
  --cookie-border: #e5e7eb;
  --cookie-primary: #19c2e6;
  --cookie-primary-hover: #13add0;
  --cookie-secondary-bg: #ffffff;
  --cookie-secondary-text: #111827;
  --cookie-switch-off: #cbd5e1;
  --cookie-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --cookie-radius: 18px;
}

.cookie-banner,
.cookie-modal {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cookie-text);
  box-sizing: border-box;
}

.cookie-banner *,
.cookie-modal * {
  box-sizing: border-box;
}

/* Banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  width:60%;
}

.cookie-banner__inner {
  margin: 0 auto;
  background: var(--cookie-bg);
  border: 1px solid var(--cookie-border);
  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-shadow);
  padding: 24px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__content {
  margin-bottom:25px;
  
}

.cookie-banner__content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.cookie-banner__content p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-banner__links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.cookie-banner__links a {
  color: #0f7491;
  text-decoration: none;
}

.cookie-banner__links a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons */
.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cookie-btn--primary {
  background: #19c2e6 !important;
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: var(--cookie-primary-hover);
}

.cookie-btn--secondary {
  background: var(--cookie-secondary-bg);
  color: var(--cookie-secondary-text);
  border-color: #cbd5e1;
}

.cookie-btn--secondary:hover {
  background: #f8fafc;
}

.cookie-btn--text {
  background: transparent;
  color: #0f7491;
  border-color: transparent;
}

.cookie-btn:focus-visible,
.cookie-modal__close:focus-visible,
.cookie-switch input:focus-visible + .cookie-switch__slider {
  outline: 3px solid rgba(25, 194, 230, .28);
  outline-offset: 2px;
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.58);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.cookie-modal__dialog {
  width: min(825px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--cookie-bg);
  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-shadow);
}

.cookie-modal__header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--cookie-border);
}

.cookie-modal__header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.cookie-modal__header p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 16px;
  line-height: 1.55;
}

.cookie-modal__close {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.cookie-modal__body {
  padding: 6px 30px 0;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--cookie-border);
}

.cookie-option__content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.cookie-option__content p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 15px;
  line-height: 1.5;
}

.cookie-option__control {
  flex: 0 0 auto;
}

.cookie-always-active {
  color: #0087a8;
  font-size: 14px;
  font-weight: 700;
}

/* Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 34px;
}

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

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--cookie-switch-off);
  border-radius: 999px;
  transition: .2s ease;
}

.cookie-switch__slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 4px;
  top: 4px;
  background: #ffffff;
  border-radius: 50%;
  transition: .2s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--cookie-primary);
}

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

.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 30px;
}

/* Responsive */
@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__inner {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
    flex-direction: column;
  }

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

  .cookie-modal {
    padding: 12px;
  }

  .cookie-modal__header {
    padding: 22px 20px 18px;
  }

  .cookie-modal__body {
    padding: 4px 20px 0;
  }

  .cookie-option {
    gap: 18px;
  }

  .cookie-modal__footer {
    padding: 20px;
    flex-direction: column;
  }

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