html.sgl-modal-open {
	overflow: hidden;
}

html.sgl-suppress-theme #login-form {
	display: none !important;
}

.sgl-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.sgl-modal *,
.sgl-modal *::before,
.sgl-modal *::after {
	box-sizing: border-box;
}

.sgl-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.sgl-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #ffffff;
	color: #1f2937;
	border-radius: 14px;
	padding: 28px 24px 22px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: sgl-pop 0.18s ease-out;
}

@keyframes sgl-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.sgl-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}

.sgl-modal-close:hover,
.sgl-modal-close:focus {
	background: #f3f4f6;
	color: #111827;
	outline: none;
}

.sgl-modal-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0 auto 14px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.sgl-brand-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 180px;
	max-height: 64px;
	object-fit: contain;
}

.sgl-modal-brand .sgl-google-icon {
	width: 32px;
	height: 32px;
}

.sgl-google-icon {
	display: block;
	flex: 0 0 auto;
}

.sgl-modal-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}

.sgl-modal-message {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
}

.sgl-modal-error {
	margin: 0 0 16px;
	padding: 10px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #b91c1c;
	text-align: left;
}

.sgl-google-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #1f2937;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sgl-google-btn:hover,
.sgl-google-btn:focus {
	background: #f9fafb;
	border-color: #9ca3af;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	color: #111827;
	text-decoration: none;
	outline: none;
}

.sgl-google-btn-inline {
	width: auto;
}

.sgl-modal-note {
	margin: 14px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: #9ca3af;
}

.sgl-gate-button {
	display: inline-block;
}

@media (max-width: 480px) {
	.sgl-modal-dialog {
		padding: 24px 18px 18px;
		border-radius: 12px;
	}

	.sgl-modal-title {
		font-size: 18px;
	}
}

#login-form.popup-login-wrapper {
	display: none !important;
}

html.sgl-modal-open #cpt-custom-popup-tracker-v2-list .popup-modal {
	display: none !important;
}
