/* Overlay */
.ah-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 0;
}

/* Modal */
.ah-popup-modal {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 560px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
}

/* Header */
.ah-popup-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 44px;
	border-radius: 4px 4px 0 0;
	flex-shrink: 0;
}

.ah-popup-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
}

.ah-popup-close {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0;
	color: inherit;
	opacity: 0.7;
	transition: opacity 0.15s;
	flex-shrink: 0;
}

.ah-popup-close:hover {
	opacity: 1;
}

/* Body */
.ah-popup-body {
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	flex: 1;
	text-align: center;
}

.ah-popup-body p {
	padding: 1.5rem;
}

.ah-popup-body img {
	display: block;
	width: 100%;
	max-width: 100%;
}

.ah-popup-body figure {
	margin: 0;
}

/* Footer */
.ah-popup-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	flex-shrink: 0;
}

/* Buttons */
.ah-popup-btn {
	margin: 0;
    padding: 1rem 1.5rem;
    font-family: usual, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 0;
    border: none;
}

.ah-popup-btn:hover {
	text-decoration: none;
}


/* Responsive */
@media (max-width: 480px) {
	.ah-popup-footer {
		flex-direction: column;
	}

	.ah-popup-btn {
		width: 100%;
		text-align: center;
	}
}
