.ch-cookie-consent {
  --ch-cookie-text: #1f2933;
  --ch-cookie-muted: #52606d;
  --ch-cookie-border: #d9e2ec;
  --ch-cookie-surface: #ffffff;
  --ch-cookie-action: #176b87;
  --ch-cookie-action-hover: #10566d;
  color: var(--ch-cookie-text);
  font-size: 14px;
  line-height: 1.5;
}

.ch-cookie-banner {
  position: fixed;
  z-index: 100000;
  bottom: 24px;
  left: 50%;
  width: min(calc(100% - 48px), 1240px);
  padding: 18px;
  border: 1px solid var(--ch-cookie-border);
  border-radius: 6px;
  background: var(--ch-cookie-surface);
  box-shadow: 0 8px 28px rgba(31, 41, 51, .18);
  transform: translateX(-50%);
}

.ch-cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.ch-cookie-banner__copy {
  max-width: 720px;
}

.ch-cookie-banner h2,
.ch-cookie-modal h2 {
  margin: 0 0 6px;
  color: var(--ch-cookie-text);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ch-cookie-banner p,
.ch-cookie-modal p {
  margin: 0;
  color: var(--ch-cookie-muted);
}

.ch-cookie-banner a,
.ch-cookie-modal a {
  color: var(--ch-cookie-action);
  text-decoration: underline;
}

.ch-cookie-banner__actions,
.ch-cookie-modal__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.ch-cookie-btn {
  --ch-cookie-button-color: var(--ch-cookie-action);
  --ch-cookie-button-foreground: #ffffff;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--ch-cookie-button-color);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ch-cookie-btn--decision {
  color: var(--ch-cookie-button-foreground);
  background: var(--ch-cookie-button-color);
}

.ch-cookie-btn--decision:hover,
.ch-cookie-btn--decision:focus {
  color: var(--ch-cookie-button-foreground);
  filter: brightness(.9);
}

.ch-cookie-btn--secondary {
  color: var(--ch-cookie-button-color);
  background: #ffffff;
}

.ch-cookie-btn--secondary:hover,
.ch-cookie-btn--secondary:focus {
  background: #edf7fa;
}

.ch-cookie-btn--icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
}

.ch-cookie-btn--secondary.ch-cookie-btn--icon {
  border-color: transparent;
  background: transparent;
  font-size: 19px;
}

.ch-cookie-modal[hidden],
.ch-cookie-banner[hidden] {
  display: none !important;
}

.ch-cookie-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ch-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .58);
}

.ch-cookie-modal__dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border-radius: 6px;
  background: var(--ch-cookie-surface);
  box-shadow: 0 16px 44px rgba(17, 24, 39, .28);
}

.ch-cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  color: var(--ch-cookie-muted);
  background: transparent;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

.ch-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ch-cookie-border);
}

.ch-cookie-category strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.ch-cookie-category input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
}

.ch-cookie-always {
  flex: 0 0 auto;
  color: #2f855a;
  font-size: 12px;
  font-weight: 700;
}

.ch-cookie-modal__actions {
  margin-top: 20px;
}

.ch-cookie-policy-link {
  display: inline-block;
  margin-top: 16px;
}

.ch-cookie-footer-control {
  padding: 0 15px 18px;
  text-align: center;
}

.ch-cookie-footer-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ch-cookie-policy-action {
  margin-top: 20px;
}

body.ch-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ch-cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .ch-cookie-banner__content {
    display: block;
  }

  .ch-cookie-banner__actions {
    margin-top: 14px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .ch-cookie-banner__actions .ch-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 44px;
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .ch-cookie-banner__actions .ch-cookie-btn.ch-cookie-btn--icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
  }

  .ch-cookie-modal__dialog {
    padding: 20px;
  }

  .ch-cookie-modal__actions .ch-cookie-btn {
    flex: 1 1 100%;
  }
}
