/*
 * Home page "פרטים על קידום העסק" dialog (template-home-acf.php, assets/js/home.js).
 * The panel is the home card (.home-join__card: line, 25px radius, shadow, white) and the
 * link is the existing .home-button; only the dialog's own layout lives here. The dialog
 * fits the viewport and scrolls inside its panel; the page behind does not scroll.
 */
.home-promo-dialog {
	width: min(640px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--home-ink);
	overflow: visible;
	direction: rtl;
}

.home-promo-dialog::backdrop {
	background: rgba(18, 40, 27, 0.55);
}

.home-promo-dialog__panel {
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 32px;
	border: 1px solid var(--home-line);
	border-radius: 25px;
	background: #fff;
	box-shadow: var(--home-shadow);
	text-align: right;
}

.home-promo-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.home-promo-dialog__head h2 {
	margin: 0;
	font-size: clamp(22px, 5vw, 28px);
	line-height: 1.3;
}

/* Scoped to beat Elementor's global `.elementor-kit-NN button` rule. */
.home-promo-dialog button.home-promo-dialog__close {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--home-green-soft);
	color: var(--home-green-dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.home-promo-dialog button.home-promo-dialog__close:focus-visible {
	outline: 3px solid #0b5fcc;
	outline-offset: 2px;
}

.home-promo-dialog__content {
	color: var(--home-muted);
	font-size: 17px;
}

.home-promo-dialog__content > :first-child {
	margin-top: 0;
}

html:has(.home-promo-dialog[open]) {
	overflow: hidden;
}

@media (max-width: 600px) {
	.home-promo-dialog__panel {
		padding: 22px;
		border-radius: 20px;
	}
}
