/* Orderly Design System on orderly.co.ke: the second set, LIVE for everyone since 28 Oct 2026 (the owner's "Yes, go live").
   Loaded while OrderlyOds::NEXT_LIVE is true (functions/orderly-ods.php); set it to false to fall back,
   and ?ods=2 previews it again (cookie orderly_ods_next, 14 days).
   1. The cookie card and its preferences window on the design system (brief from the design session):
      surface tone, no border or shadow, 16px corners; Accept (primary) and Essential only (ghost) the same size,
      side by side; Customize as a quiet text link; no shield; a bottom sheet on phones. */

/* ---------- Cookie card ---------- */
html[data-orderly-theme] .site-notice { left: 16px; right: 16px; bottom: 16px; font-family: var(--o-font); }
@media (min-width: 640px) {
  html[data-orderly-theme] .site-notice { left: auto; right: 24px; bottom: 24px; width: 400px; }
}
html[data-orderly-theme] .site-notice .site-notice-body {
  padding: 20px; background: var(--o-surface); border: 0; border-radius: 16px; box-shadow: none;
}
html[data-orderly-theme] .site-notice .site-notice__header { padding: 0; border: 0; background: none; }
html[data-orderly-theme] .site-notice .site-notice__icon,
html[data-orderly-theme] .site-notice .site-notice-body > .site-notice__header .site-notice__close { display: none; }
html[data-orderly-theme] .site-notice .site-notice__title { font: 700 1.125rem/1.3 var(--o-font); color: var(--o-text); }
html[data-orderly-theme] .site-notice .site-notice__content { padding: 0; margin-top: 8px; }
html[data-orderly-theme] .site-notice .site-notice__message { font-size: .9375rem; line-height: 1.55; color: var(--o-text-2); }
html[data-orderly-theme] .site-notice .site-notice__message a { color: var(--o-accent-deep); text-decoration: underline; text-underline-offset: 2px; }
html[data-orderly-theme] .site-notice .site-notice__actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 639px) {
  html[data-orderly-theme] .site-notice .site-notice__actions { grid-template-columns: 1fr; }
}

