/**
 * COS Site Selector — styles de la modale de sélection de site.
 * La police est volontairement héritée du thème (pas de font-family imposée).
 */

.cos-site-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cos-site-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.cos-site-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 14px;
	padding: 36px 32px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
	font-family: inherit;
	box-sizing: border-box;
}

.cos-site-modal__title {
	margin: 0 0 24px;
	font-size: 1.3em;
	font-weight: 700;
	text-align: center;
	color: #222222;
	font-family: inherit;
}

.cos-site-modal__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cos-site-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	font-family: inherit;
	font-size: 1em;
	font-weight: 500;
	color: #222222;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.cos-site-btn:hover,
.cos-site-btn:focus-visible {
	background-color: #e6f1fb;
	border-color: #b9d7f2;
}

.cos-site-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.cos-site-btn--distanciel {
	background: #fbeef1;
	border-color: #993556;
	color: #993556;
}

.cos-site-btn--distanciel:hover,
.cos-site-btn--distanciel:focus-visible {
	background-color: #f6dfe4;
	border-color: #7a2a44;
}

.cos-site-btn.is-loading .cos-site-btn__label::after {
	content: '\2026'; /* … */
}

.cos-site-modal__error {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fdecea;
	color: #a33;
	font-size: 0.9em;
	text-align: center;
}

.cos-site-modal__footer {
	margin: 20px 0 0;
	font-size: 0.85em;
	color: #777777;
	text-align: center;
}

.cos-change-site-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: normal !important;
}

.cos-change-site-link__icon {
	flex: 0 0 auto;
}
