/* Exalta Fulfillment Mode modal */
.exalta-fm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.exalta-fm-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.exalta-fm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.exalta-fm-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 32rem;
	background: #fff;
	color: #1a1a1a;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	padding: 1.5rem 1.5rem 1.25rem;
	max-height: 90vh;
	overflow: auto;
	outline: none;
}

.exalta-fm-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.exalta-fm-modal__intro {
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.exalta-fm-modal__intro > *:first-child {
	margin-top: 0;
}

.exalta-fm-modal__intro > *:last-child {
	margin-bottom: 0;
}

.exalta-fm-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.exalta-fm-modal__btn {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	font-weight: 600;
	text-align: center;
	border-radius: 4px;
	border: 2px solid #333;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exalta-fm-modal__btn--primary {
	background: #222;
	color: #fff;
	border-color: #222;
}

.exalta-fm-modal__btn--primary:hover,
.exalta-fm-modal__btn--primary:focus {
	background: #000;
	border-color: #000;
}

.exalta-fm-modal__btn--secondary {
	background: #fff;
	color: #222;
}

.exalta-fm-modal__btn--secondary:hover,
.exalta-fm-modal__btn--secondary:focus {
	background: #f5f5f5;
}

.exalta-fm-modal__btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.exalta-fm-modal__error {
	margin: 1rem 0 0;
	color: #b00020;
	font-size: 0.9rem;
}

.exalta-fm-debug-wrap {
	padding: 0.5rem 0 1rem;
	text-align: center;
}

.exalta-fm-debug-open.button {
	font-size: 12px;
	padding: 4px 10px;
	height: auto;
	line-height: 1.4;
	opacity: 0.85;
}

.exalta-fm-modal[data-mandatory="1"] [data-exalta-fm-close] {
	pointer-events: none;
}