/* ---------- Buttons, card and preferences window alike ---------- */
html[data-orderly-theme] .site-notice :is(.site-notice__actions, .cookie-consent-modal__footer) button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 0; border-radius: var(--o-r-pill); box-shadow: none;
  font: 600 15px/1 var(--o-font); letter-spacing: .01em; white-space: nowrap;
}
html[data-orderly-theme] .site-notice :is(.site-notice__actions, .cookie-consent-modal__footer) button:focus-visible { outline: none; box-shadow: var(--o-ring); }
html[data-orderly-theme] .site-notice .site-notice__accept-all { order: 1; background: var(--o-accent-solid); color: #fff; }
html[data-orderly-theme] .site-notice .site-notice__accept-all:hover { background: var(--o-accent-solid-hover); }
html[data-orderly-theme] .site-notice .site-notice__secondary { order: 2; background: var(--o-surface-2); color: var(--o-text); }
html[data-orderly-theme] .site-notice .site-notice__secondary:hover { background: var(--o-surface-3); }
/* Customize preferences: a quiet text link under the two buttons */
html[data-orderly-theme] .site-notice .site-notice__actions .js-cookie-consent-customize {
  order: 3; grid-column: 1 / -1; min-height: 44px; padding: 0;
  background: transparent; color: var(--o-text-2); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
html[data-orderly-theme] .site-notice .site-notice__actions .js-cookie-consent-customize:hover { background: transparent; color: var(--o-text); }

/* ---------- Preferences window ---------- */
html[data-orderly-theme] .site-notice .cookie-consent-modal__dialog { background: var(--o-surface); border: 0; border-radius: 16px; box-shadow: none; font-family: var(--o-font); }
html[data-orderly-theme] .site-notice :is(.cookie-consent-modal__header, .cookie-consent-modal__footer) { border: 0; }
html[data-orderly-theme] .site-notice .cookie-consent-modal__title { font: 700 1.125rem/1.3 var(--o-font); color: var(--o-text); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__header .site-notice__close { width: 44px; height: 44px; border-radius: var(--o-r-pill); color: var(--o-text-2); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__header .site-notice__close:hover { background: var(--o-surface-2); color: var(--o-text); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__intro { font-size: .9375rem; line-height: 1.55; color: var(--o-text-2); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__item { margin-top: 8px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--o-surface-2); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__item-name { font-size: .9375rem; font-weight: 700; color: var(--o-text); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__item-desc { font-size: .875rem; color: var(--o-text-2); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__badge { color: var(--o-text-2); }
/* Off reads as a switch: text-3 track (3:1 on the well), white knob; on is accent-solid */
html[data-orderly-theme] .site-notice .cookie-consent-modal__slider { background: var(--o-text-3); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__slider::before { background: #fff; }
html[data-orderly-theme] .site-notice .cookie-consent-modal__slider::before { box-shadow: none; }
html[data-orderly-theme] .site-notice .cookie-consent-modal__switch input:checked + .cookie-consent-modal__slider { background: var(--o-accent-solid); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__switch input:focus-visible + .cookie-consent-modal__slider { box-shadow: var(--o-ring); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer { flex-direction: row; }
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer button { flex: 1 1 0; }
/* In the window the job is choosing: Save my choices first and primary, Accept all cookies ghost */
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer .js-site-notice-save { order: 1; background: var(--o-accent-solid); color: #fff; }
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer .js-site-notice-save:hover { background: var(--o-accent-solid-hover); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer .js-site-notice-accept-all { order: 2; background: var(--o-surface-2); color: var(--o-text); }
html[data-orderly-theme] .site-notice .cookie-consent-modal__footer .js-site-notice-accept-all:hover { background: var(--o-surface-3); }
/* While the window is open, the card underneath goes */
html[data-orderly-theme] .site-notice:has(.cookie-consent-modal.is-open) > .site-notice-body { visibility: hidden; }
@media (max-width: 639px) {
  html[data-orderly-theme] .site-notice .cookie-consent-modal__footer { flex-direction: column; }
}

/* ---------- 2. Hero: the Orderly orb in place of the back-office screenshot (owner, 28 Oct 2026, via the design session) ----------
   No card: the orb sits on the page. Idle it is the O, then it listens and speaks (orderly-orb.js auto mode, hover = speaking).
   Before it starts, with no WebGL or with reduced motion: the still O. The bridge's hide rule for .ohero__float stays. */
html[data-orderly-theme] .ohero-ods__stage--orb { background: none; padding: 0; border-radius: 0; overflow: visible; max-width: 480px; aspect-ratio: auto; }
html[data-orderly-theme] .ohero--ods .orderly-orb { display: block !important; width: 100%; max-width: none; aspect-ratio: 1 / 1; }
html[data-orderly-theme] .ohero--ods .orderly-orb:not(:has(canvas)) { background: url("https://web.orderly.co.ke/assets/ods/orderly-o.svg") center / 81% no-repeat; }
html[data-orderly-theme] .ohero--ods .orderly-orb--fallback::before { content: none; }
@media (max-width: 991px) {
  html[data-orderly-theme] .ohero-ods__orbcol { order: -1; }
  html[data-orderly-theme] .ohero-ods__stage--orb { max-width: 200px; aspect-ratio: auto; }
}
/* Room above the orb: when it speaks, a drop rises about 13% of its size above it, which at the
   hero's usual top padding reached the header. Orb hero only; both columns move, so the orb and
   the words keep one centre. */
@media (min-width: 992px) { html[data-orderly-theme] .ohero--ods:has(.ohero-ods__stage--orb) { padding-top: 188px; } }
@media (max-width: 991px) { html[data-orderly-theme] .ohero--ods:has(.ohero-ods__stage--orb) { padding-top: 136px; } }

@media (prefers-reduced-motion: reduce) {
  html[data-orderly-theme] .site-notice.site-notice--visible,
  html[data-orderly-theme] .site-notice .cookie-consent-modal__dialog { animation: none; }
}
