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

body.cookie-consent-open {
  overflow: hidden;
}

.cookie-consent-banner .btn,
.cookie-consent-modal .btn,
.cookie-consent-manage {
  appearance: none;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cookie-consent-banner .btn i,
.cookie-consent-modal .btn i,
.cookie-consent-manage i {
  margin-right: 0.35rem;
}

.cookie-consent-banner .btn:hover,
.cookie-consent-modal .btn:hover,
.cookie-consent-manage:hover {
  text-decoration: none;
}

.cookie-consent-banner .btn-primary,
.cookie-consent-modal .btn-primary {
  background: #0d6efd;
  border: 1px solid #0d6efd;
  color: #fff;
}

.cookie-consent-banner .btn-primary:hover,
.cookie-consent-modal .btn-primary:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.cookie-consent-banner .btn-outline-primary,
.cookie-consent-modal .btn-outline-primary,
.cookie-consent-manage {
  background: #fff;
  border: 1px solid #98a2b3;
  color: #344054;
}

.cookie-consent-banner .btn-outline-primary:hover,
.cookie-consent-modal .btn-outline-primary:hover,
.cookie-consent-manage:hover {
  background: #f8fafc;
  border-color: #667085;
  color: #101828;
}

.cookie-consent-banner .btn-outline-secondary,
.cookie-consent-modal .btn-outline-secondary {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: #344054;
}

.cookie-consent-banner .btn-outline-secondary:hover,
.cookie-consent-modal .btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #98a2b3;
  color: #101828;
}

.cookie-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 16000;
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.18);
}

.cookie-consent-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.cookie-consent-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
}

.cookie-consent-banner__text {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 720px;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cookie-consent-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15950;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 17000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.cookie-consent-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 2rem);
}

.cookie-consent-modal__card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.22);
  overflow: hidden;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.cookie-consent-modal__header,
.cookie-consent-modal__footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eaecf0;
}

.cookie-consent-modal__footer {
  border-top: 1px solid #eaecf0;
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-consent-modal__body {
  padding: 1.1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.cookie-consent-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #101828;
}

.cookie-consent-modal__subtitle {
  margin: 0.35rem 0 0;
  color: #667085;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent-grid {
  display: grid;
  gap: 0.9rem;
}

.cookie-consent-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 1rem 1rem 0.95rem;
  background: #fcfcfd;
}

.cookie-consent-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.cookie-consent-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
}

.cookie-consent-card__summary {
  margin: 0.2rem 0 0;
  color: #475467;
  font-size: 0.93rem;
  line-height: 1.5;
}

.cookie-consent-card__note {
  margin-top: 0.8rem;
  color: #667085;
  font-size: 0.88rem;
}

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

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-switch__slider {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-consent-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 24, 40, 0.2);
  transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider {
  background: #0d6efd;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider::after {
  transform: translateX(18px);
}

.cookie-consent-switch input:disabled + .cookie-consent-switch__slider {
  background: #101828;
  opacity: 0.9;
}

.cookie-consent-meta {
  color: #667085;
  font-size: 0.87rem;
}

@media (max-width: 767.98px) {
  .cookie-consent-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.95rem;
  }

  .cookie-consent-banner__actions {
    justify-content: stretch;
  }

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

  .cookie-consent-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
  }

  .cookie-consent-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-manage {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
