/* Styles scoped only to elements created or marked by this plugin. */

.wca-amelia-native-add-more {
	display: none !important;
}

.wca-amelia-popup-overlay {
	position: fixed;
	z-index: 2147483000;
	inset: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(27, 20, 54, 0.46);
}

.wca-amelia-popup {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 420px);
	padding: 30px;
	border: 1px solid rgba(118, 87, 232, 0.24);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 55px rgba(25, 15, 69, 0.28);
	color: #252033;
	font: inherit;
	text-align: center;
}

.wca-amelia-popup h3 {
	margin: 0 32px 9px 0;
	color: #5136bd;
	font: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.wca-amelia-popup p {
	margin: 0;
	font: inherit;
	font-size: 15px;
	line-height: 1.55;
}

.wca-amelia-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6c637d;
	font: inherit;
	font-size: 28px;
	line-height: 28px;
	cursor: pointer;
}

.wca-amelia-popup-close:hover,
.wca-amelia-popup-close:focus-visible {
	background: #f2efff;
	color: #5136bd;
	outline: 0;
}

.wca-amelia-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 24px;
}

.wca-amelia-popup-add,
.wca-amelia-popup-finish {
	box-sizing: border-box;
	min-height: 43px;
	padding: 9px 15px;
	border-radius: 7px;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
}

.wca-amelia-popup-add {
	border: 1px solid #7657e8 !important;
	background: #7657e8 !important;
	color: #ffffff !important;
}

.wca-amelia-popup-add:hover,
.wca-amelia-popup-add:focus-visible {
	border-color: #5b3bcd !important;
	background: #5b3bcd !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.18);
	outline: 0;
}

.wca-amelia-popup-finish {
	border: 1px solid #7657e8 !important;
	background: #ffffff !important;
	color: #6545d2 !important;
}

.wca-amelia-popup-finish:hover,
.wca-amelia-popup-finish:focus-visible {
	border-color: #5b3bcd !important;
	background: #f8f6ff !important;
	color: #6545d2 !important;
	box-shadow: 0 0 0 3px rgba(118, 87, 232, 0.16);
	outline: 0;
}

@media (max-width: 640px) {
	/*
	 * Amelia renders the selected package appointment in this mobile collapse.
	 * Without a flexible width its date span can shrink to one character wide.
	 */
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-heading,
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-items,
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-items .am-collapse-item__trigger,
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-items .am-collapse-item__trigger-side {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		flex: 0 0 100% !important;
		grid-column: 1 / -1 !important;
	}

	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-heading,
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-heading > span,
	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-heading .am-collapse-item__trigger-side > span {
		display: block !important;
		height: auto !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}

	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-items .am-collapse-item__trigger-side {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
	}

	.amelia-v2-booking .am-fs__main-heading-mobile .am-fs__pas-app-items .am-collapse-item__trigger-side > span {
		display: block !important;
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
		height: auto !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}

	.wca-amelia-popup-overlay {
		align-items: flex-end;
		padding: 12px;
	}

	.wca-amelia-popup {
		padding: 24px 20px 20px;
		border-radius: 12px;
	}

	.wca-amelia-popup h3 {
		font-size: 18px;
	}

	.wca-amelia-popup-actions {
		flex-direction: column;
	}

	.wca-amelia-popup-add,
	.wca-amelia-popup-finish {
		width: 100%;
	}
}
