/* Public calendar: layout, slots and navigation. */
#calendar {
	display: flex;
	flex-direction: column;
	padding: 10px;
}

#calendarContainer { width: 100%; }

#calendar #calendarElements {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 48px;
}

#calendar #days {
	display: flex;
	gap: 4px;
	flex: 1;
	min-width: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 14px;
	user-select: none;
}

#calendar .calendarDayColumn {
	flex: 1 1 0;
	min-width: 0;
	padding-bottom: 2px;
	text-align: center;
}

#calendar .calendarDayColumn[displayStatus=loaded] { display: none; }
#calendar .calendarDayColumn[displayStatus=displayed] { display: block; }

#calendar .slot {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
	border-radius: 10px;
	padding: 4px;
	margin-top: 4px;
	word-break: break-word;
	cursor: pointer;
	transition: box-shadow .2s;
}

#calendar .slot:first-child { margin-top: 0; }
#calendar .slot[status=freePublic] {
	background: var(--available-slot);
	min-height: 40px;
}
#calendar .slot:hover { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .04); }
#calendar .slot[isPending='1'],
#calendar .slot[isOverlapping='1'] { background: #f1f1f1 !important; }

#calendar .agendaPrevious,
#calendar .agendaNext {
	position: absolute;
	top: 6px;
	display: flex;
	align-items: flex-start;
	padding-top: 0;
	margin: 0;
}

#calendar .agendaPrevious { left: -20px; }
#calendar .agendaNext { right: -20px; }

#calendar .agendaPrevious .button,
#calendar .agendaNext .button {
	position: relative;
	box-sizing: content-box;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(203, 213, 225, .5);
	border-radius: 100px;
	background: rgba(255, 255, 255, .88);
	color: #172033;
	user-select: none;
	box-shadow: 0 3px 10px rgba(15, 23, 42, .045);
	backdrop-filter: blur(6px);
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#calendar .button img {
	display: block;
	width: 14px;
	height: 14px;
	filter: brightness(0) saturate(100%) invert(12%) sepia(20%) saturate(1112%) hue-rotate(175deg) brightness(94%) contrast(93%);
	pointer-events: none;
}

#calendar .agendaPrevious[status=disabled] .button,
#calendar .agendaNext[status=disabled] .button {
	background: #f6f6f6;
	cursor: default;
	color: grey;
	opacity: .42;
	pointer-events: none;
}
#calendar .button:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* Navigation uses the same small spinner as the pro calendar. */
#calendar #calendarElements[aria-busy=true] > * { pointer-events: none; }
#calendar .button[aria-busy=true] > img { opacity: 0; }
#calendar .button[aria-busy=true]::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	border: 2px solid #808080;
	border-right-color: transparent;
	border-radius: 50%;
	animation: publicAgendaSpin .7s linear infinite;
}

@keyframes publicAgendaSpin { to { transform: rotate(360deg); } }

/* Initial load and service changes use animated day placeholders. */
.publicAgendaSkeleton {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.publicAgendaSkeletonDay {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
	padding: 10px;
}

.publicAgendaSkeletonDay span {
	display: block;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(90deg, #edf1f5 25%, #f7f9fb 50%, #edf1f5 75%);
	background-size: 200% 100%;
	animation: publicAgendaShimmer 1.5s linear infinite;
}

.publicAgendaSkeletonDay span:first-child { width: 72%; height: 13px; border-radius: 999px; }
.publicAgendaSkeletonDay span:nth-child(2) { width: 42%; height: 13px; border-radius: 999px; }

@keyframes publicAgendaShimmer { to { background-position-x: -200%; } }

@media (max-width: 800px) {
	.publicAgendaSkeleton { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.publicAgendaSkeletonDay:nth-child(n+5) { display: none; }
}

@media (max-width: 400px) {
	.publicAgendaSkeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.publicAgendaSkeletonDay:nth-child(n+3) { display: none; }
}

#calendar .publicAgendaError {
	margin: 8px 0;
	padding: 10px;
	border-radius: 10px;
	background: #fff1f0;
	color: #8b2020;
}

@media (max-width: 500px) {
	#calendar .slot { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
	#calendar .button[aria-busy=true]::after { animation-duration: 1.5s; }
	.publicAgendaSkeletonDay span { animation: none; }
}

address {
	font-style: normal; 
}

#proPublicUserName {
	text-align: center;
	font-size: 200%;
	font-weight: bold;
	color: rgba(0, 0, 0, 0.80);
}

.proPublicContent {
    border: 1px solid #d5e0ec;
    border-radius: 15px;
    text-align: left;
    margin-top: 24px;
    background: #fff;
}

.proPublicContent > .title {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    font-size: 90%;
    font-weight: 400;
}

.proPublicContent .title img {
    margin-right: 8px;
    opacity: .85;
}

.proPublicContent > .body {
    padding: 0 16px 16px;
}


.proPublicNote {
	font-size: 90%;
}

#headerTitleActions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	flex: 0 0 auto;
}

