/* generated from src/styles/client-consent.css */
.client-consent-root {
  --consent-bg: var(--kf-client-surface-0, #0e1012);
  --consent-surface: var(--kf-client-surface-1, #171a1d);
  --consent-border: var(--kf-client-border, #3d464e);
  --consent-border-strong: var(--kf-client-border-strong, #77848f);
  --consent-text: var(--kf-client-text, #d8dce0);
  --consent-text-strong: var(--kf-client-text-strong, #f1f3f5);
  --consent-text-muted: var(--kf-client-text-muted, #a4acb3);
  --consent-action: var(--kf-client-action, #688aab);
  --consent-action-hover: var(--kf-client-action-hover, #7f9eba);
  --consent-action-foreground: var(--kf-client-bg, #08090a);
  --consent-selection: var(--kf-selection-mark, #9aa8b3);
  position: relative;
  z-index: 2147483000;
  color: var(--consent-text);
  font-family: var(--font-ui, "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", Arial, sans-serif);
  letter-spacing: 0;
}

.client-consent-root,
.client-consent-root *,
.client-consent-root *::before,
.client-consent-root *::after {
  box-sizing: border-box;
}

.client-consent-root[dir="rtl"] {
  font-family: var(--font-arabic, var(--font-ui, "Segoe UI", Arial, sans-serif));
}

.client-consent-root[dir="rtl"] .client-consent-banner,
.client-consent-root[dir="rtl"] .client-consent-actions,
.client-consent-root[dir="rtl"] .client-consent-options,
.client-consent-root[dir="rtl"] .client-consent-options label {
  direction: ltr;
}

.client-consent-root[dir="rtl"] .client-consent-banner__copy,
.client-consent-root[dir="rtl"] .client-consent-dialog header,
.client-consent-root[dir="rtl"] .client-consent-options label > span:first-child {
  direction: rtl;
  text-align: start;
}

.client-consent-root[dir="rtl"] button {
  direction: rtl;
}

.client-consent-banner {
  position: fixed;
  inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: min(980px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--consent-border-strong);
  border-radius: 6px;
  background: var(--consent-bg);
  box-shadow: 0 12px 36px rgb(0 0 0 / 32%);
}

.client-consent-banner[hidden] { display: none !important; }
.client-consent-banner__copy { min-width: 0; }
.client-consent-banner h2,
.client-consent-dialog h2 { margin: 0; color: var(--consent-text-strong); font-size: 15px; line-height: 1.35; }
.client-consent-banner p,
.client-consent-dialog header p { margin: 6px 0 0; color: var(--consent-text-muted); font-size: 12px; line-height: 1.55; }
.client-consent-links { display: flex; flex-wrap: wrap; gap: 14px; }
.client-consent-links a { color: var(--consent-text); text-underline-offset: 3px; }

.client-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.client-consent-actions button,
.client-consent-dialog__close {
  min-height: 34px;
  border: 1px solid var(--consent-border-strong);
  border-radius: 4px;
  padding: 0 12px;
  background: var(--consent-action);
  color: var(--consent-action-foreground);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}
.client-consent-actions button.secondary {
  border-color: var(--consent-border);
  background: var(--consent-surface);
  color: var(--consent-text);
}
.client-consent-actions button:hover,
.client-consent-dialog__close:hover { border-color: var(--consent-text-muted); }
.client-consent-actions button:not(.secondary):hover { background: var(--consent-action-hover); }
.client-consent-actions button:focus-visible,
.client-consent-dialog__close:focus-visible,
.client-consent-links a:focus-visible,
.client-consent-options input:focus-visible {
  outline: 1px solid var(--consent-action);
  outline-offset: 2px;
}

.client-consent-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--consent-border-strong);
  border-radius: 8px;
  padding: 22px;
  background: var(--consent-bg);
  color: var(--consent-text);
}
.client-consent-dialog::backdrop { background: rgb(0 0 0 / 68%); }
.client-consent-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--consent-text-muted);
  font-size: 18px;
}
.client-consent-dialog header { padding-right: 36px; }
.client-consent-options { display: grid; margin: 20px 0; border-top: 1px solid var(--consent-border); }
.client-consent-options label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  border-bottom: 1px solid var(--consent-border);
  color: var(--consent-text);
  cursor: pointer;
}
.client-consent-options label > span:first-child { display: grid; gap: 4px; }
.client-consent-options strong { color: var(--consent-text-strong); font-size: 13px; }
.client-consent-options small { color: var(--consent-text-muted); font-size: 11px; line-height: 1.45; }
.client-consent-options input { width: 18px; height: 18px; accent-color: var(--consent-selection); }
.client-consent-always { color: var(--consent-text-muted); font-size: 11px; white-space: nowrap; }

.client-consent-footer {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: var(--kf-client-bg, #08090a);
  color: var(--kf-client-text-muted, #a4acb3);
  font-family: var(--font-ui, "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", Arial, sans-serif);
  font-size: 11px;
  line-height: 1.4;
}
.client-consent-footer[dir="rtl"] {
  font-family: var(--font-arabic, var(--font-ui, "Segoe UI", Arial, sans-serif));
}
.client-consent-footer-trigger {
  appearance: none;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}
.client-legal-links .client-consent-footer-trigger,
.help-footer .client-consent-footer-trigger { color: inherit; }
.client-consent-footer-trigger:hover {
  color: var(--kf-client-text-strong, #f1f3f5);
  text-decoration: underline;
  text-decoration-color: var(--kf-client-border-strong, #77848f);
  text-underline-offset: 3px;
}
.client-consent-footer-trigger:focus-visible {
  outline: 1px solid var(--kf-client-action, #688aab);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .client-consent-banner { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .client-consent-actions { justify-content: stretch; }
  .client-consent-actions button { flex: 1 1 140px; }
  .client-consent-dialog { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-consent-root, .client-consent-root * { scroll-behavior: auto !important; transition: none !important; }
}
