/* Cybercom Booking widget */
.cbk-root {
	--cbk-accent: #2563eb;
	--cbk-bg: #ffffff;
	--cbk-text: #111827;
	--cbk-radius: 12px;
	--cbk-font: inherit;
	--cbk-muted: color-mix(in srgb, var(--cbk-text) 60%, transparent);
	--cbk-line: color-mix(in srgb, var(--cbk-text) 14%, transparent);
	--cbk-soft: color-mix(in srgb, var(--cbk-accent) 12%, var(--cbk-bg));
	font-family: var(--cbk-font);
	color: var(--cbk-text);
	line-height: 1.4;
	container-type: inline-size;
}
.cbk-root *, .cbk-root *::before, .cbk-root *::after { box-sizing: border-box; }
.cbk-root button { font: inherit; color: inherit; cursor: pointer; }
.cbk-root button:disabled { cursor: default; }
.cbk-root :focus-visible { outline: 2px solid var(--cbk-accent); outline-offset: 2px; }

.cbk-card {
	background: var(--cbk-bg);
	border: 1px solid var(--cbk-line);
	border-radius: var(--cbk-radius);
	padding: 20px;
	max-width: 860px;
}
.cbk-layout-stacked .cbk-card { max-width: 420px; }

.cbk-title { font-size: 1.15em; font-weight: 700; }
.cbk-pad { margin-bottom: 12px; }
.cbk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88em; color: var(--cbk-muted); }
.cbk-muted { color: var(--cbk-muted); font-size: .92em; }
.cbk-error { color: #b91c1c; font-size: .92em; margin: 8px 0; }

/* Header */
.cbk-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--cbk-line); }
.cbk-back, .cbk-nav, .cbk-close {
	background: transparent; border: 1px solid var(--cbk-line); border-radius: 999px;
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 18px; line-height: 1;
}
.cbk-back:hover, .cbk-nav:hover:not(:disabled), .cbk-close:hover { background: var(--cbk-soft); }
.cbk-nav:disabled { opacity: .3; }

/* Meeting type list */
.cbk-types { display: grid; gap: 10px; }
.cbk-sub { font-size: .92em; color: var(--cbk-muted); margin-top: 2px; }
.cbk-type {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; width: 100%;
	background: var(--cbk-bg); border: 1px solid var(--cbk-line); border-left: 4px solid var(--cbk-accent);
	border-radius: var(--cbk-radius); padding: 14px 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.cbk-type:hover, .cbk-type:focus-visible { background: var(--cbk-soft); border-color: var(--cbk-accent); box-shadow: 0 4px 14px rgba(15, 23, 42, .12); }
.cbk-type-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbk-type-cta {
	flex: none; background: var(--cbk-accent); color: #fff; font-weight: 700; font-size: .9em; white-space: nowrap;
	border-radius: 999px; padding: 9px 16px;
}
.cbk-type:hover .cbk-type-cta { filter: brightness(1.08); }
@container (max-width: 420px) {
	.cbk-type { flex-direction: column; align-items: stretch; }
	.cbk-type-cta { text-align: center; }
}
.cbk-type-name { font-weight: 700; }
.cbk-type-desc { font-size: .92em; color: var(--cbk-muted); }

/* Calendar first: meeting type tabs */
.cbk-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.cbk-tab {
	display: flex; flex-direction: column; gap: 2px; text-align: left;
	background: var(--cbk-bg); border: 1px solid var(--cbk-line); border-radius: calc(var(--cbk-radius) * .7); padding: 10px 14px;
}
.cbk-tab:hover { border-color: var(--cbk-accent); background: var(--cbk-soft); }
.cbk-tab.is-active { background: var(--cbk-accent); border-color: var(--cbk-accent); color: #fff; }
.cbk-tab-name { font-weight: 700; }
.cbk-tab-meta { font-size: .85em; opacity: .75; }
.cbk-tab-desc { font-size: .92em; color: var(--cbk-muted); margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--cbk-line); }
.cbk-tabs + .cbk-pick { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cbk-line); }

/* Calendar + times */
.cbk-pick { display: grid; gap: 24px; }
.cbk-layout-inline .cbk-pick { grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px); }
@container (max-width: 560px) {
	.cbk-layout-inline .cbk-pick { grid-template-columns: 1fr; }
}

.cbk-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cbk-month { font-weight: 700; }
.cbk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cbk-cal.is-loading .cbk-grid { opacity: .5; }
.cbk-dow { text-align: center; font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: var(--cbk-muted); padding: 4px 0; }
.cbk-day {
	aspect-ratio: 1; border: 0; border-radius: 999px; background: transparent;
	font-size: .95em; color: var(--cbk-muted); max-width: 44px; width: 100%; justify-self: center;
}
.cbk-day.is-open { background: var(--cbk-soft); color: var(--cbk-accent); font-weight: 700; }
.cbk-day.is-open:hover { background: color-mix(in srgb, var(--cbk-accent) 22%, var(--cbk-bg)); }
.cbk-day.is-selected { background: var(--cbk-accent); color: #fff; }
.cbk-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--cbk-accent); }
.cbk-day:disabled { opacity: .45; }

.cbk-times-head { font-weight: 700; margin-bottom: 10px; }
.cbk-slots { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.cbk-layout-stacked .cbk-slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
.cbk-slot {
	background: var(--cbk-bg); border: 1px solid var(--cbk-accent); color: var(--cbk-accent) !important;
	border-radius: calc(var(--cbk-radius) * .6); padding: 10px 8px; font-weight: 600;
}
.cbk-slot:hover { background: var(--cbk-accent); color: #fff !important; }
.cbk-tz { font-size: .8em; color: var(--cbk-muted); margin: 12px 0 0; }

/* Form */
.cbk-summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 16px; background: var(--cbk-soft); border-radius: calc(var(--cbk-radius) * .6); }
.cbk-form { display: grid; gap: 12px; max-width: 460px; }
.cbk-field { display: grid; gap: 4px; font-size: .92em; font-weight: 600; }
.cbk-field input, .cbk-field textarea {
	font: inherit; font-weight: 400; color: var(--cbk-text); background: var(--cbk-bg);
	border: 1px solid var(--cbk-line); border-radius: calc(var(--cbk-radius) * .6); padding: 10px 12px; width: 100%;
}
.cbk-field input:focus, .cbk-field textarea:focus { border-color: var(--cbk-accent); outline: none; box-shadow: 0 0 0 3px var(--cbk-soft); }
.cbk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cbk-btn {
	background: var(--cbk-accent); color: #fff !important; border: 0;
	border-radius: calc(var(--cbk-radius) * .6); padding: 12px 20px; font-weight: 700; justify-self: start;
}
.cbk-btn:hover:not(:disabled) { filter: brightness(1.08); }
.cbk-btn:disabled { opacity: .7; }

/* Done */
.cbk-done { text-align: center; padding: 16px 0; }
.cbk-check {
	width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 999px;
	background: var(--cbk-accent); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center;
}
.cbk-done a { color: var(--cbk-accent); font-weight: 600; }

/* Pop-up */
.cbk-overlay {
	position: fixed; inset: 0; z-index: 999999; background: rgba(15, 23, 42, .55);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cbk-modal { position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--cbk-radius); }
.cbk-modal .cbk-card { max-width: none; border: 0; }
.cbk-modal-body { container-type: inline-size; }
.cbk-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--cbk-bg); }
.cbk-modal .cbk-head { padding-right: 44px; }
html.cbk-noscroll { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
	.cbk-day, .cbk-slot, .cbk-type, .cbk-btn { transition: background-color .15s, color .15s, filter .15s; }
}