#headerTitleActions .userPageShareButton {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	background: #f5f6f8;
	color: #30343b;
	cursor: pointer;
}

#headerTitleActions .userPageShareButton:active {
	background: #e9eaed;
}

@media (hover: hover) {
	#headerTitleActions .userPageShareButton:hover {
		background: #eeeff2;
	}
}

#headerTitleActions .userPageShareButton:focus-visible {
	outline: 3px solid rgba(0, 155, 125, 0.22);
	outline-offset: 3px;
}

#headerTitleActions .userPageShareButtonIcon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex: 0 0 auto;
}

@media (max-width: 640px) {

	#headerTitle {
		display: flex;
		align-items: center;
	}

	#headerTitleActions {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		margin-left: auto;
		align-self: center;
		flex: 0 0 auto;
	}

}

#firstAvailableSlotMessage {
	display: flex;
	flex-grow: 1;
	align-items: center;
	justify-content: center;
	user-select : none;
}

#firstAvailableSlotMessage #message {
	text-align: center;
    padding: 10px;
    margin-top: 10px;
    background: #e4e6eb;
    border-radius: 16px;
    cursor: pointer;
}

#firstAvailableSlotMessage #message:hover {
	background: #d8dadf;
}

main #headerTitle {
	padding-top: 64px;
	background: white;
	margin-bottom: 30px;
	border-bottom: 1px solid #d5e0ec;
	border-radius: 0;
	box-shadow: none;
}

main #headerTitleContent {
    display: flex;
    align-items: center;
    padding: 10px;
    max-width: 1150px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
}

main  #headerTitleContent #titleUserPage {
    width: 100px;
    height: 100px;
	text-align: center;
	color: #000;
	font-weight: bold;
	color: rgba(0, 0, 0, 0.80);
}


main  #headerTitleContent #titleUserPage img {
	width: 100px;
	border-radius: 10px;
}

main #headerTitleContent #name {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

main #headerTitleContent #name h1 {
	font-style: normal;
	font-size: 110%;
}

main #headerTitleContent #name .managerLink {
	font-size: 90%;
    font-weight: 500;
    color: #3e4c60;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f5f7f9;
    border: 1px solid #d5e0ec;
}

main #headerTitleContent #name .managerLink:hover {
    border-color: var(--available-bright);
    color: var(--available-bright);
}

#proAgendaPublicCustomInformation {
	margin-top: 20px;
}

#proPublicMapAuthorization {
	background:#f7f9fc;
	color: #3e4c60;
	padding:16px;
    border-radius: 16px;
	font-size:90%;
	text-align:center;
}

#proPublicMapAuthorization button {
	max-width:150px;
	margin: 10px auto 0;
	background: #087c6c;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
}

#proPublicPresentation {
    background: transparent;
    padding: 0;
    line-height: 1.6;
}

#proPublicPresentation > p {
    margin: 0 0 16px;
}

#proPublicPresentation > p:last-child {
    margin-bottom: 0;
}

#maps-in-iframe {
	background: url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7) center center no-repeat;
	height: 300px;
	margin-top: 10px;
}

.proPublicContent > .body .serviceRow {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    gap: 10px;
    background: #f7f9fc;
    border: 1px solid #e7edf4;
    border-radius: 8px;
}

.proPublicContent > .body .serviceRow:last-child {
    margin-bottom: 0;
}

.proPublicContent > .body .serviceRow .duration {
    color: #3e4c60;
    font-size: 0.9em; /* make the duration text slightly smaller */
}

.proPublicContent > .body .serviceRow .serviceRowColumnPrice {
	display: flex;
	align-items: center;
	justify-content: right;
    text-align: right;
    width: 80px;
}

.body > .userAddressDesignation {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
    border-radius: 0;
}

.body > .userAddressDesignation:hover {
    background: transparent;
}

.body > .userAddressDesignation:last-child {
    margin-bottom: 0;
}

.body > .userAddressDesignation .title {
    padding: 0 0 8px;
    color: #3e4c60;
    font-size: 90%;
    /* font-weight: 400; */
}

.proPublicInformation {
    background: #FFF;
    border: 1px solid #d5e0ec;
    border-radius: 15px;
    margin-top: 24px;
    padding: 12px 16px;
}

/* */
/* Copy reservation page URL */
/* */

.inputUrlGroup {
	display: flex;
	align-items: center;
	width: 100%;
	border: 1px solid rgba(71, 85, 105, 0.12);
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inputUrlGroup:focus-within {
	border-color: rgba(0, 155, 125, 0.45);
	box-shadow: 0 0 0 4px rgba(0, 155, 125, 0.10);
}

.inputUrlGroup .inputPrefix {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 0 0 14px;
	color: #667085;
	white-space: nowrap;
	background: transparent;
}

.inputUrlGroup input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 0;
	outline: none;
	padding: 0 12px;
	background: transparent;
	color: #1f2937;
}

/* Focus effect is hover parent */
.inputUrlGroup input[type="text"]:not([disabled]):focus {
	outline: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}


.inputUrlCopyButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0 2px 0 0 !important;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #667085;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inputUrlCopyButton:hover {
	background: rgba(0, 155, 125, 0.08);
	color: var(--available-bright);
}

.inputUrlCopyButton .material-icons {
	font-size: 18px;
	line-height: 1;
}

.inputUrlCopyButton .checkIcon {
	display: none;
}

.inputUrlCopyButton.is-copied {
	background: rgba(0, 155, 125, 0.12);
	color: var(--available-bright);
}

.inputUrlCopyButton.is-copied .copyIcon {
	display: none;
}

.inputUrlCopyButton.is-copied .checkIcon {
	display: inline-flex;
}

/* */
/* Waiting list feature */
/* */

.proPublicInformationWaitingList {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-top: 24px;
    background: #f7f9fc;
    border: 1px solid #e7edf4;
    border-radius: 15px;
}

.proPublicInformationIcon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-surface);
}

.proPublicInformationIcon img {
    width: 20px;
    height: 20px;
}

.proPublicInformationText {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.proPublicInformationText strong {
    font-size: 90%;
    font-weight: 600;
    line-height: 1.4;
}

.proPublicInformationText > span,
.proPublicInformationCustomText {
    font-size: 90%;
    line-height: 1.5;
    color: #506176;
    overflow-wrap: anywhere;
}

.proPublicInformationCustomText {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e7edf4;
}

.proPublicInformationButton {
    display: inline-flex;
    flex-shrink: 0;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #b8dcd4;
    border-radius: 10px;
    background: #ffffff;
    color: var(--brand-primary);
    font: inherit;
    font-size: 90%;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.proPublicInformationButton:hover {
    background: var(--brand-surface);
}

.proPublicInformationButton:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

.proPublicInformationButton > span[aria-hidden] {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .proPublicInformationWaitingList {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    .proPublicInformationButton {
        width: 100%;
    }
}

/* Public agenda: location and service selection */
.publicAgendaSelection {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 10px;
}
/* Shared button for summaries, locations and services. */
.choiceCard {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 16px;
	border: 1px solid #d3dce8;
	border-radius: 14px;
	background: #fff;
	color: #30343b;
	font: inherit;
	text-align: left;
	white-space: normal;
	transition: border-color .16s ease, background-color .16s ease;
}
button.choiceCard {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	cursor: pointer;
}
.choiceCardContent {
	flex: 1;
	min-width: 0;
}
.choiceCardTitle, .choiceCardDetail {
	display: block;
	overflow-wrap: anywhere;
}
.choiceCardTitle {
	font-weight: 400;
	line-height: 1.4;
}
.choiceCardDetail {
	color: #3e4c60;
	font-size: 90%;
	line-height: 1.5;
	margin-top: 5px;
}
.choiceCardDetail:empty, .choiceCard[hidden] {
	display: none;
}
.choiceCardChevron {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f5f6f8;
	line-height: 1;
	font-size: 24px;
	color: #555b63;
}
.choiceCard:disabled {
	background: #f7f9fc;
	opacity: 1;
	cursor: default;
}
.choiceCard:disabled .choiceCardChevron {
	display: none;
}
.choiceCard:not(:disabled):hover {
	border-color: #c4cdd9;
}
.choiceCard[aria-pressed=true] {
	border-color: #9cabb5;
	background: #f5f6f8;
}
#publicAgendaSelectionPrompt {
	color: #3e4c60;
	font-size: 90%;
	margin: 0;
	padding: 0 16px 0;
}
#calendar.publicAgendaPending .publicAgendaSummary {
	border-color: var(--brand-primary);
	background: var(--brand-surface);
}

#calendar.publicAgendaPending .publicAgendaSummary .choiceCardTitle {
	font-weight: 600;
}

#calendar.publicAgendaPending #calendarElements,
#calendar.publicAgendaPending #firstAvailableSlotMessage {
	display: none;
}
#publicAgendaSelectionBody {
	background: #fff;
	padding: 16px;
}
#publicAgendaAddressChoices, #publicAgendaServiceChoices {
	display: grid;
	gap: 12px;
}
.choiceCard.publicAgendaServiceChoice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 4px 12px;
}
.publicAgendaServiceMeta, .publicAgendaDescription {
	grid-column: 1 / -1;
	color: #3e4c60;
	font-size: 90%;
	line-height: 1.5;
}
.publicAgendaServiceMeta:empty {
	display: none;
}
.publicAgendaServicePrice {
	color: #3e4c60;
}
.publicAgendaPlaceIcon {
	color: #555b63;
	flex-shrink: 0;
}
.publicAgendaDescription {
	white-space: pre-line;
}
.choiceCard:focus-visible, #publicAgendaSelectionBody button:focus-visible {
	outline: 2px solid #555b63;
	outline-offset: 3px;
}
#publicAgendaSelectionBody [hidden] {
	display: none;
}
@media (max-width: 640px) {
    main #headerTitleContent #name { margin-left: 14px; min-width: 0; overflow-wrap: anywhere; }
    .proPublicContent > .title { padding: 16px 16px 10px; }
}
