/* =====================================================================
   COOKIE CONSENT BANNER (assets/cookies.js)

   The script is a byte-identical copy of TWEB public/cookies.js, the master
   for www.tranxact.ai, help.tranxact.ai and know.tranxact.ai; this sheet is
   shared the same way by THELP and TKNOW (identical in both). It draws the
   banner with the product's theme tokens (assets/theme.css), so it follows
   every theme, and with logical properties, so it mirrors on Arabic and
   Urdu pages. The banner is a non-modal region at the bottom of the window.
   ===================================================================== */
.ck-wrap {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 400;
  padding: 14px; display: flex; justify-content: center; pointer-events: none;
}
.ck-wrap [hidden] { display: none !important; }
.ck {
  pointer-events: auto; width: min(880px, 100%); box-sizing: border-box;
  background: var(--card, var(--paper, #fff)); color: var(--text, #1b2333);
  border: 1px solid var(--line-strong, #c9cfdc); border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-raise, 0 12px 40px rgba(0, 0, 0, .18));
  padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: start;
  font-family: var(--font-body, Inter, system-ui, sans-serif); text-align: start;
  max-height: calc(100vh - 28px); overflow-y: auto;
}
.ck:focus { outline: 2px solid var(--accent, #2f5bd3); outline-offset: 2px; }
@media (max-width: 780px) { .ck { grid-template-columns: 1fr; padding: 16px; } }

.ck-title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--text, #1b2333); }
.ck-body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim, #5b6478); max-width: 68ch; }
.ck-gpc {
  margin: 10px 0 0; padding: 8px 12px; font-size: 13px; line-height: 1.5; max-width: 68ch;
  border-inline-start: 3px solid var(--ok, #1f8a4c); background: var(--ok-wash, transparent); color: var(--text, #1b2333);
}

.ck-prefs { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line, #e3e7ef); padding-top: 12px; }
.ck-row { display: flex; gap: 10px; align-items: flex-start; }
.ck-row input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent, #2f5bd3); }
.ck-row input:disabled { opacity: .55; cursor: not-allowed; }
.ck-row label { cursor: pointer; }
.ck-row b { display: block; font-size: 13.5px; color: var(--text, #1b2333); }
.ck-desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim, #5b6478); }

.ck-acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 190px; }
@media (max-width: 780px) { .ck-acts { flex-direction: row; flex-wrap: wrap; align-items: center; } }
/* .ck scoped: both sites also style a generic .btn, which these must beat. */
.ck .ck-btn {
  display: inline-block; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px; cursor: pointer; text-align: center;
  border-radius: var(--radius-ctl, 8px); border: 1px solid var(--line-strong, #c9cfdc);
  background: transparent; color: var(--text, #1b2333);
}
.ck .ck-btn:hover { background: var(--wash, transparent); border-color: var(--accent, #2f5bd3); }
.ck .ck-btn-primary, .ck .ck-btn-primary:hover { background: var(--accent, #2f5bd3); border-color: var(--accent, #2f5bd3); color: var(--on-accent, #fff); }
.ck .ck-btn-primary:hover { filter: brightness(.92); }
.ck-link {
  background: none; border: none; padding: 4px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim, #5b6478); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center;
}
.ck-link:hover { color: var(--accent, #2f5bd3); }
.ck-btn:focus-visible, .ck-link:focus-visible, .ck-row input:focus-visible {
  outline: 2px solid var(--accent, #2f5bd3); outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) { .ck { animation: ckin .22s ease; } }
@keyframes ckin { from { opacity: 0; transform: translateY(12px); } }

/* The footer entry points: "Cookie settings" and "Your Privacy Choices". */
.foot-privacy { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px auto 0; padding: 0; list-style: none; max-width: 1460px; }
.foot-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-privacy a:hover { color: var(--accent, #2f5bd3); }
/* A footer of its own where the page has none (know.tranxact.ai). */
.foot-consent { border-top: 1px solid var(--line, #e3e7ef); padding: 18px 30px 32px; color: var(--text-dim, #5b6478); font-size: 12.5px; }
@media (max-width: 780px) { .foot-consent { padding: 16px 16px 28px; } }
