/**
 * AtisTV — WhatsApp Reserve modal.
 * Scoped under .atistv-wr-* so it cannot leak into Elementor / Jet / Tutor styles.
 */

.atistv-wr-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 17, 20, 28, 0.62 );
	-webkit-backdrop-filter: blur( 4px );
	backdrop-filter: blur( 4px );
	opacity: 0;
	transition: opacity 0.18s ease;
}

.atistv-wr-overlay[hidden] {
	display: none;
}

.atistv-wr-overlay.is-visible {
	opacity: 1;
}

body.atistv-wr-open {
	overflow: hidden;
}

.atistv-wr-modal {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	padding: 34px 28px 30px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.28 );
	text-align: center;
	font-family: inherit;
	transform: translateY( 12px ) scale( 0.98 );
	transition: transform 0.18s ease;
}

.atistv-wr-overlay.is-visible .atistv-wr-modal {
	transform: translateY( 0 ) scale( 1 );
}

/* --- close (×) ----------------------------------------------------------
 * The theme styles every <button> on the site (pink outline, radius, shadow), which bled
 * into this control. These resets are !important so the control stays neutral no matter what
 * the theme, Elementor or Tutor apply to bare buttons.
 */

.atistv-wr-overlay .atistv-wr-modal button.atistv-wr-close {
	position: absolute;
	top: 14px;
	/* RTL dialog: the × sits on the left. */
	left: 14px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	min-width: 0 !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #9aa1ad !important;
	font-family: inherit;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.atistv-wr-overlay .atistv-wr-modal button.atistv-wr-close:hover,
.atistv-wr-overlay .atistv-wr-modal button.atistv-wr-close:focus {
	background: #f1f3f6 !important;
	color: #4b5563 !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* --- icon --------------------------------------------------------------- */

.atistv-wr-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #e7f8ee;
	color: #25d366;
}

.atistv-wr-overlay.is-plain .atistv-wr-icon {
	background: #f1f3f6;
	color: #9aa1ad;
}

/* --- text --------------------------------------------------------------- */

.atistv-wr-title {
	margin: 0 0 10px;
	color: #12161f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

.atistv-wr-body {
	margin: 0 0 24px;
	color: #5b6472;
	font-size: 15px;
	line-height: 2;
}

/* --- actions ------------------------------------------------------------ */

.atistv-wr-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px;
	border-radius: 12px;
	background: #25d366;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba( 37, 211, 102, 0.32 );
	transition: background 0.15s ease, transform 0.12s ease;
}

.atistv-wr-cta:hover {
	background: #1fbb5a;
	color: #fff !important;
	transform: translateY( -1px );
}

.atistv-wr-cta[hidden] {
	display: none;
}

/* A membership modal has no CTA — keep the card from collapsing to just a heading. */
.atistv-wr-overlay.is-plain .atistv-wr-body {
	margin-bottom: 8px;
}

.atistv-wr-cta:focus-visible,
.atistv-wr-overlay .atistv-wr-modal button.atistv-wr-close:focus-visible {
	outline: 2px solid #1f7ae0 !important;
	outline-offset: 2px;
}

/* --- notice fallback (no-JS path) --------------------------------------- */

.atistv-wr-notice-link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	text-decoration: underline;
}

/* --- small screens ------------------------------------------------------ */

@media ( max-width: 480px ) {
	.atistv-wr-modal {
		padding: 30px 20px 22px;
	}

	.atistv-wr-title {
		font-size: 18px;
	}

	.atistv-wr-body {
		font-size: 14px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.atistv-wr-overlay,
	.atistv-wr-modal,
	.atistv-wr-cta {
		transition: none;
	}
}
