.cookie-consent,
.cookie-modal {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182235;
}

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

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(440px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid rgba(24, 34, 53, .14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 34, 53, .22);
  padding: 20px;
}

.cookie-consent__title,
.cookie-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.cookie-consent__text,
.cookie-modal__text,
.cookie-option__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #526071;
}

.cookie-consent__text a,
.cookie-modal__text a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent__button,
.cookie-modal__button,
.footer-cookie-settings {
  appearance: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.cookie-consent__button,
.cookie-modal__button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.cookie-consent__button--primary,
.cookie-modal__button--primary {
  background: #0f766e;
  color: #ffffff;
}

.cookie-consent__button--secondary,
.cookie-modal__button--secondary {
  border: 1px solid rgba(24, 34, 53, .16);
  background: #ffffff;
  color: #263244;
}

.cookie-consent__button--plain,
.cookie-modal__button--plain {
  background: #f3f4f6;
  color: #263244;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, .52);
}

.cookie-modal__panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(17, 24, 39, .28);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(24, 34, 53, .12);
}

.cookie-option:first-of-type {
  margin-top: 16px;
}

.cookie-option__title {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 15px;
}

.cookie-option__required {
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

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

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(17, 24, 39, .24);
  transition: transform .2s ease;
}

.cookie-switch input:checked + span {
  background: #0f766e;
}

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

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(15, 118, 110, .28);
  outline-offset: 3px;
}

.footer-cookie-settings {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: inherit;
}

.form-privacy-note {
  margin: 12px 0 0;
  color: var(--c-muted, #526071);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}

.form-privacy-note a {
  color: var(--c-accent, #0f766e);
  font-weight: 700;
  text-decoration: none;
}

.form-privacy-note a:hover,
.form-privacy-note a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    padding: 18px;
  }

  .cookie-consent__actions,
  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-consent__button,
  .cookie-modal__button {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }
}
