/* Carrello PRENOTAZIONI sul parent (sopra l'iframe) */
div.divFooter {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 100000;
	background: #003572;
	border-radius: 28px 28px 0 0;
	color: #fff;
	margin: 0;
	padding: 0 0 max(14px, env(safe-area-inset-bottom, 0px)) 0;
	line-height: 1.25;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
	display: none;
	visibility: hidden;
	font-family: "Montserrat", Arial, sans-serif;
	box-sizing: border-box;
}

div.divFooter * {
	box-sizing: border-box;
}

body.eb-cart-open {
	padding-bottom: 88px;
}

/* WhatsApp: sopra la barra ma SOTTO al carrello (non copre la linguetta) */
body.eb-cart-open .whatsapp-float {
	bottom: 6.25rem !important;
	z-index: 99990 !important;
}

/* Header + linguetta */
.divOpenCloseContainer {
	display: block;
	position: relative;
	text-align: center;
	width: 100%;
	margin: 0;
	padding: 0 16px 10px;
	border: 0;
	float: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

/* Linguetta sopra PRENOTAZIONI */
.bw-cart-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 26px;
	margin: -14px auto 8px;
	padding: 0;
	border: 0;
	border-radius: 14px 14px 0 0;
	background: #0054aa;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.bw-cart-tab-chevron {
	display: block;
	width: 12px;
	height: 12px;
	border-left: 2.5px solid #fff;
	border-top: 2.5px solid #fff;
	transform: rotate(45deg);
	margin-top: 6px;
	transition: transform 0.2s ease, margin 0.2s ease;
}

div.divFooter.is-expanded .bw-cart-tab-chevron {
	transform: rotate(225deg);
	margin-top: -2px;
}

.divOpenCloseHeader {
	display: block;
	float: none;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 2px 8px 0;
	border: 0;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	color: #fff;
}

/* Vecchi pulsanti freccia / X: nascosti */
.divOpenClose,
#divOpen,
#divClose {
	display: none !important;
}

/* Pannello dettaglio */
.bw-cart-panel {
	display: none;
	width: 100%;
	max-height: min(48vh, 420px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 12px 8px;
	overscroll-behavior: contain;
}

div.divFooter.is-expanded .bw-cart-panel {
	display: block;
}

#tableFooter {
	display: table;
	visibility: visible;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	background: transparent;
	color: #fff;
	text-align: center;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

#tableFooter td {
	padding: 4px 6px;
	vertical-align: middle;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-size: 14px;
	line-height: 1.35;
}

#tableFooter img {
	width: 36px !important;
	height: auto !important;
	max-width: 100%;
}

div.divFooter .orariHeader {
	color: #7ec8ff;
}

/* —— Mobile —— */
@media (max-width: 640px) {
	div.divFooter {
		border-radius: 20px 20px 0 0;
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	}

	body.eb-cart-open {
		padding-bottom: 80px;
	}

	body.eb-cart-open .whatsapp-float {
		bottom: 5.75rem !important;
		right: 0.85rem !important;
		width: 52px !important;
		height: 52px !important;
		font-size: 1.55rem !important;
	}

	.bw-cart-tab {
		width: 64px;
		height: 24px;
		margin: -12px auto 6px;
		border-radius: 12px 12px 0 0;
	}

	.divOpenCloseContainer {
		padding: 0 12px 8px;
	}

	.divOpenCloseHeader {
		font-size: 15px;
		letter-spacing: 0.04em;
	}

	.bw-cart-panel {
		max-height: min(42vh, 320px);
		padding: 0 8px 6px;
	}

	#tableFooter {
		max-width: 100%;
	}

	#tableFooter td {
		font-size: 12px;
		padding: 3px 2px;
	}

	#tableFooter img {
		width: 26px !important;
	}

	#tableFooter td[width="48%"],
	#tableFooter td[width="4%"] {
		width: auto !important;
	}
}

@media (max-width: 380px) {
	#tableFooter td {
		font-size: 11px;
	}

	.divOpenCloseHeader {
		font-size: 14px;
	}
}
