:root {
  --consent-primary: #4526b1;
  --consent-primary-dark: #32188c;
  --consent-accent: #3ebfb7;
  --consent-text: #202224;
  --consent-muted: #54545f;
  --consent-border: #cfd3dc;
  --consent-surface: #ffffff;
  --consent-banner: #e9edf4;
  --consent-focus: #1b63d9;
}

.consent-banner[hidden],
.consent-backdrop[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  z-index: 10020;
  right: 24px;
  bottom: 24px;
  left: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--consent-text);
  background: var(--consent-banner);
  border: 1px solid #d8deea;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(21, 25, 38, 0.22);
}

.consent-banner__content {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.consent-banner__copy {
  max-width: 720px;
}

.consent-banner h2,
.consent-modal h2,
.consent-modal h3 {
  color: var(--consent-text);
}

.consent-banner h2,
.consent-modal h2 {
  margin: 0 0 8px;
  font-family: "Jost", sans-serif;
  font-size: 24px;
  line-height: 1.25;
}

.consent-banner p,
.consent-modal p {
  margin: 0;
  color: var(--consent-muted);
  font-size: 16px;
  line-height: 1.55;
}

.consent-banner a,
.consent-modal a {
  color: var(--consent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner__actions,
.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.consent-banner__actions {
  flex: 0 0 auto;
}

.consent-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.consent-button--primary {
  color: #ffffff;
  background: var(--consent-primary);
  border-color: var(--consent-primary);
}

.consent-button--primary:hover {
  color: #ffffff;
  background: var(--consent-primary-dark);
  border-color: var(--consent-primary-dark);
}

.consent-button--secondary {
  color: var(--consent-text);
  background: var(--consent-surface);
  border-color: #8a8f9c;
}

.consent-button--secondary:hover {
  color: var(--consent-primary-dark);
  border-color: var(--consent-primary);
}

.consent-button--link {
  color: var(--consent-primary-dark);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-button:focus-visible,
.consent-modal__close:focus-visible,
.consent-switch input:focus-visible + .consent-switch__track {
  outline: 3px solid var(--consent-focus);
  outline-offset: 3px;
}

.consent-backdrop {
  position: fixed;
  z-index: 10030;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
}

.consent-modal {
  position: fixed;
  z-index: 10040;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow-y: auto;
  color: var(--consent-text);
  background: var(--consent-surface);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.consent-modal__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
}

.consent-modal__header p + p {
  margin-top: 8px;
}

.consent-modal__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--consent-text);
  background: #f2f4f8;
  border: 1px solid var(--consent-border);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.consent-category {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--consent-border);
}

.consent-category__content {
  max-width: 500px;
}

.consent-category h3 {
  margin: 0 0 6px;
  font-family: "Jost", sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.consent-category__control {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.consent-always-active {
  color: var(--consent-muted);
  font-size: 14px;
  white-space: nowrap;
}

#consent-essential {
  width: 20px;
  height: 20px;
  accent-color: var(--consent-primary);
}

.consent-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-switch__track {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  background: #737985;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.consent-switch__track::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease;
}

.consent-switch input:checked + .consent-switch__track {
  background: var(--consent-primary);
}

.consent-switch input:checked + .consent-switch__track::after {
  transform: translateX(22px);
}

.consent-modal__actions {
  justify-content: flex-end;
  padding-top: 22px;
  border-top: 1px solid var(--consent-border);
}

.consent-modal-open {
  overflow: hidden;
}

.cookie-settings-button {
  padding: 0;
  color: #aea7c3;
  background: transparent;
  border: 0;
  font-size: 16px;
  line-height: inherit;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  color: #ffffff;
}

.cookie-settings-button:focus-visible,
.legal-inline-button:focus-visible {
  outline: 3px solid var(--consent-focus);
  outline-offset: 3px;
}

.legal-inline-button {
  padding: 0;
  color: var(--consent-primary);
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table {
  width: 100%;
  margin: 12px 0 28px;
  color: var(--consent-text);
  border-collapse: collapse;
  font-size: 16px;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--consent-border);
}

.legal-table th {
  background: #eef0f6;
  font-weight: 700;
}

.footer-wrapper-three .copyright .footer-bootm-list {
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: flex-end;
}

.footer-wrapper-three .copyright .footer-bootm-list li {
  margin-right: 0;
}

@media (max-width: 767px) {
  .footer-wrapper-three .copyright .footer-bootm-list {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .consent-banner__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-banner__actions {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 20px;
  }

  .consent-banner__actions,
  .consent-modal__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .consent-button {
    width: 100%;
  }

  .consent-modal {
    padding: 22px 18px;
  }

  .consent-category {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-category__control {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-switch__track,
  .consent-switch__track::after,
  .consent-button {
    transition: none;
  }
}
