.k24-consent-layer[hidden],
.k24-consent-settings[hidden],
.k24-consent-summary[hidden],
.k24-consent-close[hidden],
.k24-consent-manage[hidden] {
  display: none !important;
}

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

.k24-consent-layer,
.k24-consent-backdrop {
  position: fixed;
  inset: 0;
}

.k24-consent-layer {
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  color: #172033;
  font-family: inherit;
}

.k24-consent-backdrop {
  background: rgba(6, 14, 35, 0.58);
}

.k24-consent-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: #ffffff;
  border-top: 4px solid #ff477e;
  box-shadow: 0 18px 60px rgba(6, 14, 35, 0.28);
  outline: 0;
}

.k24-consent-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: center;
  padding: 28px 32px;
}

.k24-consent-copy h2,
.k24-consent-settings h2 {
  margin: 0 0 10px;
  color: #0b1730;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: 0;
}

.k24-consent-copy p,
.k24-consent-option p {
  margin: 0;
  color: #596273;
  font-size: 14px;
  line-height: 1.65;
}

.k24-consent-copy a,
.k24-consent-settings-actions a {
  color: #0d4eaf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.k24-consent-eyebrow {
  margin-bottom: 7px !important;
  color: #ff477e !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.2 !important;
  text-transform: uppercase;
  letter-spacing: 0 !important;
}

.k24-consent-actions {
  display: grid;
  gap: 9px;
}

.k24-consent-btn,
.k24-consent-link,
.k24-consent-back,
.k24-consent-close,
.k24-consent-manage {
  border: 0;
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.k24-consent-btn {
  min-height: 44px;
  padding: 11px 18px;
  color: #0b1730;
  background: #eef1f5;
  font-size: 13px;
  font-weight: 700;
}

.k24-consent-btn--primary {
  color: #ffffff;
  background: #ff477e;
}

.k24-consent-btn:hover,
.k24-consent-btn:focus-visible {
  background: #dfe4eb;
}

.k24-consent-btn--primary:hover,
.k24-consent-btn--primary:focus-visible {
  color: #ffffff;
  background: #e9326b;
}

.k24-consent-link,
.k24-consent-back {
  padding: 6px;
  color: #0d4eaf;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.k24-consent-btn:focus-visible,
.k24-consent-link:focus-visible,
.k24-consent-back:focus-visible,
.k24-consent-close:focus-visible,
.k24-consent-manage:focus-visible,
.k24-switch input:focus-visible + span {
  outline: 3px solid rgba(13, 78, 175, 0.35);
  outline-offset: 2px;
}

.k24-consent-btn:active,
.k24-consent-link:active,
.k24-consent-back:active {
  position: static;
  top: auto !important;
}

.k24-consent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0b1730;
  background: #eef1f5;
  font-size: 25px;
  line-height: 1;
}

.k24-consent-close:active {
  position: absolute;
  top: 14px !important;
}

.k24-consent-settings {
  padding: 24px 30px 26px;
}

.k24-consent-settings-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 44px;
  margin-bottom: 18px;
}

.k24-consent-settings-head h2 {
  margin: 0;
}

.k24-consent-options {
  border-top: 1px solid #dfe4eb;
}

.k24-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 15px 4px;
  margin: 0;
  border-bottom: 1px solid #dfe4eb;
}

label.k24-consent-option {
  cursor: pointer;
}

.k24-consent-option strong {
  display: block;
  margin-bottom: 4px;
  color: #0b1730;
  font-size: 15px;
}

.k24-consent-required {
  color: #24754b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.k24-switch {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
}

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

.k24-switch span {
  position: absolute;
  inset: 0;
  background: #abb3bf;
  border-radius: 20px;
  transition: background-color 160ms ease;
}

.k24-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.k24-switch input:checked + span {
  background: #ff477e;
}

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

.k24-consent-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}

.k24-consent-settings-actions .k24-consent-btn {
  min-width: 210px;
}

.k24-consent-manage {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99999;
  min-height: 36px;
  padding: 8px 12px;
  color: #ffffff;
  background: #0b1730;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 18px rgba(6, 14, 35, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.k24-consent-manage:hover,
.k24-consent-manage:focus-visible {
  color: #ffffff;
  background: #17243d;
}

.k24-consent-manage:active {
  position: fixed;
  top: auto !important;
}

@media (max-width: 767px) {
  .k24-consent-layer {
    padding: 0;
  }

  .k24-consent-dialog {
    width: 100%;
    max-height: 92vh;
    border-top-width: 3px;
  }

  .k24-consent-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px 20px;
  }

  .k24-consent-copy h2,
  .k24-consent-settings h2 {
    font-size: 21px;
  }

  .k24-consent-copy p,
  .k24-consent-option p {
    font-size: 13px;
  }

  .k24-consent-actions {
    grid-template-columns: 1fr 1fr;
  }

  .k24-consent-actions .k24-consent-link {
    grid-column: 1 / -1;
  }

  .k24-consent-settings {
    padding: 20px 18px;
  }

  .k24-consent-settings-head {
    display: block;
    padding-right: 42px;
  }

  .k24-consent-settings-head h2 {
    margin-top: 8px;
  }

  .k24-consent-option {
    gap: 14px;
    min-height: 90px;
  }

  .k24-consent-settings-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .k24-consent-settings-actions .k24-consent-btn {
    width: 100%;
    min-width: 0;
  }

  .k24-consent-manage {
    left: 8px;
    bottom: 8px;
    min-height: 34px;
    max-width: calc(100vw - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .k24-switch span,
  .k24-switch span::after {
    transition: none;
  }
}
