/* Clean Booking Pro — front-end styles (theme-agnostic, mobile-first) */
:root {
	--cbp-brand: #0e7c6b;
	--cbp-ink: #17212b;
	--cbp-muted: #637083;
	--cbp-line: #e2e7ec;
	--cbp-soft: #f4f7f8;
	--cbp-bg: #ffffff;
	--cbp-danger: #c2412d;
	--cbp-warn: #a46200;
	--cbp-ok: #1d7a3a;
	--cbp-radius: 12px;
}
.cbp-app, .cbp-login, .cbp-modal { font-family: inherit; color: var(--cbp-ink); font-size: 16px; line-height: 1.45; }
.cbp-app *, .cbp-modal * { box-sizing: border-box; }
.cbp-app { max-width: 1040px; margin: 0 auto; }
.cbp-app h2, .cbp-app h3, .cbp-app h4 { margin: 0 0 .6em; line-height: 1.2; }
.cbp-muted { color: var(--cbp-muted); font-size: .92em; }
.cbp-error { color: var(--cbp-danger); font-size: .95em; min-height: 1em; }
.cbp-hp { position: absolute !important; left: -9999px !important; }
.cbp-app [hidden], .cbp-modal [hidden] { display: none !important; }

/* Buttons & inputs */
.cbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid transparent; border-radius: 999px;
	padding: .62em 1.15em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; background: var(--cbp-soft); color: var(--cbp-ink); transition: filter .15s, background .15s; }
