/* Allhart Popups — frontend styles. Scoped under #ahp-overlay to avoid theme collisions. */
#ahp-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,.65);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .25s ease;
	padding: 16px;
}
#ahp-overlay.ahp-open { opacity: 1; }
#ahp-overlay .ahp-modal {
	background: var(--ahp-bg, #fff); color: var(--ahp-text, #111);
	max-width: 420px; width: 100%;
	border-radius: var(--ahp-radius, 10px);
	padding: 28px 26px 22px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	transform: translateY(10px); transition: transform .25s ease;
	font-family: var(--ahp-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	position: relative;
}
#ahp-overlay.ahp-open .ahp-modal { transform: translateY(0); }
#ahp-overlay .ahp-close {
	position: absolute; top: 10px; right: 12px;
	background: transparent; border: 0; font-size: 18px; line-height: 1;
	width: 28px; height: 28px; padding: 0; border-radius: 50%;
	cursor: pointer; color: currentColor; opacity: .35;
	transition: opacity .15s, background .15s;
	display: flex; align-items: center; justify-content: center;
}
#ahp-overlay .ahp-close:hover { opacity: .9; background: rgba(0,0,0,.08); }
#ahp-overlay h2 {
	margin: 0 0 12px; font-size: 22px; line-height: 1.25; font-weight: 700;
	color: var(--ahp-text, #111);
	padding-right: 28px; /* keep headline clear of the close button */
}
#ahp-overlay .ahp-offer {
	margin: 0 0 18px; font-size: 14px; color: #555;
}
#ahp-overlay .ahp-offer code {
	background: #f3f3f3; padding: 2px 6px; border-radius: 3px; font-size: 13px;
}
#ahp-overlay .ahp-form { display: flex; flex-direction: column; gap: 10px; }
#ahp-overlay .ahp-input {
	padding: 11px 12px; border: 1px solid #ccc; border-radius: 6px;
	font-size: 15px; width: 100%; box-sizing: border-box;
	background: #fff; color: #111;
}
#ahp-overlay .ahp-input:focus { outline: 2px solid #0b1020; outline-offset: 0; }
#ahp-overlay .ahp-cta {
	background: var(--ahp-cta-bg, #0b1020); color: var(--ahp-cta-text, #fff); border: 0; padding: 12px 16px;
	border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
	transition: transform .1s, opacity .2s;
}
#ahp-overlay .ahp-cta:hover { transform: translateY(-1px); }
#ahp-overlay .ahp-cta:disabled { opacity: .5; cursor: default; transform: none; }
#ahp-overlay .ahp-msg { margin: 6px 0 0; font-size: 13px; min-height: 18px; }
#ahp-overlay .ahp-msg-err { color: #d63638; }
#ahp-overlay .ahp-msg-ok { color: #00a32a; }
#ahp-overlay .ahp-legal { margin: 8px 0 0; font-size: 11px; color: #888; }
