/* Frontend CSS */

.wachttijden {
	width: 100%;
	max-width: 840px;
	display: flex;
	/* //margin: 20px auto; */
	flex-direction: column;
	align-items: center;
}

.wachttijden__header {
	width: 100px;
	height: 100px;
	background: white;
	box-shadow: 0px 3px 20px #00000029;
	border-radius: 50%;
	padding: 10px 20px;
	margin-bottom: 20px;
}

.wachttijden__content {
	margin-top: 35px;
	position: relative;
	width: 100%;
	box-shadow: 0px 3px 20px #00000029;
	border-radius: 15px 15px 20px 20px;
}

.wachttijden__content:before {
	content: "";
	background-image: url(../img/triangle-mobile.svg);
	background-size: 100%;
	background-repeat: no-repeat;
	width: 20px;
	height: 35px;
	z-index: 2;
	position: absolute;
	top: -35px;
	left: 50%;
	margin-left: -10px;
}

.wachttijden__text {
	background: white;
	padding: 18px 38px 18px 18px;
	border-radius: 15px 15px 20px 20px;
}

.wachttijden__text p:first-of-type {
	font: normal normal 600 16px/20px;
	font-family: inherit;
	letter-spacing: 0.16px;
	color: #030303;
	margin-top: 0;
}

.wachttijden__text p:last-of-type {
	font: italic normal normal 14px/20px;
	font-family: inherit;
	letter-spacing: 0.14px;
	color: #030303;
	margin-bottom: 0;
}

.wachttijden__text p .red {
	font: normal normal bold 18px/28px;
	font-family: inherit;
	letter-spacing: 0.18px;
	color: #ff2327;
}

.wachttijden__info {
	display: none;
	background: var(--clr-primary-50);
	width: 100%;
	padding: 18px 38px 18px 18px;
	z-index: 2;
	border-radius: 15px 15px 0 0;
}

.wachttijden__info p {
	margin: 0;
	font: normal normal normal 14px/18px;
	font-family: inherit;
	color: #030303;
}

.wachttijden__info .xmark__icon,
.wachttijden__toggle {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.toggled .wachttijden__toggle {
	display: none;
}

.toggled .wachttijden__text {
	border-radius: 0 0 20px 20px;
}

@media only screen and (min-width: 1024px) {
	.wachttijden {
		flex-direction: row;
		align-items: flex-start;
	}

	.wachttijden__header {
		width: 155px;
		height: 155px;
		min-width: 155px;
		padding: 10px 25px;
		margin-right: 16px;
		margin-bottom: 0;
	}

	.wachttijden__content {
		margin-top: 0;
		min-height: 155px;
		margin-left: 36px;
	}

	.wachttijden__content:before {
		background-image: url(../img/triangle.svg);
		height: 17px;
		width: 36px;
		top: 45px;
		left: -36px;
		margin-left: 0;
	}

	.wachttijden__text,
	.wachttijden__info {
		padding: 22px 59px 22px 40px;
	}

	.wachttijden__text p:first-of-type,
	.wachttijden__text p .red {
		font: normal normal bold 22px/28px;
		font-family: inherit;
	}

	.wachttijden__text p:last-of-type {
		font: italic normal normal 18px/28px;
		font-family: inherit;
	}

	.wachttijden__info p {
		font: normal normal normal 18px/28px;
		font-family: inherit;
	}

	.wachttijden__info .xmark__icon,
	.wachttijden__toggle {
		top: 24px;
		right: 24px;
		width: 30px;
		height: 30px;
	}

	.wachttijden__toggle svg {
		width: 100%;
		height: auto;
	}
}

.wachttijden-skeleton {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	min-width: 351px;
}

.avatar-skeleton {
	align-self: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #e0e0e0;
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
}
.avatar-skeleton::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to right,
		transparent 0%,
		rgba(255, 255, 255, 0.5) 50%,
		transparent 100%
	);
	animation: shimmer 1.5s infinite;
}

.bubble-skeleton {
	flex-grow: 1;
	background-color: #f3f3f3;
	border-radius: 16px;
	min-height: 155px;
	padding: 18px 38px 18px 18px;
	position: relative;
	overflow: hidden;
	width: 100%;
	margin-top: 35px;
}

.skeleton-line {
	height: 14px;
	background-color: #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
	margin: 1em 0;
}

.skeleton-line.bold {
	height: 16px;
	width: 60%;
	background-color: #ccc;
}
.skeleton-line::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to right,
		transparent 0%,
		rgba(255, 255, 255, 0.6) 50%,
		transparent 100%
	);
	animation: shimmer 1.5s infinite;
}

.info-dot {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 14px;
	height: 14px;
	background-color: #ccc;
	border-radius: 50%;
}

@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

@media only screen and (min-width: 1024px) {
	.wachttijden-skeleton {
		flex-direction: row;
		margin: 0;
	}

	.bubble-skeleton {
		width: auto;
		align-self: center;
		height: 192px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.avatar-skeleton {
		width: 155px;
		height: 155px;
		margin-bottom: 0;
	}
}
