/* Premium Styling for Frontend Category Push Subscription Modal */

/* Fullscreen Overlay with Glassmorphism */
.angel-push-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(45, 52, 54, 0.4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
	animation: angelFadeIn 0.3s ease-out forwards;
}

/* Card container */
.angel-push-popup-card {
	background: #ffffff;
	border-radius: 16px;
	width: 100%;
	max-width: 420px;
	padding: 30px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-sizing: border-box;
	position: relative;
	text-align: center;
	direction: rtl; /* RTL-ready default */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	animation: angelSlideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Logo placement */
.angel-push-popup-logo-wrap {
	margin-bottom: 18px;
}

.angel-push-popup-logo {
	max-height: 55px;
	max-width: 120px;
	object-fit: contain;
}

/* Headline details */
.angel-push-popup-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #2d3436;
	line-height: 1.3;
}

.angel-push-popup-desc {
	font-size: 13.5px;
	color: #636e72;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

/* Categories checklist */
.angel-push-popup-cats {
	background-color: #fafbfc;
	border: 1px solid #f1f2f6;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 22px;
	text-align: right;
	box-sizing: border-box;
}

.angel-push-popup-cats-title {
	font-size: 12px;
	font-weight: 600;
	color: #a4b0be;
	text-transform: uppercase;
	margin-bottom: 10px;
	display: block;
}

.angel-push-popup-cats-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.angel-push-popup-cat-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 4px 0;
}

.angel-push-popup-cat-name {
	font-size: 14px;
	color: #2d3436;
	font-weight: 550;
}

/* Toggle switch checkbox design */
.angel-push-toggle {
	position: relative;
	width: 44px;
	height: 22px;
}

.angel-push-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.angel-push-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #dfe6e9;
	transition: 0.3s;
	border-radius: 22px;
}

.angel-push-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: #ffffff;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.angel-push-toggle input:checked + .angel-push-slider {
	background-color: #6c5ce7;
}

.angel-push-toggle input:checked + .angel-push-slider:before {
	transform: translateX(22px);
}

/* Action Buttons */
.angel-push-popup-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.angel-push-btn {
	width: 100%;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	outline: none;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.angel-push-btn-subscribe {
	background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.angel-push-btn-subscribe:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

.angel-push-btn-decline {
	background-color: #f5f6fa;
	color: #7f8c8d;
}

.angel-push-btn-decline:hover {
	background-color: #dfe6e9;
	color: #2c3e50;
}

.angel-push-btn:active {
	transform: translateY(0);
}

.angel-push-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Credit text styling (small, neutral) */
.angel-push-popup-credit {
	font-size: 10px;
	color: #bdc3c7;
	text-decoration: none;
	display: inline-block;
	margin-top: 5px;
	transition: color 0.2s ease;
}

.angel-push-popup-credit:hover {
	color: #7f8c8d;
}

/* Status response boxes */
.angel-push-popup-status {
	font-size: 13px;
	padding: 8px;
	border-radius: 8px;
	margin-bottom: 14px;
	display: none;
}

.angel-push-popup-status.success {
	background-color: #e3f9e5;
	color: #27ae60;
}

.angel-push-popup-status.error {
	background-color: #ffe8e8;
	color: #d63031;
}

/* Keyframe animations */
@keyframes angelFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes angelSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.angel-push-popup-card {
		padding: 24px;
	}
	.angel-push-popup-title {
		font-size: 18px;
	}
	.angel-push-popup-desc {
		font-size: 12.5px;
	}
}
