/* Kadence styles .wp-element-button with text-transform: none; keep shortcode label casing. */
button.agape-request-quote.wp-element-button {
	text-transform: none;
	white-space: nowrap;
}

body.agape-quote-modal-open {
	overflow: hidden;
}

.agape-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.agape-quote-modal[hidden] {
	display: none !important;
}

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

.agape-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 36rem;
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 1.5rem 1.5rem 2rem;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.agape-quote-modal__title {
	margin: 0 2rem 1rem 0;
	font-size: 1.5rem;
	line-height: 1.3;
}

.agape-quote-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.agape-quote-modal__close:hover,
.agape-quote-modal__close:focus {
	opacity: 0.75;
}