.cbp-btn:hover { filter: brightness(.96); }
.cbp-btn:disabled { opacity: .55; cursor: not-allowed; }
.cbp-primary { background: var(--cbp-brand); color: #fff; }
.cbp-ghost { background: #fff; border-color: var(--cbp-line); }
.cbp-danger { color: var(--cbp-danger); }
.cbp-btn.cbp-danger:not(.cbp-ghost) { background: var(--cbp-danger); color: #fff; }
.cbp-big { width: 100%; padding: .95em; font-size: 1.05em; margin-top: .8em; }
.cbp-input { display: block; width: 100%; margin-top: .3em; padding: .7em .8em; border: 1px solid var(--cbp-line); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.cbp-input:focus { outline: 2px solid color-mix(in srgb, var(--cbp-brand) 40%, transparent); border-color: var(--cbp-brand); }
.cbp-card { min-height: 46px; padding-top: .85em; }
.cbp-form label, .cbp-modal-body > label { display: block; margin: 0 0 .9em; font-weight: 600; font-size: .93em; }
.cbp-check { display: flex !important; gap: .55em; align-items: flex-start; font-weight: 400 !important; }
.cbp-check input { margin-top: .25em; }
.cbp-row2 { display: grid; grid-template-columns: 1fr; gap: 0 1em; }
@media (min-width: 560px) { .cbp-row2 { grid-template-columns: 1fr 1fr; } }

/* Chips */
.cbp-chips { display: flex; flex-wrap: wrap; gap: .5em; margin: .4em 0 1em; }
.cbp-chip, .cbp-chip-check { border: 1px solid var(--cbp-line); background: #fff; border-radius: 999px; padding: .5em .95em; cursor: pointer; font: inherit; font-size: .93em; color: inherit; }
.cbp-chip.on { background: var(--cbp-brand); color: #fff; border-color: var(--cbp-brand); }
.cbp-chip:disabled { opacity: .45; cursor: not-allowed; }
.cbp-chip small { opacity: .8; margin-left: .3em; }
.cbp-chip-check { display: inline-flex !important; gap: .35em; align-items: center; margin: 0 !important; font-weight: 400 !important; }

/* Wizard */
.cbp-steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.4em; gap: .35em; counter-reset: s; overflow-x: auto; }
.cbp-steps li { flex: 1; min-width: 88px; font-size: .8em; color: var(--cbp-muted); border-top: 4px solid var(--cbp-line); padding-top: .45em; counter-increment: s; white-space: nowrap; }
.cbp-steps li::before { content: counter(s) ". "; }
.cbp-steps li.on { color: var(--cbp-ink); border-color: var(--cbp-brand); font-weight: 700; }
.cbp-steps li.done { border-color: color-mix(in srgb, var(--cbp-brand) 45%, #fff); }
.cbp-wiz-grid { display: grid; grid-template-columns: 1fr; gap: 1.4em; }
@media (min-width: 860px) { .cbp-wiz-grid { grid-template-columns: 1fr 320px; align-items: start; } .cbp-summary { position: sticky; top: 24px; } }
.cbp-wiz-main { background: #fff; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: 1.3em; }
.cbp-wiz-nav { display: flex; justify-content: space-between; margin-top: 1.2em; }
.cbp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8em; margin-bottom: 1.2em; }
.cbp-card-opt { text-align: left; border: 2px solid var(--cbp-line); background: #fff; border-radius: var(--cbp-radius); padding: 1em; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: .3em; }
.cbp-card-opt span { color: var(--cbp-muted); font-size: .88em; }
.cbp-card-opt em { font-style: normal; font-weight: 700; color: var(--cbp-brand); margin-top: auto; }
.cbp-card-opt.on { border-color: var(--cbp-brand); background: color-mix(in srgb, var(--cbp-brand) 6%, #fff); }
.cbp-stepper { display: inline-flex; align-items: center; border: 1px solid var(--cbp-line); border-radius: 999px; margin-top: .35em; }
.cbp-stepper button { width: 2.4em; height: 2.4em; border: 0; background: transparent; font-size: 1.15em; cursor: pointer; color: var(--cbp-brand); }
.cbp-stepper span { min-width: 2em; text-align: center; font-weight: 700; }
.cbp-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6em; }
.cbp-extra { display: flex; justify-content: space-between; gap: .5em; border: 2px solid var(--cbp-line); background: #fff; border-radius: 10px; padding: .8em; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.cbp-extra em { font-style: normal; color: var(--cbp-muted); white-space: nowrap; }
.cbp-extra.on { border-color: var(--cbp-brand); background: color-mix(in srgb, var(--cbp-brand) 6%, #fff); }
.cbp-extra.on::before { content: "✓"; color: var(--cbp-brand); font-weight: 700; }
.cbp-summary { background: var(--cbp-soft); border-radius: var(--cbp-radius); padding: 1.2em; }
.cbp-summary ul, .cbp-lines ul { list-style: none; padding: 0; margin: 0 0 .8em; }
.cbp-summary li, .cbp-lines li { display: flex; justify-content: space-between; gap: 1em; padding: .25em 0; font-size: .92em; }
.cbp-disc { color: var(--cbp-ok); }
.cbp-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--cbp-line); padding-top: .6em; font-size: 1.1em; }
.cbp-total strong { font-size: 1.45em; }
.cbp-tag { display: inline-block; background: color-mix(in srgb, var(--cbp-brand) 12%, #fff); color: var(--cbp-brand); font-weight: 600; font-size: .8em; padding: .25em .7em; border-radius: 999px; margin: .4em 0; }
.cbp-review { background: var(--cbp-soft); padding: .9em 1em; border-radius: 10px; margin-bottom: 1em; }
.cbp-pay-note { border-left: 4px solid var(--cbp-brand); padding: .6em .9em; background: color-mix(in srgb, var(--cbp-brand) 5%, #fff); margin-bottom: 1em; font-size: .95em; }
.cbp-done { text-align: center; padding: 2.5em 1em; }
.cbp-tick { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 1em; border-radius: 50%; background: var(--cbp-brand); color: #fff; font-size: 32px; }

/* Portals */
.cbp-portal-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6em; margin-bottom: 1em; }
.cbp-tabs { display: flex; gap: .3em; border-bottom: 1px solid var(--cbp-line); margin-bottom: 1.2em; overflow-x: auto; }
.cbp-tabs button { border: 0; background: none; padding: .7em .9em; font: inherit; font-weight: 600; color: var(--cbp-muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.cbp-tabs button.on { color: var(--cbp-ink); border-color: var(--cbp-brand); }
.cbp-refresh { margin-left: auto; }
.cbp-job { border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: 1em 1.1em; margin-bottom: .9em; background: #fff; }
.cbp-job.cbp-offer { border-color: var(--cbp-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cbp-brand) 15%, transparent); }
.cbp-job p { margin: .5em 0; }
.cbp-job-head { display: flex; justify-content: space-between; gap: 1em; }
.cbp-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .25em; }
.cbp-price { font-weight: 700; font-size: 1.1em; }
.cbp-actions { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .8em; }
.cbp-note { background: var(--cbp-soft); padding: .5em .7em; border-radius: 8px; font-size: .93em; }
.cbp-lines summary { cursor: pointer; color: var(--cbp-muted); font-size: .9em; }
.cbp-empty { text-align: center; color: var(--cbp-muted); padding: 2.5em 1em; border: 1px dashed var(--cbp-line); border-radius: var(--cbp-radius); }
.cbp-alert { background: #fff6e5; border: 1px solid #f1d39b; color: #6b4a00; padding: .8em 1em; border-radius: 10px; margin-bottom: 1em; }
.cbp-badge { display: inline-block; font-size: .74em; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: var(--cbp-soft); color: var(--cbp-muted); text-transform: uppercase; letter-spacing: .02em; }
.cbp-b-assigned, .cbp-b-paid, .cbp-b-prepaid, .cbp-b-completed, .cbp-b-active, .cbp-b-approved { background: #e3f4e8; color: var(--cbp-ok); }
.cbp-b-open, .cbp-b-offered, .cbp-b-pending, .cbp-b-paused { background: #fff3dc; color: var(--cbp-warn); }
.cbp-b-on_way, .cbp-b-in_progress, .cbp-b-processing { background: #e4efff; color: #1e56b0; }
.cbp-b-failed, .cbp-b-cancelled, .cbp-b-suspended { background: #fde8e4; color: var(--cbp-danger); }
.cbp-checklist { columns: 2 220px; margin-bottom: .8em; }
.cbp-checklist .cbp-check { break-inside: avoid; margin-bottom: .35em; }
.cbp-photos { display: flex; flex-wrap: wrap; gap: .5em; margin: .5em 0; }
.cbp-photos a { position: relative; display: block; }
.cbp-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; display: block; }
.cbp-photos span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.cbp-upload { position: relative; }
.cbp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7em; margin-bottom: 1em; }
.cbp-tiles div { background: var(--cbp-soft); border-radius: var(--cbp-radius); padding: .9em; }
.cbp-tiles span { display: block; color: var(--cbp-muted); font-size: .85em; }
.cbp-tiles strong { font-size: 1.35em; }
.cbp-table { width: 100%; border-collapse: collapse; font-size: .92em; margin-bottom: 1.2em; }
.cbp-table th, .cbp-table td { text-align: left; padding: .5em; border-bottom: 1px solid var(--cbp-line); }
.cbp-stars { display: flex; gap: .2em; margin-bottom: .8em; }
.cbp-stars button { font-size: 2em; border: 0; background: none; color: #cfd6dd; cursor: pointer; padding: 0 .05em; }
.cbp-stars button.on { color: #f2a900; }
.cbp-login { max-width: 420px; margin: 1em auto; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: 1.4em; }
.cbp-login input[type=text], .cbp-login input[type=password] { width: 100%; padding: .6em; border: 1px solid var(--cbp-line); border-radius: 8px; }

/* Modal & toast */
.cbp-modal-wrap { position: fixed; inset: 0; background: rgba(15, 23, 32, .5); z-index: 99999; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 600px) { .cbp-modal-wrap { align-items: center; } }
.cbp-modal { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 1.2em; }
@media (min-width: 600px) { .cbp-modal { border-radius: 16px; } }
.cbp-modal-head { display: flex; justify-content: space-between; align-items: center; }
.cbp-modal-head h3 { margin: 0; font-size: 1.15em; }
.cbp-x { border: 0; background: none; font-size: 1.8em; cursor: pointer; line-height: 1; color: var(--cbp-muted); }
.cbp-modal-body { margin: 1em 0; }
.cbp-modal-foot { display: flex; justify-content: flex-end; gap: .5em; flex-wrap: wrap; }
.cbp-modal-err { color: var(--cbp-danger); margin-top: .6em; font-size: .93em; }
.cbp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--cbp-ink); color: #fff; padding: .75em 1.2em; border-radius: 999px; z-index: 100000; transition: .25s; max-width: 92vw; font-size: .95em; }
.cbp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cbp-toast-err { background: var(--cbp-danger); }

/* Availability calendar */
.cbp-cal-head { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; margin-bottom: .6em; }
.cbp-cal-title { min-width: 150px; text-align: center; font-size: 1.1em; }
#cbp-range { margin-left: auto; }
.cbp-cal-legend { display: flex; flex-wrap: wrap; gap: .8em; font-size: .8em; color: var(--cbp-muted); margin-bottom: .6em; }
.cbp-cal-legend .lg::before { content: ""; display: inline-block; width: .9em; height: .9em; border-radius: 3px; margin-right: .3em; vertical-align: -1px; }
.cbp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1.2em; }
.cbp-cal-dow { text-align: center; font-size: .75em; color: var(--cbp-muted); font-weight: 600; padding: .2em 0; }
.cbp-cal-day { min-height: 58px; border: 1px solid var(--cbp-line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: inherit; padding: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.cbp-cal-day .n { font-weight: 700; font-size: .9em; }
.cbp-cal-day .j { font-size: .68em; background: var(--cbp-ink); color: #fff; border-radius: 4px; padding: 0 4px; }
.cbp-cal-day.today { outline: 2px solid var(--cbp-brand); }
.cbp-cal-day.past { opacity: .4; cursor: default; }
.cbp-cal-day.work, .lg.work::before { background: #e3f4e8; }
.cbp-cal-day.part, .lg.part::before { background: linear-gradient(135deg, #e3f4e8 50%, #fde8e4 50%); }
.cbp-cal-day.extra, .lg.extra::before { background: #e4efff; }
.cbp-cal-day.off, .lg.off::before { background: #fde8e4; }
.cbp-cal-day.closed, .lg.closed::before { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); }
.cbp-cal-day.none { background: var(--cbp-soft); color: var(--cbp-muted); }
.cbp-template { border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: .8em 1em; }
.cbp-template summary { cursor: pointer; }
@media (max-width: 480px) { .cbp-cal-day { min-height: 46px; } .cbp-cal-day .j { font-size: .6em; } }

/* Suburb search + area picker */
.cbp-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #fff; border: 1px solid var(--cbp-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 280px; overflow: auto; margin-top: 2px; }
.cbp-suggest button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: .6em .8em; font: inherit; cursor: pointer; color: inherit; }
.cbp-suggest button:hover { background: var(--cbp-soft); }
.cbp-suggest button span { color: var(--cbp-muted); font-size: .85em; }
.cbp-area { border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: .7em; margin-bottom: 1em; max-height: 460px; overflow: auto; }
.cbp-area-filter { margin: 0 0 .6em !important; }
.cbp-area-state + .cbp-area-state { border-top: 1px solid var(--cbp-line); margin-top: .6em; padding-top: .6em; }
.cbp-area-all { margin-bottom: .4em !important; }
.cbp-area-city { margin: .3em 0 .3em 1.4em; }
.cbp-area-city summary { cursor: pointer; display: flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.cbp-area-city summary .cbp-check { margin: 0 !important; display: inline-flex !important; }
.cbp-area-subs { display: flex; flex-wrap: wrap; gap: .35em; padding: .5em 0 .3em; }
.cbp-area-subs .cbp-chip-check { font-size: .85em; padding: .35em .7em; }
.cbp-area-subs small { color: var(--cbp-muted); }
.cbp-covered .cbp-area-subs { opacity: .45; }
