/*!
 * EBZPRO Hospital Booking — front-end styles (premium).
 *
 * Everything is scoped under .azcb. The form is its own white card, so it looks
 * the same on any theme (Elementor, Astra, block themes).
 */

.azcb {
	--azcb-accent: #0a84ff;
	--azcb-accent-soft: color-mix(in srgb, var(--azcb-accent) 10%, #fff);
	--azcb-accent-line: color-mix(in srgb, var(--azcb-accent) 35%, #fff);
	--azcb-ink: #0f172a;
	--azcb-ink2: #334155;
	--azcb-muted: #64748b;
	--azcb-line: #e2e8f0;
	--azcb-soft: #f1f5f9;
	--azcb-surface: #fff;
	--azcb-good: #059669;
	--azcb-bad: #dc2626;
	--azcb-radius: 18px;
	--azcb-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px -12px rgba(15, 23, 42, .18);

	max-width: 880px;
	margin: 0 auto;
	color: var(--azcb-ink);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	container: azcb / inline-size;
}
.azcb .azcb-title, .azcb .azcb-h, .azcb .azcb-done__title { font-family: inherit; }
.azcb *, .azcb *::before, .azcb *::after { box-sizing: border-box; }
.azcb button { font-family: inherit; }
.azcb svg { flex: none; }

.azcb[data-azcb-form], .azcb[data-azcb-status] {
	background: var(--azcb-surface);
	border: 1px solid var(--azcb-line);
	border-radius: 24px;
	box-shadow: var(--azcb-shadow);
	overflow: hidden;
}

/* Header ---------------------------------------------------------------- */
.azcb-head {
	position: relative;
	padding: 32px 36px 28px;
	color: #fff;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, var(--azcb-accent) 0%, color-mix(in srgb, var(--azcb-accent) 55%, #0f172a) 100%);
}
.azcb-head::after {
	content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px;
	border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none;
}
.azcb-head__badge {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.azcb .azcb-title { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; font-weight: 800; color: inherit; letter-spacing: -.01em; }
.azcb-head .azcb-intro { margin: 0; color: rgba(255, 255, 255, .88); font-size: 15.5px; max-width: 560px; }
.azcb-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 13.5px; font-weight: 600; }
.azcb-trust li { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .95); margin: 0; }
.azcb-trust li::before {
	content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
	background: rgba(255, 255, 255, .22); font-size: 11px;
}
.azcb-title--sm { font-size: 20px; }
.azcb-intro { margin: 0 0 14px; color: var(--azcb-muted); font-size: 15px; }

.azcb-body { padding: 28px 36px 32px; }
.azcb-enter { animation: azcb-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes azcb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.azcb-h { margin: 6px 0 14px; font-size: 18px; font-weight: 750; color: var(--azcb-ink); letter-spacing: -.005em; }

/* Progress ---------------------------------------------------------------- */
.azcb-progress {
	position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
	margin: 0 0 26px;
}
.azcb-progress__bar {
	position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 3px;
	background: var(--azcb-line); border-radius: 3px; overflow: hidden;
}
.azcb-progress__bar span { display: block; height: 100%; background: var(--azcb-accent); border-radius: 3px; transition: width .4s ease; }
.azcb-progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.azcb-progress__dot {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	background: #fff; border: 2px solid var(--azcb-line); color: var(--azcb-muted);
	font-size: 13px; font-weight: 800; transition: all .25s ease;
}
.azcb-progress__label { font-size: 12.5px; font-weight: 600; color: var(--azcb-muted); }
.azcb-progress__step.is-done .azcb-progress__dot { background: var(--azcb-accent); border-color: var(--azcb-accent); color: #fff; }
.azcb-progress__step.is-current .azcb-progress__dot {
	border-color: var(--azcb-accent); color: var(--azcb-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--azcb-accent) 15%, transparent);
}
.azcb-progress__step.is-current .azcb-progress__label { color: var(--azcb-ink); }

/* Skeletons ---------------------------------------------------------------- */
.azcb-skels { display: grid; gap: 12px; }
.azcb-skels--days { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.azcb-skels--times { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.azcb-skel {
	display: block; border-radius: 16px;
	background: linear-gradient(100deg, var(--azcb-soft) 30%, #e8edf3 50%, var(--azcb-soft) 70%);
	background-size: 220% 100%; animation: azcb-shimmer 1.2s ease-in-out infinite;
}
.azcb-skel--docs { height: 96px; }
.azcb-skel--days { height: 104px; }
.azcb-skel--times { height: 46px; border-radius: 12px; }
@keyframes azcb-shimmer { to { background-position: -120% 0; } }
.azcb-loading { padding: 32px 0; text-align: center; color: var(--azcb-muted); }

/* Doctors ---------------------------------------------------------------- */
.azcb-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.azcb-doc {
	display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
	padding: 18px; border: 1.5px solid var(--azcb-line); border-radius: var(--azcb-radius);
	background: #fff; cursor: pointer; color: inherit; font-size: inherit;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	animation: azcb-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.azcb-doc:hover, .azcb-doc:focus-visible {
	border-color: var(--azcb-accent); transform: translateY(-2px); outline: none;
	box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--azcb-accent) 55%, transparent);
}
.azcb-doc__avatar, .azcb-chosen__avatar {
	width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--azcb-accent), color-mix(in srgb, var(--azcb-accent) 50%, #0f172a));
	color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .02em;
	box-shadow: 0 0 0 4px var(--azcb-accent-soft);
}
.azcb-doc__main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.azcb-doc__name { font-weight: 750; font-size: 17px; color: var(--azcb-ink); }
.azcb-doc__spec { font-size: 13.5px; color: var(--azcb-accent); font-weight: 600; }
.azcb-doc__days { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; font-size: 12.5px; color: var(--azcb-muted); }
.azcb-doc__days span { display: flex; align-items: center; gap: 6px; }
.azcb-doc__end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.azcb-doc__fee { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 16px; color: var(--azcb-ink); }
.azcb-doc__fee small { font-size: 11px; font-weight: 600; color: var(--azcb-muted); text-transform: uppercase; letter-spacing: .05em; }
.azcb-doc__go {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--azcb-accent-soft); color: var(--azcb-accent); transition: all .18s ease;
}
.azcb-doc:hover .azcb-doc__go { background: var(--azcb-accent); color: #fff; }

/* Chosen doctor strip ---------------------------------------------------- */
.azcb-chosen {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 16px; border-radius: 16px; background: var(--azcb-soft); margin-bottom: 20px;
}
.azcb-chosen .azcb-chosen__avatar { width: 42px; height: 42px; font-size: 15px; box-shadow: none; }
.azcb-chosen__main { display: flex; flex-direction: column; line-height: 1.3; }
.azcb-chosen__main strong { font-size: 15.5px; }
.azcb-chosen__main small, .azcb-summary__doc small { font-size: 13px; color: var(--azcb-muted); }
.azcb-chosen__when { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: 14px; font-weight: 650; color: var(--azcb-ink2); }
.azcb-chosen__change { margin-left: auto; }

/* Days ---------------------------------------------------------------- */
.azcb-days {
	display: grid; grid-auto-flow: column; grid-auto-columns: 86px; gap: 10px;
	overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.azcb-day {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: 12px 6px; border: 1.5px solid var(--azcb-line); border-radius: 16px;
	background: #fff; cursor: pointer; color: inherit; scroll-snap-align: start;
	transition: border-color .15s ease, transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.azcb-day:hover:not(:disabled) { border-color: var(--azcb-accent); transform: translateY(-2px); }
.azcb-day__top { font-size: 12px; font-weight: 700; color: var(--azcb-muted); text-transform: uppercase; letter-spacing: .04em; }
.azcb-day__num { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--azcb-ink); }
.azcb-day__mon { font-size: 12.5px; font-weight: 600; color: var(--azcb-ink2); }
.azcb-day__free { margin-top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--azcb-good) 12%, #fff); color: var(--azcb-good); }
.azcb-day.is-picked { border-color: var(--azcb-accent); background: var(--azcb-accent); box-shadow: 0 10px 24px -10px var(--azcb-accent); }
.azcb-day.is-picked * { color: #fff !important; }
.azcb-day.is-picked .azcb-day__free { background: rgba(255, 255, 255, .22); }
.azcb-day.is-off, .azcb-day:disabled { opacity: .45; cursor: not-allowed; background: var(--azcb-soft); }
.azcb-day.is-off .azcb-day__free { background: transparent; color: var(--azcb-muted); }

/* Times ---------------------------------------------------------------- */
.azcb-tgroup { margin-bottom: 18px; }
.azcb-tgroup__name { font-size: 13px; font-weight: 700; color: var(--azcb-ink2); margin-bottom: 9px; text-transform: uppercase; letter-spacing: .05em; }
.azcb-tgroup__name span { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--azcb-soft); color: var(--azcb-muted); font-size: 11.5px; }
.azcb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.azcb-time {
	padding: 12px 8px; border: 1.5px solid var(--azcb-line); border-radius: 12px;
	background: #fff; cursor: pointer; color: var(--azcb-ink); font-size: 15px; font-weight: 700;
	transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.azcb-time:hover { border-color: var(--azcb-accent); color: var(--azcb-accent); transform: translateY(-1px); }
.azcb-time.is-picked { border-color: var(--azcb-accent); background: var(--azcb-accent); color: #fff; }

/* Details + summary ------------------------------------------------------- */
.azcb-details { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.azcb-summary {
	position: sticky; top: 24px; padding: 20px; border-radius: var(--azcb-radius);
	background: linear-gradient(180deg, var(--azcb-accent-soft), #fff);
	border: 1px solid var(--azcb-accent-line);
}
.azcb-summary__title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--azcb-accent); margin-bottom: 14px; }
.azcb-summary__doc { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.azcb-summary__doc .azcb-chosen__avatar { width: 44px; height: 44px; font-size: 15px; box-shadow: none; }
.azcb-summary__doc > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.azcb-summary__kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 12px; margin: 0 0 14px; font-size: 14px; }
.azcb-summary__kv dt { color: var(--azcb-muted); margin: 0; }
.azcb-summary__kv dd { margin: 0; font-weight: 700; text-align: right; }
.azcb-summary__kv dd small { display: block; font-weight: 500; color: var(--azcb-muted); font-size: 12px; }

/* Form ---------------------------------------------------------------- */
.azcb-form { display: grid; gap: 14px; align-content: start; }
.azcb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.azcb-row--wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.azcb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.azcb-label { font-size: 13.5px; font-weight: 650; color: var(--azcb-ink2); }
.azcb-req { color: var(--azcb-bad); }
.azcb .azcb-input {
	width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px;
	border: 1.5px solid var(--azcb-line); border-radius: 12px; background: #fff; color: var(--azcb-ink);
	box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; margin: 0;
}
.azcb textarea.azcb-input { min-height: 90px; resize: vertical; }
.azcb .azcb-input::placeholder { color: #94a3b8; }
.azcb .azcb-input:focus {
	outline: none; border-color: var(--azcb-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--azcb-accent) 16%, transparent);
}
.azcb .azcb-input.is-bad { border-color: var(--azcb-bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.azcb-error { font-size: 12.5px; color: var(--azcb-bad); min-height: 0; font-weight: 600; }
.azcb-error:empty { display: none; }
.azcb-help { font-size: 12.5px; color: var(--azcb-muted); }
.azcb-hint { display: flex; align-items: center; gap: 7px; margin: -4px 0 2px; font-size: 13px; color: var(--azcb-muted); }
.azcb-hint svg { color: var(--azcb-good); }
.azcb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.azcb-check { flex-direction: row !important; align-items: center; gap: 8px; font-size: 14.5px; }

.azcb-seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--azcb-soft); min-height: 48px; }
.azcb-seg label { flex: 1; display: flex; margin: 0; cursor: pointer; }
.azcb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.azcb-seg span {
	flex: 1; display: grid; place-items: center; padding: 8px 6px; border-radius: 9px;
	font-size: 14px; font-weight: 650; color: var(--azcb-ink2); text-align: center; transition: all .15s ease;
}
.azcb-seg input:checked + span { background: #fff; color: var(--azcb-accent); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.azcb-seg input:focus-visible + span { outline: 2px solid var(--azcb-accent); }

/* Buttons ---------------------------------------------------------------- */
.azcb-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.azcb-nav > :only-child { margin-left: auto; }
.azcb-nav .azcb-btn--ghost:only-child { margin-left: 0; }
.azcb .azcb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border: 0; border-radius: 12px; cursor: pointer;
	background: var(--azcb-accent); color: #fff; font: inherit; font-size: 15.5px; font-weight: 750;
	text-decoration: none; line-height: 1.2;
	box-shadow: 0 8px 20px -10px var(--azcb-accent);
	transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.azcb .azcb-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.azcb .azcb-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.azcb .azcb-btn--lg { padding: 14px 30px; font-size: 16.5px; }
.azcb .azcb-btn--ghost { background: #fff; color: var(--azcb-ink2); border: 1.5px solid var(--azcb-line); box-shadow: none; }
.azcb .azcb-btn--ghost:hover { color: var(--azcb-ink); border-color: #cbd5e1; }
.azcb .azcb-btn--danger { background: var(--azcb-bad); box-shadow: none; }
.azcb .azcb-btn--wa { background: #25d366; box-shadow: 0 8px 20px -10px #25d366; color: #fff !important; }
.azcb .azcb-btn--wa:hover { background: #1fb959; }
.azcb-link {
	background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--azcb-accent);
	cursor: pointer; text-decoration: none; font-size: 14.5px;
}
.azcb-link:hover { text-decoration: underline; }
.azcb-alt { text-align: center; margin: 22px 0 0; font-size: 14.5px; color: var(--azcb-muted); }
.azcb-spin {
	width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff; animation: azcb-spin .7s linear infinite;
}
@keyframes azcb-spin { to { transform: rotate(360deg); } }

/* Messages ---------------------------------------------------------------- */
.azcb-alert {
	padding: 13px 16px; border-radius: 12px; background: var(--azcb-soft);
	font-size: 14.5px; margin-bottom: 14px; line-height: 1.5; border: 1px solid var(--azcb-line);
}
.azcb-alert--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.azcb-alert--ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.azcb-empty { text-align: center; padding: 24px 8px; }
.azcb-empty__icon {
	width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
	background: #fef3c7; color: #b45309; font-size: 26px; font-weight: 800;
}
.azcb-empty p { margin: 0 auto 14px; max-width: 440px; color: var(--azcb-ink2); }
.azcb-empty__sub { font-size: 14px; color: var(--azcb-muted) !important; }
.azcb-empty a { color: var(--azcb-accent); font-weight: 700; }

/* Done + slip ---------------------------------------------------------------- */
.azcb-done { text-align: center; padding: 6px 0 4px; }
.azcb-done__tick {
	width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 0 0 8px #d1fae5, 0 14px 30px -10px #059669;
	animation: azcb-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes azcb-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.azcb .azcb-done__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--azcb-ink); }
.azcb-done__lead { margin: 0 auto 22px; max-width: 480px; color: var(--azcb-ink2); font-size: 15px; }
.azcb-done__note { color: var(--azcb-muted); font-size: 13.5px; max-width: 480px; margin: 16px auto 10px; line-height: 1.5; }

.azcb-ticket {
	position: relative; max-width: 440px; margin: 0 auto 18px; text-align: left;
	border-radius: 20px; background: #fff; border: 1px solid var(--azcb-line);
	box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .35); overflow: hidden;
}
.azcb-ticket__head {
	display: flex; flex-direction: column; padding: 18px 22px; color: #fff;
	background: linear-gradient(135deg, var(--azcb-accent), color-mix(in srgb, var(--azcb-accent) 50%, #0f172a));
}
.azcb-ticket__head span { font-size: 17px; font-weight: 800; }
.azcb-ticket__head small { font-size: 12.5px; opacity: .85; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.azcb-ticket__ref { padding: 18px 22px 16px; }
.azcb-ticket__ref small { display: block; font-size: 11.5px; color: var(--azcb-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.azcb-ticket__ref strong { font-size: 30px; font-weight: 850; letter-spacing: 0; color: var(--azcb-ink); }
.azcb-ticket__cut { position: relative; height: 0; border-top: 2px dashed var(--azcb-line); margin: 0 18px; }
.azcb-ticket__cut::before, .azcb-ticket__cut::after {
	content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--azcb-surface); border: 1px solid var(--azcb-line);
}
.azcb-ticket__cut::before { left: -32px; }
.azcb-ticket__cut::after { right: -32px; }
.azcb-ticket__kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; padding: 18px 22px; font-size: 14.5px; }
.azcb-ticket__kv dt { color: var(--azcb-muted); margin: 0; }
.azcb-ticket__kv dd { margin: 0; font-weight: 700; text-align: right; color: var(--azcb-ink); }
.azcb-ticket__foot { padding: 12px 22px; background: var(--azcb-soft); font-size: 13px; color: var(--azcb-muted); text-align: center; }
.azcb-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 700; }

.azcb-save {
	display: flex; align-items: flex-start; gap: 12px; text-align: left;
	max-width: 440px; margin: 0 auto 18px; padding: 14px 16px; border-radius: 14px;
	background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
}
.azcb-save__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #dbeafe; flex: none; }
.azcb-save strong { display: block; font-size: 14.5px; }
.azcb-save small { display: block; font-size: 13px; line-height: 1.45; opacity: .9; margin-top: 2px; }
.azcb-save .azcb-ur { margin-top: 4px; font-weight: 600; }
.azcb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 6px; max-width: 520px; }

/* Status card ---------------------------------------------------------------- */
.azcb-statusbox { max-width: 620px; }
.azcb[data-azcb-status] .azcb-body { padding: 28px 32px; }
.azcb-card {
	border: 1px solid var(--azcb-line); border-radius: var(--azcb-radius);
	padding: 18px; margin-top: 16px; background: #fff;
}
.azcb-card .azcb-ticket__kv { padding: 6px 0 12px; }
.azcb-card__status {
	display: inline-block; padding: 5px 13px; border-radius: 999px;
	font-size: 13px; font-weight: 750; margin-bottom: 8px; background: var(--azcb-soft);
}
.azcb-card__status--confirmed { background: #d1fae5; color: #065f46; }
.azcb-card__status--requested { background: #fef3c7; color: #92400e; }
.azcb-card__status--cancelled, .azcb-card__status--no_show { background: #fee2e2; color: #991b1b; }
.azcb-note { font-size: 14px; color: var(--azcb-muted); }

/* Admin-only setup notice */
.azcb-setup { border: 1.5px dashed var(--azcb-line); border-radius: var(--azcb-radius); padding: 22px; text-align: center; background: #fff; }

/* Print only the slip */
@media print {
	html.azcb-printing body * { visibility: hidden !important; }
	html.azcb-printing .azcb-print-me .azcb-ticket,
	html.azcb-printing .azcb-print-me .azcb-ticket * { visibility: visible !important; }
	html.azcb-printing .azcb-print-me .azcb-ticket { position: fixed; left: 0; right: 0; top: 0; margin: 0 auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Narrow containers (the theme's content column decides, not the screen) */
@container azcb (max-width: 760px) {
	.azcb-details { grid-template-columns: 1fr; }
	.azcb-summary { position: static; order: -1; }
	.azcb-summary__kv { grid-template-columns: auto 1fr; }
}
@container azcb (max-width: 600px) {
	.azcb-head { padding: 24px 20px 22px; }
	.azcb-body { padding: 22px 18px 24px; }
	.azcb-row { grid-template-columns: 1fr; }
	.azcb-docs { grid-template-columns: 1fr; }
	.azcb-doc { padding: 14px; gap: 12px; }
	.azcb-doc__avatar { width: 46px; height: 46px; font-size: 16px; }
	.azcb-progress__label { font-size: 11px; }
	.azcb-chosen__when { margin-left: 0; width: 100%; }
	.azcb-nav .azcb-btn { flex: 1; }
	.azcb-actions .azcb-btn { flex: 1 1 100%; }
	.azcb-ticket__ref strong { font-size: 26px; }
}
@container azcb (max-width: 420px) {
	.azcb-progress__label { display: none; }
	.azcb-doc__end { gap: 6px; }
	.azcb-doc__go { display: none; }
}

/* Small screens ---------------------------------------------------------------- */
@media (max-width: 760px) {
	.azcb-details { grid-template-columns: 1fr; }
	.azcb-summary { position: static; order: -1; }
}
@media (max-width: 600px) {
	.azcb[data-azcb-form], .azcb[data-azcb-status] { border-radius: 18px; }
	.azcb-head { padding: 24px 20px 22px; }
	.azcb-body { padding: 22px 18px 24px; }
	.azcb-row { grid-template-columns: 1fr; }
	.azcb-docs { grid-template-columns: 1fr; }
	.azcb-doc { padding: 14px; gap: 12px; }
	.azcb-doc__avatar { width: 46px; height: 46px; font-size: 16px; }
	.azcb-progress__label { font-size: 11px; }
	.azcb-chosen__when { margin-left: 0; width: 100%; }
	.azcb-nav .azcb-btn { flex: 1; }
	.azcb-actions .azcb-btn { flex: 1 1 100%; }
	.azcb-ticket__ref strong { font-size: 26px; }
}

/* ======================================================================
 * The patient portal
 * ==================================================================== */

.azcb-portal { max-width: 860px; }
.azcb-portal__heading { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.25; }

.azcb-portal .azcb-skel {
	height: 180px; border-radius: var(--azcb-radius);
	background: linear-gradient(100deg, var(--azcb-soft) 30%, rgba(0, 0, 0, .06) 50%, var(--azcb-soft) 70%);
	background-size: 220% 100%;
	animation: azcb-shimmer 1.3s ease-in-out infinite;
}
@keyframes azcb-shimmer { to { background-position: -120% 0; } }

.azcb-portal__gate { text-align: left; }
.azcb-portal__gate h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.azcb-portal__gate p { margin: 0 0 1rem; color: var(--azcb-muted); font-size: .93rem; line-height: 1.55; }
.azcb-portal__gateBtns { display: flex; gap: .6rem; flex-wrap: wrap; }
.azcb-portal__linkForm { display: grid; gap: .85rem; max-width: 380px; }
.azcb-portal__linkForm small { color: var(--azcb-muted); font-size: .8rem; }
.azcb-portal__help { font-size: .86rem; color: var(--azcb-muted); margin: 1rem 0 0; }
.azcb-portal__signout { font-size: .86rem; margin: .5rem 0 0; }

.azcb-portal__head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	flex-wrap: wrap; margin-bottom: .9rem;
}
.azcb-portal__name { font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
.azcb-portal__meta { color: var(--azcb-muted); font-size: .9rem; margin-top: .1rem; }

.azcb-alert--danger { background: rgba(215, 38, 61, .1); color: #a01023; }
.azcb-alert--warn { background: rgba(255, 149, 0, .14); color: #8a5000; }

.azcb-next { background: var(--azcb-soft); border-color: transparent; }
.azcb-next__label {
	font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--azcb-muted);
}
.azcb-next__when { font-size: 1.35rem; font-weight: 650; margin-top: .15rem; }
.azcb-next__who { font-size: .95rem; margin-top: .1rem; }
.azcb-next__foot { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }

.azcb-pill {
	display: inline-block; padding: .22rem .68rem; border-radius: 999px;
	font-size: .78rem; font-weight: 600; background: var(--azcb-soft); color: inherit;
	border: 1px solid var(--azcb-line);
}
.azcb-pill--ok { background: rgba(0, 160, 70, .13); color: #0a7a38; border-color: transparent; }
.azcb-pill--warn { background: rgba(255, 149, 0, .15); color: #a35c00; border-color: transparent; }

.azcb-portal__tabs {
	display: flex; gap: .25rem; margin: 1.3rem 0 1rem;
	border-bottom: 1px solid var(--azcb-line); overflow-x: auto;
}
.azcb-portal__tab {
	border: 0; background: none; font: inherit; cursor: pointer; white-space: nowrap;
	padding: .6rem .9rem; font-size: .93rem; font-weight: 560; color: var(--azcb-muted);
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.azcb-portal__tab.is-active { color: var(--azcb-accent); border-bottom-color: var(--azcb-accent); }

.azcb-portal__none { color: var(--azcb-muted); font-size: .93rem; }
.azcb-portal__list { list-style: none; margin: 0; padding: 0; }
.azcb-portal__item {
	display: flex; gap: 1rem; align-items: center; justify-content: space-between;
	padding: .85rem 0; border-bottom: 1px solid var(--azcb-line); flex-wrap: wrap;
}
.azcb-portal__item--stack { display: block; }
.azcb-portal__item:last-child { border-bottom: 0; }
.azcb-portal__itemMain { min-width: 0; flex: 1; }
.azcb-portal__itemTitle { font-weight: 620; font-size: .98rem; }
.azcb-portal__itemSub { color: var(--azcb-muted); font-size: .87rem; margin-top: .12rem; line-height: 1.45; }
.azcb-portal__itemEnd { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.azcb-btn--tiny { padding: .35rem .8rem; font-size: .82rem; border-radius: 9px; }

.azcb-rx__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.azcb-rx__no { font-weight: 650; }
.azcb-rx__dx { margin-top: .6rem; font-size: .92rem; }
.azcb-rx__meds { list-style: none; margin: .8rem 0 0; padding: 0; }
.azcb-rx__meds li {
	padding: .6rem 0; border-top: 1px solid var(--azcb-line);
	display: flex; flex-direction: column; gap: .15rem; align-items: flex-start;
}
.azcb-rx__med { font-weight: 620; }
.azcb-rx__how { color: var(--azcb-muted); font-size: .88rem; }
.azcb-rx__note { font-size: .84rem; color: var(--azcb-muted); font-style: italic; }
.azcb-rx__advice { margin-top: .8rem; font-size: .9rem; }

.azcb-lab__table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; }
.azcb-lab__table th, .azcb-lab__table td {
	text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--azcb-line);
}
.azcb-lab__table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--azcb-muted); }
.azcb-lab__table tr.is-flagged td { background: rgba(255, 149, 0, .08); }
.azcb-flag {
	font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .04em;
	color: #a35c00;
}
.azcb-lab__note { font-size: .84rem; color: var(--azcb-muted); margin: .7rem 0 0; }

.azcb-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
	background: #1c1c1e; color: #fff; padding: .7rem 1.2rem; border-radius: 12px;
	font-size: .9rem; z-index: 99999; opacity: 0; transition: opacity .25s ease, transform .25s ease;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .28); max-width: 90vw;
}
.azcb-toast.is-open { opacity: 1; transform: translate(-50%, 0); }
.azcb-toast.is-error { background: #a01023; }
.azcb-toast.is-ok { background: #0a7a38; }

@media (max-width: 560px) {
	.azcb-portal__item { flex-direction: column; align-items: flex-start; }
	.azcb-portal__itemEnd { width: 100%; }
}


.azcb-portal__fine { font-size: 13px; opacity: .7; margin: 10px 0 0; }
.azcb-portal__signup h3 { margin-top: 0; }

/* Native selects: keep a visible arrow even when the theme strips it. */
.azcb select.azcb-input{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;cursor:pointer}

/* "Any time — clinic will choose" ----------------------------------------- */
.azcb .azcb-anytime {
	display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 20px; padding: 14px 16px;
	border: 1.5px dashed var(--azcb-accent-line); border-radius: 14px; background: var(--azcb-accent-soft);
	color: var(--azcb-ink); text-align: left; cursor: pointer; font: inherit;
	transition: border-color .15s ease, transform .15s ease;
}
.azcb .azcb-anytime:hover { border-color: var(--azcb-accent); transform: translateY(-1px); }
.azcb .azcb-anytime.is-picked { border-style: solid; border-color: var(--azcb-accent); }
.azcb-anytime__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--azcb-accent); }
.azcb-anytime__icon svg { width: 22px; height: 22px; }
.azcb-anytime__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.azcb-anytime__txt strong { font-size: 15px; }
.azcb-anytime__txt small { color: var(--azcb-muted); font-size: 13px; }
