/* Hakiki additions on top of bcs-kit.css. Colours come from the kit's --bcs-* tokens; only product
   tints (--kyc-tint, set per product in kyc-data.js) are local. */

body.kyc-body { margin: 0; background: var(--bcs-page); color: var(--bcs-ink); font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }

/* ---------- Logo tile (KYC.logoHtml) ----------
   A supplied logo image, or the business name set as a plain text mark. No colour fills or icons. */
.kyc-logo {
  --kyc-logo: 40px;
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: var(--kyc-logo); height: var(--kyc-logo);
  padding: 2px; box-sizing: border-box; overflow: hidden;
  border-radius: calc(var(--kyc-logo) * 0.18);
  background: var(--bcs-surface); color: var(--bcs-ink);
  box-shadow: inset 0 0 0 1px var(--bcs-edge);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-align: center; white-space: nowrap;
}
.kyc-logo.has-img { padding: calc(var(--kyc-logo) * 0.1); }

/* Coloured initials for overlapping stacks (KYC.initialsHtml) */
.kyc-initials {
  --kyc-logo: 24px;
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: var(--kyc-logo); height: var(--kyc-logo);
  border-radius: calc(var(--kyc-logo) * 0.22);
  color: #fff; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  font-size: calc(var(--kyc-logo) * 0.38);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.kyc-logo.has-img > img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Product tile (KYC.bottleHtml) ----------
   Product photo on white (the supplied shots are 768px squares on white), or the brand name as text
   over a thin accent line in the product tint. */
.kyc-bottle {
  --kyc-bottle: 56px;
  --kyc-tint: #475569;
  position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  width: var(--kyc-bottle); height: var(--kyc-bottle);
  box-sizing: border-box; padding: 4px; overflow: hidden;
  border-radius: calc(var(--kyc-bottle) * 0.14);
  background: var(--bcs-surface-muted); color: var(--bcs-ink);
  box-shadow: inset 0 0 0 1px var(--bcs-edge), inset 0 -3px 0 var(--kyc-tint);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-align: center; white-space: nowrap;
}
.kyc-bottle.has-img { padding: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--bcs-edge); }
/* The bottle fills about 60% of the photo height, so zoom in slightly to use the tile */
.kyc-bottle.has-img > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* ---------- Top nav links (KYC.renderNav) ---------- */
.kyc-nav-link {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: var(--radius-control, 8px); font-size: 13px; font-weight: 500;
  color: var(--bcs-on-frame-muted); text-decoration: none; transition: background-color .15s, color .15s;
}
.kyc-nav-link:hover { color: var(--bcs-on-frame); background: color-mix(in srgb, var(--bcs-on-frame) 10%, transparent); }
.kyc-nav-link[aria-current="page"] { color: var(--bcs-on-frame); background: color-mix(in srgb, var(--bcs-on-frame) 14%, transparent); }
.kyc-nav-link:focus-visible { outline: 2px solid color-mix(in srgb, var(--bcs-on-frame) 50%, transparent); outline-offset: 0; }
.kyc-nav-link.is-mobile { display: flex; height: 44px; }

/* ---------- Verified seal ---------- */
.kyc-seal {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 9999px; font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--bcs-success-strong); background: var(--bcs-success-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bcs-success) 30%, transparent);
}
.kyc-seal.is-warning { color: var(--bcs-warning-strong); background: var(--bcs-warning-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bcs-warning) 30%, transparent); }
.kyc-seal.is-danger  { color: var(--bcs-danger-strong);  background: var(--bcs-danger-soft);  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bcs-danger) 30%, transparent); }

/* ---------- Page container ---------- */
.kyc-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .kyc-container { padding-left: 24px; padding-right: 24px; } }

/* ---------- Print: verification certificate and clean pages ---------- */
.kyc-print-only { display: none; }
@media print {
  @page { margin: 16mm; }
  body.kyc-body { background: #fff; }
  header.sticky, .kyc-no-print, #toast-container { display: none !important; }
  .kyc-print-only { display: block; }
  .kyc-logo, .kyc-bottle, .kyc-seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
