/**
 * Article enquiry actions + modal.
 */

.sg-article-cta { margin-top: 24px; }

.sg-article-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.sg-btn--whatsapp {
	background-color: #25d366;
	color: #fff;
}

.sg-btn--whatsapp:hover {
	background-color: #1da851;
	color: #fff;
}

/* ------------------------------------------------------------------ modal */

.sg-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(9, 11, 14, .72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
}

.sg-modal[hidden] { display: none; }

.sg-modal__panel {
	position: relative;
	background: #fff;
	border-radius: var(--sg-radius);
	width: 100%;
	max-width: 720px;
	padding: 40px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.sg-modal__title {
	font-family: var(--sg-font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sg-ink);
	margin: 0 0 24px;
}

.sg-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sg-mist);
	color: var(--sg-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.sg-modal__close:hover { background: var(--sg-line); color: var(--sg-ink); }

@media (max-width: 640px) {
	.sg-modal__panel { padding: 28px 20px; }
	.sg-article-cta__actions .sg-btn { flex: 1 1 100%; }
}
