/**
 * TheFork Booking Button – Modal styles
 * (Button styles stay inline in the plugin since they're generated dynamically per shortcode instance.)
 */

.tfb-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.tfb-modal-overlay.tfb-open {
	display: flex;
}

.tfb-modal {
	background: rgb(241, 241, 241);
	width: 100%;
	max-width: 480px;
	height: 85vh;
	max-height: 750px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tfb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 18px 35px;
	flex-shrink: 0;
	background-image: url(https://www.restaurant-lerock.fr/wp-content/themes/lerock/img/papier.svg);
	background-repeat: no-repeat;
	background-position: bottom center;
	background-size: 100% 100%;
}

.tfb-modal-title {
	color: #f1f1f1;
	font-size: 1rem;
	font-family: 'Anton', sans-serif;
	text-transform: uppercase;
}

.tfb-modal-close {
	background: #100F0F;
    border: 2px dashed #f1f1f1;
    color: #f1f1f1;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.tfb-modal-close:hover {
	background-color: #f1f1f1;
	border-color: #100F0F;
	color: #100F0F;
}

.tfb-modal-body {
	flex: 1;
	overflow: hidden;
}

.tfb-modal-close svg {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: 100%;
}

.tfb-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

body.tfb-modal-locked {
	overflow: hidden;
}

@media (max-width:600px) {
	.tfb-modal {
		height: 100vh;
		/*max-height: none;*/
	}
}

@media (min-width:601px) {
	.tfb-modal {
		border-radius: 10px;
		height: 90vh;
		max-height: none;
	}

	.tfb-modal-overlay {
	    padding: 20px;
	}
}