/* Compact public booking, using the same palette and appearance as the CRM. */
.public-booking.booking {
	max-width: 540px;
	margin: 0 auto;
	padding: 22px 20px;
	background: var(--paper);
}
.public-booking-header {
	margin-bottom: 20px;
}
.public-booking-brand {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--accent);
	text-decoration: none;
}
.public-booking-brand > span {
	display: grid;
	place-items: center;
	width: 27px;
	height: 29px;
	border-radius: 9px;
	background: var(--pink);
	font:
		23px / 1 Georgia,
		serif;
}
.public-booking-brand strong {
	font-size: 16px;
	letter-spacing: -0.4px;
	font-weight: 650;
}
.public-booking-person {
	display: flex;
	gap: 11px;
	align-items: center;
}
.public-booking-person > div:last-child {
	min-width: 0;
}
.public-booking-avatar {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: var(--pink);
	color: var(--accent);
	font:
		23px Georgia,
		serif;
}
.public-booking-avatar img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 16px;
}
.public-booking h1 {
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.5px;
	margin: 0 0 3px;
	overflow-wrap: anywhere;
}
.public-booking-specialty {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}
.public-booking-bio {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.65;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.public-booking-bio-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 30px;
	height: 28px;
	padding: 0;
	margin-left: 3px;
	background: transparent;
	color: var(--accent);
}
.public-booking svg,
.booking-profile-photo svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.public-booking-bio-toggle svg {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
	transition: transform 0.15s;
}
.public-booking-bio-toggle[aria-expanded="true"] svg {
	transform: rotate(-90deg);
}
.public-booking-address {
	margin: 7px 0 0;
	font-size: 12px;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.public-booking-flow {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.public-booking-label {
	font-size: 13px;
	font-weight: 550;
	margin-bottom: 7px;
}
.public-booking-picker {
	position: relative;
}
.public-booking-picker-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px;
	text-align: left;
	font-size: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--pink-soft);
	color: var(--ink);
}
.public-booking-picker-trigger svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	transform: rotate(90deg);
	transition: transform 0.15s;
	color: var(--accent);
}
.public-booking-picker-trigger[aria-expanded="true"] {
	border-color: var(--accent);
}
.public-booking-picker-trigger[aria-expanded="true"] svg {
	transform: rotate(-90deg);
}
.public-booking-picker-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
	box-shadow: 0 9px 28px #41263520;
	max-height: 330px;
	overflow-y: auto;
}
.public-booking-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 60px;
	padding: 10px;
	border-radius: 9px;
	background: transparent;
	text-align: left;
	font-size: 13px;
}
.public-booking-option small {
	display: block;
	color: var(--muted);
	font-size: 11px;
	margin-top: 2px;
}
.public-booking-option:hover,
.public-booking-option[aria-pressed="true"] {
	background: var(--pink-soft);
}
.public-booking-check {
	color: var(--accent);
	visibility: hidden;
}
.public-booking-option[aria-pressed="true"] .public-booking-check {
	visibility: visible;
}
.public-booking-duration {
	font-size: 12px;
	color: var(--muted);
	margin: 6px 0 12px;
}
.public-booking-month {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 7px;
}
.public-booking-month strong {
	font-size: 13px;
	font-weight: 550;
	text-transform: capitalize;
}
.public-booking-nav {
	display: flex;
	gap: 3px;
}
.public-booking-arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 38px;
	border-radius: 8px;
	background: transparent;
}
.public-booking-arrow svg {
	width: 17px;
	height: 17px;
}
.public-booking-arrow.prev svg {
	transform: rotate(180deg);
}
.public-booking-arrow:disabled {
	opacity: 0.35;
}
.public-booking-week,
.public-booking-calendar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}
.public-booking-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	height: 61px;
	border-radius: 10px;
	background: var(--pink-soft);
	font-variant-numeric: tabular-nums;
}
.public-booking-day small {
	font-size: 11px;
	color: var(--muted);
}
.public-booking-day b {
	font-size: 15px;
	font-weight: 550;
}
.public-booking-day span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
}
.public-booking-day:disabled {
	background: transparent;
	opacity: 0.35;
}
.public-booking-day[aria-pressed="true"] {
	background: var(--accent);
	color: var(--paper);
}
.public-booking-day[aria-pressed="true"] small,
.public-booking-slot[aria-pressed="true"] {
	color: var(--paper);
}
.public-booking-day[aria-pressed="true"] span {
	background: var(--paper);
}
.public-booking-all {
	border: 0;
	margin: 0;
	padding: 0;
}
.public-booking-all summary {
	color: var(--accent);
	font-size: 12px;
	padding: 9px 0 4px;
	min-height: 35px;
	width: fit-content;
	cursor: pointer;
}
.public-booking-calendar {
	padding: 7px 0;
}
.public-booking-calendar .public-booking-day {
	height: 44px;
	gap: 3px;
}
.public-booking-weekday {
	text-align: center;
	color: var(--muted);
	font-size: 11px;
	padding-bottom: 3px;
}
.public-booking-times-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 550;
	margin: 12px 0 9px;
}
.public-booking-times-head small {
	font-size: 11px;
	color: var(--muted);
	font-weight: 400;
}
.public-booking-slots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 7px;
}
.public-booking-slot {
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--pink-soft);
	font-size: 13px;
	font-weight: 550;
	font-variant-numeric: tabular-nums;
}
.public-booking-slot[aria-pressed="true"] {
	background: var(--accent);
	border-color: var(--accent);
}
.public-booking-summary {
	font-size: 12px;
	color: var(--muted);
	margin: 12px 0 9px;
}
.public-booking .btn {
	width: 100%;
	min-height: 46px;
	border-radius: 11px;
	background: var(--accent);
	color: var(--paper);
}
.public-booking .btn:disabled {
	opacity: 0.45;
}
.public-booking-note {
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted);
	margin: 9px 0 0;
}
.public-booking-contact {
	border: 0;
	padding: 0;
	margin: 14px 0 0;
	min-width: 0;
}
.public-booking-fields {
	display: grid;
	gap: 12px;
}
.public-booking-fields input {
	font-size: 16px;
}
.public-booking-contact .legal-fields {
	margin: 12px 0;
}
.public-booking-contact button {
	margin-top: 12px;
}
.public-booking .error:empty {
	display: none;
}
.public-booking .legal-footer {
	margin-top: 18px;
}
.public-booking button {
	transition:
		background-color 0.15s,
		border-color 0.15s;
}
.public-booking button:focus-visible,
.public-booking summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.booking-profile-photo-row {
	display: flex;
	align-items: center;
	gap: 16px;
}
.booking-profile-photo {
	width: 64px;
	height: 64px;
	padding: 0;
	border-radius: 18px;
	background: var(--pink);
	color: var(--accent);
	position: relative;
	flex-shrink: 0;
	font-size: 23px;
}
.booking-profile-photo img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 18px;
}
.booking-photo-camera {
	position: absolute;
	display: grid;
	place-items: center;
	right: -3px;
	bottom: -3px;
	width: 24px;
	height: 24px;
	border: 2px solid var(--paper);
	border-radius: 8px;
	background: var(--accent);
	color: var(--paper);
}
.booking-photo-camera svg {
	width: 13px;
	height: 13px;
}
.booking-photo-label {
	position: relative;
	overflow: hidden;
}
.booking-photo-label:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.booking-photo-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.booking-profile-photo-row .fine {
	margin: 5px 0 0;
}
.public-booking [hidden],
#booking-profile-settings [hidden] {
	display: none !important;
}
html[data-theme="dark"] .public-booking-picker-menu {
	box-shadow: 0 9px 28px #00000055;
}
html[data-theme="dark"] .public-booking-day[aria-pressed="true"],
html[data-theme="dark"] .public-booking-day[aria-pressed="true"] small,
html[data-theme="dark"] .public-booking-slot[aria-pressed="true"],
html[data-theme="dark"] .public-booking .btn,
html[data-theme="dark"] .booking-photo-camera {
	color: var(--bg);
}
html[data-theme="dark"] .public-booking-day[aria-pressed="true"] span {
	background: var(--bg);
}
@media (max-width: 350px) {
	.public-booking.booking {
		padding: 16px;
	}
	.public-booking h1 {
		font-size: 19px;
	}
	.public-booking-week,
	.public-booking-calendar {
		gap: 2px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.public-booking button,
	.public-booking svg {
		transition: none;
	}
}

.public-booking-time-pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 10px;
	color: var(--muted);
	font-size: 12px;
}
.public-booking-time-pages:empty {
	display: none;
}
.public-booking-time-pages button {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--paper);
	color: var(--ink);
}

