.ps-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 27, 70, 0.55);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: ps-fade-in 0.25s ease;
}

.ps-popup-overlay.ps-popup-pos-bottom-right,
.ps-popup-overlay.ps-popup-pos-bottom-left {
	background: transparent;
	align-items: flex-end;
	pointer-events: none;
}

.ps-popup-pos-bottom-right { justify-content: flex-end; }
.ps-popup-pos-bottom-left  { justify-content: flex-start; }

.ps-popup-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	width: 100%;
	padding: 32px 28px 24px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	pointer-events: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ps-popup-pos-bottom-right .ps-popup-modal,
.ps-popup-pos-bottom-left .ps-popup-modal {
	max-width: 340px;
	margin: 0 16px 16px;
	padding: 20px 20px 16px;
}

.ps-popup-brand {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ps-primary, #0A6CFF);
	margin-bottom: 8px;
}

.ps-popup-heading {
	font-size: 22px;
	font-weight: 700;
	color: var(--ps-secondary, #071B46);
	margin: 0 0 8px;
	line-height: 1.25;
}

.ps-popup-body {
	font-size: 14px;
	color: #444;
	margin: 0 0 18px;
	line-height: 1.5;
}

.ps-popup-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ps-popup-input {
	padding: 12px 14px;
	border: 1px solid #d7d7db;
	border-radius: 8px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}

.ps-popup-input:focus {
	outline: none;
	border-color: var(--ps-primary, #0A6CFF);
	box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.15);
}

.ps-popup-submit {
	background: var(--ps-primary, #0A6CFF);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ps-popup-submit:hover { opacity: 0.9; }
.ps-popup-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ps-popup-error {
	color: #c0392b;
	font-size: 13px;
	margin: -2px 0 0;
}

.ps-popup-privacy {
	font-size: 11px;
	color: #8a8a8f;
	margin: 14px 0 0;
	line-height: 1.4;
}

.ps-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px;
}

.ps-popup-close:hover { color: #333; }

.ps-popup-success-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #e5f7ec;
	color: #1e9e5a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin: 0 auto 14px;
}

.ps-popup-success-message {
	text-align: center;
	font-size: 15px;
	color: var(--ps-secondary, #071B46);
	font-weight: 600;
	margin: 0;
}

@keyframes ps-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 480px) {
	.ps-popup-overlay:not(.ps-popup-pos-bottom-right):not(.ps-popup-pos-bottom-left) {
		align-items: flex-end;
	}
	.ps-popup-overlay:not(.ps-popup-pos-bottom-right):not(.ps-popup-pos-bottom-left) .ps-popup-modal {
		max-width: 100%;
		border-radius: 16px 16px 0 0;
		padding-bottom: 28px;
	}
}
