/* Hairiel admin — Booking screen. */

/* Status */
.ha-bk-status { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; }
.ha-bk-status__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ha-bk-status__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ha-app .ha-bk-status__title { font-size: 16px; }

/* Popup vs page */
.ha-bk-modes { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.ha-bk-modes--compact { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.ha-bk-choice__label { display: flex; gap: 10px; align-items: flex-start; }
.ha-bk-choice__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ha-bk-choice__title { font-weight: 600; color: var(--ink); }
.ha-bk-choice__title .ha-pill { margin-left: 4px; vertical-align: 1px; }

.ha-mini { position: relative; display: block; height: 120px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.ha-mini__line { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.ha-mini__page { position: absolute; inset: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ha-mini__dim { position: absolute; inset: 0; background: rgba(12, 10, 9, .35); }
.ha-mini__modal { position: absolute; left: 50%; top: 50%; width: 58%; height: 70%; transform: translate(-50%, -50%); border-radius: 6px; background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); display: flex; overflow: hidden; }
.ha-mini__steps { width: 30%; background: #f2ede7; display: flex; flex-direction: column; gap: 5px; padding: 8px 6px; }
.ha-mini__steps span { display: block; height: 4px; border-radius: 2px; background: #cfc6bf; }
.ha-mini__steps span.is-on { background: var(--accent); }
.ha-mini__grid { flex: 1; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; align-content: start; }
.ha-mini__grid span { display: block; height: 22px; border-radius: 3px; border: 1px solid #e4ddd5; }
.ha-mini__grid span.is-on { border-color: var(--ink); }
.ha-mini--flow { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.ha-mini__card { width: 34%; height: 76%; border-radius: 6px; background: #fff; border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ha-mini__btn { display: block; margin-top: auto; height: 12px; width: 60%; border-radius: 6px; background: var(--ink); }
.ha-mini__card--form { flex-direction: row; padding: 0; gap: 0; overflow: hidden; }
.ha-mini__side { width: 30%; background: #f2ede7; }
.ha-mini__fields { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.ha-mini__fields span { display: block; height: 14px; border-radius: 3px; border: 1px solid #e4ddd5; }
.ha-mini__fields span.is-on { border-color: var(--ink); }

/* Display-only mode cards (no Booknetic) */
.ha-bk-static { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.ha-bk-static.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ha-bk-static.is-on .ha-radio { border-color: var(--accent); }
.ha-bk-static.is-on .ha-radio::after { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); }
.ha-bk-static.is-off { opacity: .6; }

/* Pages */
.ha-bk-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.ha-bk-page + .ha-bk-page { padding-top: 16px; border-top: 1px solid var(--line); }
.ha-bk-page__field { flex: 1 1 280px; }
.ha-bk-page__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 25px; }
.ha-bk-page__actions [hidden] { display: none; }
.ha-bk-note--ok, .ha-bk-note--auto { color: var(--ok); }
.ha-bk-note--lacks, .ha-bk-note--none { color: var(--warn); }
@media (max-width: 600px) { .ha-bk-page__actions { padding-top: 0; } }

/* Preselection examples */
.ha-bk-examples > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ha-bk-examples__where { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.ha-bk-examples__arrow { display: flex; color: var(--muted); }
.ha-bk-examples li > .ha-pill { min-width: 120px; justify-content: center; }
@media (max-width: 600px) { .ha-bk-examples__arrow { display: none; } }

/* Advanced */
.ha-bk-advanced { padding-top: 14px; padding-bottom: 14px; }
.ha-bk-advanced__body { padding-top: 12px; }

/* Missing Booknetic */
.ha-bk-get { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; padding: 32px; }
.ha-bk-get__art { flex: 0 0 120px; height: 120px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -18px rgba(108, 112, 220, .55); display: flex; align-items: center; justify-content: center; }
.ha-bk-get__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ha-app .ha-bk-get__title { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.25; }
.ha-bk-get__list { display: flex; flex-direction: column; gap: 8px; }
.ha-bk-get__list li { display: flex; gap: 10px; align-items: flex-start; }
.ha-bk-get__list svg { flex: none; margin-top: 3px; color: var(--ok); }
@media (max-width: 600px) {
	.ha-bk-get { padding: 20px; gap: 18px; }
	.ha-bk-get__art { flex-basis: 72px; height: 72px; border-radius: 16px; }
	.ha-bk-get__art svg { width: auto; height: 34px; }
}

/* Aside */
.ha-bk-tips li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ha-bk-tips li:first-child { border-top: 0; padding-top: 0; }
.ha-bk-tips svg { flex: none; margin-top: 2px; color: var(--accent); }

/* Install Booknetic: step list */
.ha-bk-setup { display: flex; flex-direction: column; gap: 12px; }
.ha-bk-steps { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--soft); }
.ha-bk-step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ha-bk-step__icon { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.ha-bk-step__icon > * { display: none; }
.ha-bk-step__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.ha-bk-step .ha-spin { width: 16px; height: 16px; }
.ha-bk-step.is-waiting .ha-bk-step__dot, .ha-bk-step:not([class*="is-"]) .ha-bk-step__dot { display: block; }
.ha-bk-step.is-current { color: var(--ink); font-weight: 600; }
.ha-bk-step.is-current .ha-spin { display: inline-block; }
.ha-bk-step.is-done { color: var(--ink); }
.ha-bk-step.is-done svg:first-of-type { display: block; color: var(--ok); }
.ha-bk-step.is-error { color: var(--bad); font-weight: 600; }
.ha-bk-step.is-error svg:last-of-type { display: block; }
.ha-bk-step:not(.is-current):not(.is-done):not(.is-error) .ha-bk-step__dot { display: block; }
.ha-bk-error { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* Empty Booknetic: the demo services offer */
.ha-bk-seed { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-tint); }
.ha-bk-seed__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-bk-seed__chips li { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink); }
.ha-bk-seed__chips li.is-more { background: transparent; color: var(--muted); }