/* Unified account and public booking profile. */
.unified-profile {
	border-radius: 16px;
}
.profile-header,
.profile-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.profile-header {
	align-items: flex-start;
	margin-bottom: 24px;
}
.profile-header .fine {
	margin-top: 6px;
}
.profile-form {
	display: grid;
	gap: 20px;
}
.unified-profile .booking-profile-photo,
.unified-profile .booking-profile-photo img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
}
.profile-photo-actions,
.profile-account-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.profile-name-fields {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 20px;
}
.profile-name-fields label {
	min-width: 0;
}
.profile-form textarea {
	min-height: 100px;
}
.profile-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 0;
	background: transparent;
	color: var(--accent);
	font-size: 14px;
	font-weight: 550;
	text-decoration: none;
	border-radius: 6px;
	transition: color 160ms ease-out;
}
.profile-action:hover {
	color: var(--ink);
}
.profile-action:focus-visible,
.profile-save:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}
.profile-action svg,
.profile-save svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.profile-page-link {
	white-space: nowrap;
}
.profile-footer {
	border-top: 1px solid var(--line);
	padding-top: 20px;
}
.profile-account-actions {
	gap: 24px;
}
.profile-save {
	min-height: 48px;
	white-space: nowrap;
}
.profile-form .error:empty {
	display: none;
}
.unified-profile .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 760px) {
	.profile-header,
	.profile-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
	.profile-name-fields {
		grid-template-columns: minmax(0, 1fr);
	}
	.profile-footer {
		gap: 16px;
	}
	.profile-account-actions {
		gap: 8px 20px;
	}
	.profile-save {
		width: 100%;
	}
	.unified-profile .booking-profile-photo-row {
		align-items: flex-start;
	}
}
@media (max-width: 380px) {
	.unified-profile {
		padding: 18px;
	}
	.unified-profile .booking-profile-photo,
	.unified-profile .booking-profile-photo img {
		width: 64px;
		height: 64px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.profile-action {
		transition: none;
	}
}
#booking-profile-settings .profile-save {
	background: var(--accent);
	color: var(--paper);
}
.unified-profile input::placeholder,
.unified-profile textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}
