/**
 * Affichage frontend — message d'indisponibilité Annexe Order Hours
 *
 * Le texte dynamique (horaires) est rendu en HTML par AOH_Product_Check.
 */

.aoh-unavailable-message {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: calc(100% - 2rem);
	max-width: 680px;
	margin: 3rem auto;
	padding: 2.75rem 1.75rem 2.25rem;
	text-align: center;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z' stroke='%23d32f2f' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M12 9v5.5' stroke='%23d32f2f' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.2' r='1.1' fill='%23d32f2f'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center 1.75rem;
	background-size: 2.75rem 2.75rem;
	border: 2px solid #d32f2f;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(211, 47, 47, 0.08);
	color: #d32f2f;
}

.aoh-unavailable-message__title,
.aoh-unavailable-message__text {
	margin: 0;
	padding: 0 0.25rem;
	color: #d32f2f;
}

.aoh-unavailable-message__title {
	margin-top: 3.25rem;
	margin-bottom: 0.85rem;
	font-size: clamp(1.15rem, 3.2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.35;
}

.aoh-unavailable-message__text {
	max-width: 32rem;
	font-size: clamp(1rem, 2.6vw, 1.15rem);
	font-weight: 400;
	line-height: 1.55;
}

.aoh-unavailable-message--single,
.summary .aoh-unavailable-message {
	margin-top: 3rem;
	margin-bottom: 3.25rem;
	padding: 3rem 2rem 2.5rem;
	background-position: center 2rem;
	background-size: 3rem 3rem;
}

.aoh-unavailable-message--single .aoh-unavailable-message__title,
.summary .aoh-unavailable-message .aoh-unavailable-message__title {
	margin-top: 3.5rem;
}

.aoh-unavailable-message--loop {
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0 0.75rem;
	padding: 2.35rem 1rem 1.75rem;
	background-position: center 1.35rem;
	background-size: 2.25rem 2.25rem;
}

.aoh-unavailable-message--loop .aoh-unavailable-message__title {
	margin-top: 2.6rem;
	font-size: clamp(0.95rem, 3vw, 1.15rem);
}

.aoh-unavailable-message--loop .aoh-unavailable-message__text {
	font-size: clamp(0.9rem, 2.6vw, 1rem);
}

.woocommerce ul.products li.product .aoh-unavailable-message--loop {
	display: flex;
}

/* Notices WooCommerce (bandeau) */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
	box-sizing: border-box !important;
	display: block !important;
	width: calc(100% - 2rem) !important;
	max-width: 680px !important;
	margin: 3rem auto !important;
	padding: 2.75rem 1.75rem 2.25rem !important;
	list-style: none !important;
	text-align: center !important;
	background: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z' stroke='%23d32f2f' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M12 9v5.5' stroke='%23d32f2f' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.2' r='1.1' fill='%23d32f2f'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center 1.75rem !important;
	background-size: 2.75rem 2.75rem !important;
	border: 2px solid #d32f2f !important;
	border-top: 2px solid #d32f2f !important;
	border-radius: 8px !important;
	color: #d32f2f !important;
}

.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-error li::before,
.woocommerce .woocommerce-error li::before,
.woocommerce-page .woocommerce-error li::before {
	display: none !important;
	content: none !important;
}

.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce .woocommerce-error li,
.woocommerce-page .woocommerce-error li {
	margin: 3.25rem 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #d32f2f !important;
	font-size: clamp(1.05rem, 2.8vw, 1.25rem) !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	text-align: center !important;
}

@media (max-width: 600px) {
	.aoh-unavailable-message,
	.aoh-unavailable-message--single,
	.woocommerce-notices-wrapper .woocommerce-error,
	.woocommerce .woocommerce-error,
	.woocommerce-page .woocommerce-error {
		width: calc(100% - 1.5rem) !important;
		margin: 2rem auto !important;
		padding: 2.35rem 1.15rem 1.85rem !important;
		background-position: center 1.4rem !important;
		background-size: 2.4rem 2.4rem !important;
	}

	.aoh-unavailable-message__title {
		margin-top: 3rem;
		font-size: 1.1rem;
	}

	.aoh-unavailable-message__text {
		font-size: 0.98rem;
	}
}
