/* Avis vacances — popups + encadré checkout */

.mc-vacation-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000100;
	background: rgba(20, 28, 18, 0.55);
}

.mc-vacation-modal {
	position: fixed;
	z-index: 1000101;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, calc(100vw - 28px));
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px 24px 24px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 4px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
	font-family: inherit;
}

.mc-vacation-modal[hidden],
.mc-vacation-overlay[hidden] {
	display: none !important;
}

.mc-vacation-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #227403;
	padding: 4px 8px;
}

.mc-vacation-modal__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #227403;
	font-weight: 700;
}

.mc-vacation-modal__title {
	margin: 0 0 12px;
	font-size: 1.35rem;
	line-height: 1.25;
	color: #1a1a1a;
	font-weight: 700;
}

.mc-vacation-modal__body {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
}

.mc-vacation-modal__highlight {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #fff4e8;
	border-left: 4px solid #fa8400;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: #333;
}

.mc-vacation-accept {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #f4faf1;
	border: 1px solid #c8e0b8;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
}

.mc-vacation-accept input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: #227403;
}

.mc-vacation-accept-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #fff0f0;
	border-left: 4px solid #c0392b;
	color: #8b1e14;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
}

.mc-vacation-modal__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	background: #8aa882;
}

.mc-vacation-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mc-vacation-modal__btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: #227403;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	padding: 12px 18px;
	border-radius: 3px;
	width: 100%;
	text-align: center;
}

.mc-vacation-modal__btn:hover,
.mc-vacation-modal__btn:focus {
	background: #1b5c02;
	color: #fff;
}

.mc-vacation-modal__btn--ghost {
	background: #f3f3f3;
	color: #333;
	width: auto;
	flex: 1 1 120px;
}

.mc-vacation-modal__btn--ghost:hover,
.mc-vacation-modal__btn--ghost:focus {
	background: #e8e8e8;
	color: #111;
}

.mc-vacation-modal--checkout .mc-vacation-modal__btn:not(.mc-vacation-modal__btn--ghost) {
	flex: 2 1 200px;
	width: auto;
}

/* Encadré checkout : carte moderne, hors flux form-row WooCommerce */
.woocommerce-checkout .checkout-top .mc-vacation-checkout-banner {
	flex: 1 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
	order: -1;
	box-sizing: border-box !important;
	margin: 0 15px 24px !important;
	padding: 0 !important;
}

.woocommerce-checkout .checkout-top:has(.mc-vacation-checkout-banner) .content-right-checkout {
	flex: 1 0 100%;
	max-width: 100%;
}

.mc-vacation-checkout-banner {
	background: #fff8f1;
	border: 0;
	border-radius: 16px;
	box-shadow: inset 4px 0 0 #fa8400, 0 8px 24px rgba(250, 132, 0, 0.12);
	color: #1a1a1a;
	overflow: hidden;
}

.mc-vacation-checkout-banner__inner {
	padding: 28px 28px 28px 32px;
	box-sizing: border-box;
}

.mc-vacation-checkout-banner__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fa8400;
}

.mc-vacation-checkout-banner__title {
	display: block;
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 800;
	color: #1a1a1a;
}

.mc-vacation-checkout-banner__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 500;
	color: #333;
}

.mc-vacation-checkout-banner__accept {
	display: flex !important;
	align-items: flex-start;
	gap: 14px;
	float: none !important;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 16px 18px 16px 16px !important;
	background: #fff;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(250, 132, 0, 0.22);
	box-sizing: border-box;
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
	color: #1a1a1a;
}

.mc-vacation-checkout-banner__accept input {
	appearance: auto;
	float: none !important;
	margin: 2px 0 0 !important;
	flex: 0 0 20px;
	width: 20px !important;
	height: 20px !important;
	accent-color: #227403;
}

.mc-vacation-checkout-banner__accept span {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	padding-right: 4px;
}

.mc-vacation-checkout-banner__accept .required {
	color: #c0392b;
	text-decoration: none;
	border: 0;
}

@media (max-width: 480px) {
	.mc-vacation-modal {
		padding: 24px 18px 18px;
	}

	.mc-vacation-modal__title {
		font-size: 1.2rem;
	}

	.mc-vacation-modal--checkout .mc-vacation-modal__btn {
		width: 100%;
		flex: 1 1 100%;
	}
}
