/* WebGTR Custom Popup - Theme-Matched Styles (Dark Default + Light Mode Support) */

.webgtr-popup-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
	background: var(--webgtr-linear, linear-gradient(91deg, #FF9C8D 4.64%, #D655A5 52.82%, #6053CB 100%));
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: var(--shadow-btn, 0 10px 30px -5px rgba(214, 85, 165, 0.45)), inset 0 1px 1px rgba(255, 255, 255, 0.3);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.webgtr-popup-trigger-btn:hover {
	background: var(--webgtr-linear-hover, linear-gradient(91deg, #ffaca0 4.64%, #e26bb5 52.82%, #7063dc 100%));
	transform: translateY(-2px);
	box-shadow: 0 15px 35px -5px rgba(214, 85, 165, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.webgtr-popup-trigger-btn:active {
	transform: translateY(0);
}

.webgtr-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.webgtr-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.webgtr-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 14, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .webgtr-popup-backdrop,
body.light-theme .webgtr-popup-backdrop {
	background: rgba(15, 23, 42, 0.55);
}

.webgtr-popup-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	    text-align: center !important;
	overflow-y: auto;
	padding: 34px 30px 30px;
	background: var(--bg-card-solid, #090e1c);
	color: var(--text-accent, #ffffff);
	font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
	border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
	border-radius: 16px;
	box-shadow: var(--shadow-card, 0 20px 45px -15px rgba(0, 0, 0, 0.75), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1));
	transform: translateY(14px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	overflow-x: hidden;
}

.webgtr-popup-dialog::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--webgtr-linear, linear-gradient(91deg, #FF9C8D 4.64%, #D655A5 52.82%, #6053CB 100%));
}

.webgtr-popup-overlay.is-open .webgtr-popup-dialog {
	transform: translateY(0) scale(1);
}

.webgtr-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: var(--text-muted, #8E9DB8);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
}

html[data-theme="light"] .webgtr-popup-close,
body.light-theme .webgtr-popup-close {
	background: rgba(15, 23, 42, 0.04);
}

.webgtr-popup-close:hover {
	color: var(--primary-coral, #FF9C8D);
	border-color: var(--primary-coral, #FF9C8D);
	background: rgba(255, 156, 141, 0.1);
}

.webgtr-popup-title {
	margin: 0 36px 14px 0;
	font-family: var(--font-display, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--text-accent, #ffffff);
}

.webgtr-popup-body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-second, #C7C7C7);
}

.webgtr-popup-body p:first-child {
	margin-top: 0;
}

.webgtr-popup-body p:last-child {
	margin-bottom: 0;
}

.webgtr-popup-body a {
	color: var(--primary-coral, #FF9C8D);
	text-decoration: underline;
}

.webgtr-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.webgtr-popup-btn {
	flex: 1 1 160px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 20px;
	font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.webgtr-popup-btn--primary {
	color: #ffffff;
	background: var(--webgtr-linear, linear-gradient(91deg, #FF9C8D 4.64%, #D655A5 52.82%, #6053CB 100%));
	border: none;
	box-shadow: var(--shadow-btn, 0 10px 30px -5px rgba(214, 85, 165, 0.45)), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.webgtr-popup-btn--primary:hover {
	color: #ffffff;
	background: var(--webgtr-linear-hover, linear-gradient(91deg, #ffaca0 4.64%, #e26bb5 52.82%, #7063dc 100%));
	transform: translateY(-2px);
	box-shadow: 0 15px 35px -5px rgba(214, 85, 165, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.webgtr-popup-btn--secondary {
	color: var(--text-accent, #ffffff);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .webgtr-popup-btn--secondary,
body.light-theme .webgtr-popup-btn--secondary {
	background: rgba(15, 23, 42, 0.04);
	color: var(--text-accent, #0F172A);
	border-color: rgba(15, 23, 42, 0.18);
}

.webgtr-popup-btn--secondary:hover {
	color: var(--primary-coral, #FF9C8D);
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--primary-coral, #FF9C8D);
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .webgtr-popup-btn--secondary:hover,
body.light-theme .webgtr-popup-btn--secondary:hover {
	background: rgba(15, 23, 42, 0.08);
}

.webgtr-popup-btn-slot--shortcode {
	flex: 1 1 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.webgtr-popup-scroll-lock {
	overflow: hidden;
}

@media (max-width: 480px) {
	.webgtr-popup-dialog {
		padding: 28px 20px 24px;
	}

	.webgtr-popup-actions {
		flex-direction: column;
	}
}
