/* Rich Academy Snippe Popup - Mobile-first Redesigned Modal */

html.ra-snippe-locked,
body.ra-snippe-locked {
	overflow: hidden !important;
	touch-action: none;
}

.ra-snippe-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ra-snippe-backdrop.is-open {
	display: flex;
	animation: raSnippeFadeIn 0.18s ease-out;
}

@keyframes raSnippeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ra-snippe-dialog {
	width: 100%;
	max-width: 420px;
	max-height: 94vh;
	overflow-y: auto;
	overflow-x: hidden;
	background: #ebf6ff;
	border-radius: 22px;
	box-shadow: 0 24px 60px rgba(10, 18, 48, 0.35);
	box-sizing: border-box;
	animation: raSnippeSlideUp 0.22s ease-out;
}

@keyframes raSnippeSlideUp {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ra-snippe-header {
	position: relative;
	background: linear-gradient(180deg, #1b1854 0%, #131144 100%);
	color: #ffffff;
	padding: 34px 24px 26px;
	text-align: center;
}

.ra-snippe-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 19px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
	padding: 0;
}

.ra-snippe-close:hover,
.ra-snippe-close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.ra-snippe-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.ra-snippe-logo {
	max-height: 34px;
	width: auto;
	object-fit: contain;
}

.ra-snippe-site-name {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #ffffff;
}

.ra-snippe-product-title {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.94);
	line-height: 1.4;
	margin-top: 16px;
}

.ra-snippe-coupon-badge {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(22, 163, 74, 0.22);
	border: 1px solid rgba(74, 222, 128, 0.55);
	color: #bbf7d0;
	font-size: 12px;
	font-weight: 700;
}

.ra-snippe-body {
	padding: 24px 24px 22px;
	background: linear-gradient(180deg, #e7f4ff 0%, #f0f8ff 100%);
	color: #1e293b;
}

.ra-snippe-field {
	margin-bottom: 16px;
}

.ra-snippe-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 7px;
}

.ra-snippe-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	font-size: 14px;
	color: #111827;
	background: #ffffff;
	border: 1.5px solid transparent;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ra-snippe-field input::placeholder {
	color: #6b7280;
}

.ra-snippe-field input:focus {
	border-color: #f7b519;
	box-shadow: 0 0 0 3px rgba(247, 181, 25, 0.18);
}

.ra-snippe-networks-wrap {
	margin: 16px 0 20px;
}

.ra-snippe-networks-label {
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 9px;
}

.ra-snippe-networks-label strong {
	color: #111827;
	font-weight: 700;
}

.ra-snippe-networks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ra-snippe-net {
	font-size: 12.5px;
	font-weight: 600;
	color: #5b6978;
	background: #d4ecff;
	border: 1.5px solid transparent;
	border-radius: 999px;
	padding: 6px 13px;
	transition: all 0.15s ease;
	user-select: none;
}

.ra-snippe-net.is-active {
	background: #ffffff;
	border-color: #f7b519;
	color: #1f2937;
}

.ra-snippe-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 500;
	padding: 10px 12px;
	border-radius: 10px;
	margin-bottom: 14px;
}

.ra-snippe-btn-primary {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
	background: #febc11;
	color: #15144a;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ra-snippe-btn-primary:hover {
	background: #f3b007;
}

.ra-snippe-btn-primary:active {
	transform: scale(0.99);
}

.ra-snippe-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ra-snippe-btn-secondary {
	width: 100%;
	padding: 12px 18px;
	border: 1.5px solid #15144a;
	border-radius: 999px;
	background: #ffffff;
	color: #15144a;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ra-snippe-btn-secondary:hover {
	background: #f1f5f9;
}

.ra-snippe-step-status {
	text-align: center;
	padding: 20px 8px 12px;
}

.ra-snippe-spinner {
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
	border: 4px solid #cfe3f5;
	border-top-color: #15144a;
	border-radius: 50%;
	animation: raSnippeSpin 0.8s linear infinite;
}

@keyframes raSnippeSpin {
	to { transform: rotate(360deg); }
}

.ra-snippe-check {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #16a34a;
	color: #ffffff;
	font-size: 30px;
	font-weight: 800;
	line-height: 54px;
	text-align: center;
}

.ra-snippe-fail-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #dc2626;
	color: #ffffff;
	font-size: 28px;
	font-weight: 800;
	line-height: 52px;
	text-align: center;
}

.ra-snippe-status-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 6px;
	line-height: 1.4;
}

.ra-snippe-status-sub {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
}

.ra-snippe-footer {
	margin-top: 16px;
	text-align: center;
	font-size: 12px;
	color: #64748b;
}

@media (max-width: 480px) {
	.ra-snippe-backdrop {
		padding: 12px;
	}
	.ra-snippe-header {
		padding: 30px 18px 22px;
	}
	.ra-snippe-body {
		padding: 20px 18px 18px;
	}
}
