.lk-consent-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(26, 18, 12, 0.62);
  box-sizing: border-box;
}

.lk-consent-root.is-visible {
  display: flex;
}

.lk-consent-dialog {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(104, 67, 36, 0.24);
  background: #fffdf9;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  color: #30241d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lk-consent-header {
  padding: 22px 24px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(104, 67, 36, 0.10);
}

.lk-consent-title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.lk-consent-body {
  padding: 20px 24px 12px;
}

.lk-consent-body p {
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 14px;
  color: #4d4038;
}

.lk-consent-services-link {
  display: inline-flex;
  margin-top: 4px;
  color: #1f63b5;
  font-size: 14px;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.lk-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 24px 10px;
}

.lk-consent-btn {
  border: 1px solid rgba(70, 48, 33, 0.12);
  border-radius: 9px;
  padding: 14px 12px;
  min-height: 48px;
  cursor: pointer;
  background: #f8f8f8;
  color: #2f2b28;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lk-consent-btn:hover,
.lk-consent-btn:focus-visible {
  outline: 2px solid rgba(26, 96, 156, 0.22);
  outline-offset: 2px;
}

.lk-consent-btn-primary {
  background: #ffc400;
  border-color: #ffc400;
  color: #111;
}

.lk-consent-footer {
  padding: 4px 24px 20px;
  text-align: center;
}

.lk-consent-footer a {
  color: #1f63b5;
  font-size: 13px;
  text-decoration: underline;
}

.lk-consent-settings {
  display: none;
  padding: 0 24px 8px;
}

.lk-consent-root.show-settings .lk-consent-settings {
  display: block;
}

.lk-consent-root.show-settings .lk-consent-intro,
.lk-consent-root.show-settings .lk-consent-services-link {
  display: none;
}

.lk-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(104, 67, 36, 0.12);
}

.lk-consent-option:first-child {
  border-top: 0;
}

.lk-consent-option h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.lk-consent-option p {
  margin: 0;
  font-size: 13px;
  color: #655950;
}

.lk-consent-always-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5e7;
  color: #31552a;
  font-size: 12px;
  font-weight: 800;
}

.lk-consent-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
}

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

.lk-consent-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9c9c9;
  cursor: pointer;
  transition: background 0.18s ease;
}

.lk-consent-slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}

.lk-consent-switch input:checked + .lk-consent-slider {
  background: #2f7d46;
}

.lk-consent-switch input:checked + .lk-consent-slider::before {
  transform: translateX(24px);
}

.lk-consent-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0 8px;
}

.lk-consent-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .lk-consent-root {
    align-items: flex-end;
    padding: 10px;
  }

  .lk-consent-dialog {
    border-radius: 16px 16px 12px 12px;
    max-height: calc(100vh - 20px);
  }

  .lk-consent-header,
  .lk-consent-body,
  .lk-consent-actions,
  .lk-consent-settings,
  .lk-consent-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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