/* Popup "Richiedi disponibilità" */

.ao-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 16px;
}

.ao-modal-overlay.is-open {
	display: flex;
}

.ao-modal {
	background: #faf8f4;
	border: 1px solid #e4e0d8;
	border-radius: 14px;
	max-width: 620px;
	width: 100%;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	padding: 40px;
	position: relative;
	font-family: inherit;
	color: #141414;
	box-sizing: border-box;
	margin: auto;
}

.ao-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border: 1px solid #e4e0d8;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ao-modal h2 {
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 8px;
}

.ao-modal__subtitle {
	color: #6b6b6b;
	margin: 0 0 24px;
}

.ao-modal__product {
	display: flex;
	gap: 16px;
	align-items: center;
	border: 1px solid #e4e0d8;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
	background: #fff;
}

.ao-modal__product img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	flex: none;
}

.ao-modal__product-label {
	font-size: 12px;
	color: #8a8a8a;
	margin: 0 0 2px;
}

.ao-modal__product-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
}

.ao-modal__product-meta {
	font-size: 13px;
	color: #8a8a8a;
	margin: 0;
}

.ao-modal__row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.ao-modal__field {
	flex: 1 1 0;
	min-width: 0;
}

.ao-modal__field label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
	font-size: 14px;
}

.ao-modal__field input,
.ao-modal__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d9d4c8;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-family: inherit;
}

.ao-modal__field textarea {
	min-height: 90px;
	resize: vertical;
}

.ao-modal__info {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: #6b6b6b;
	margin: 8px 0 16px;
}

.ao-modal__privacy {
	font-size: 12px;
	color: #8a8a8a;
	margin-bottom: 20px;
}

.ao-modal__privacy a {
	color: inherit;
	text-decoration: underline;
}

.ao-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #141414;
	border-radius: 999px;
	background: #141414;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 14px 28px;
	cursor: pointer;
	font-size: 14px;
	text-transform: uppercase;
}

.ao-modal__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ao-modal__message {
	margin-top: 16px;
	font-size: 14px;
	padding: 12px 14px;
	border-radius: 8px;
	display: none;
}

.ao-modal__message.is-success {
	display: block;
	background: #eaf6ec;
	color: #1e5b2a;
}

.ao-modal__message.is-error {
	display: block;
	background: #fbe9e7;
	color: #8a2a1f;
}

body.ao-modal-open {
	overflow: hidden;
}
