/**
 * $399 Web Development Offer Popup Styles
 */

.st-offer-popup {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9990;
	max-width: 340px;
	width: calc(100% - 48px);
	background: #ffffff;
	border: 1px solid #e8e9f8;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(28, 28, 72, 0.18), 0 2px 8px rgba(28, 28, 72, 0.08);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	opacity: 0;
	transform: translateY(24px) scale(0.96);
	transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
	overflow: hidden;
}

.st-offer-popup[hidden] {
	display: none;
}

.st-offer-popup.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Top accent strip */
.st-offer-popup::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-size: 200% 100%;
	animation: st-offer-shimmer 3s linear infinite;
}

@keyframes st-offer-shimmer {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

.st-offer-popup-inner {
	padding: 26px 22px 20px;
}

/* Badge */
.st-offer-popup-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff3f3;
	color: #d92d20;
	border: 1px solid #fecdc9;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

/* Title */
.st-offer-popup-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	color: #101033;
}

.st-offer-popup-price {
	color: #5454EE;
	font-weight: 800;
	white-space: nowrap;
}

/* Text */
.st-offer-popup-text {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #55566b;
}

/* CTA */
.st-offer-popup-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #5454EE;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 10px;
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 6px 16px rgba(84, 84, 238, 0.35);
}

.st-offer-popup-cta:hover,
.st-offer-popup-cta:focus-visible {
	background: #4242dd;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(84, 84, 238, 0.45);
}

.st-offer-popup-cta:focus-visible {
	outline: 2px solid #101033;
	outline-offset: 2px;
}

/* Actions row: CTA + info icon */
.st-offer-popup-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Info icon wrapper */
.st-offer-info {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.st-offer-info-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 50%;
	color: #8e8fa3;
	cursor: help;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.st-offer-info-btn:hover,
.st-offer-info-btn:focus-visible {
	background: #5454EE;
	border-color: #5454EE;
	color: #ffffff;
}

.st-offer-info-btn:focus-visible {
	outline: 2px solid #101033;
	outline-offset: 2px;
}

/* Tooltip */
.st-offer-info-tip {
	position: absolute;
	bottom: calc(100% + 10px);
	right: -6px;
	width: max-content;
	max-width: 215px;
	background: #101033;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	padding: 10px 12px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16, 16, 51, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 3;
}

.st-offer-info-tip::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 9px;
	border: 6px solid transparent;
	border-top-color: #101033;
	border-bottom: 0;
}

.st-offer-info-mail {
	display: block;
	margin-top: 2px;
	color: #a5a6ff;
	font-weight: 700;
	text-decoration: underline;
	word-break: break-word;
}

.st-offer-info-mail:hover,
.st-offer-info-mail:focus-visible {
	color: #ffffff;
}

.st-offer-info-mail:focus-visible {
	outline: 1px dashed #a5a6ff;
	outline-offset: 2px;
}

/* Reveal on hover, keyboard focus, or copy feedback */
.st-offer-info:hover .st-offer-info-tip,
.st-offer-info:focus-within .st-offer-info-tip,
.st-offer-info.is-open .st-offer-info-tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Copied state: swap tooltip content */
.st-offer-tip-copied {
	display: none;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	color: #7ee2a8;
	font-weight: 700;
}

.st-offer-info-tip.is-copied .st-offer-tip-default {
	display: none;
}

.st-offer-info-tip.is-copied .st-offer-tip-copied {
	display: inline-flex;
}

/* ========================================
   Collapsed info bubble
   (shown after the popup is closed)
   ======================================== */
.st-offer-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9989;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 58px;
	height: 58px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #5454EE 0%, #7b7bf4 100%);
	color: #ffffff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(84, 84, 238, 0.45);
	opacity: 0;
	transform: scale(0.3);
	transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
	pointer-events: none;
}

.st-offer-bubble[hidden] {
	display: none;
}

.st-offer-bubble.is-visible {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.st-offer-bubble:hover,
.st-offer-bubble:focus-visible {
	transform: scale(1.1);
	box-shadow: 0 14px 36px rgba(84, 84, 238, 0.6);
}

.st-offer-bubble:focus-visible {
	outline: 2px solid #101033;
	outline-offset: 3px;
}

.st-offer-bubble-price {
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
}

.st-offer-bubble-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	opacity: 0.9;
}

/* Pulsing ring to attract attention */
.st-offer-bubble::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(84, 84, 238, 0.5);
	animation: st-offer-bubble-pulse 2.2s ease-out infinite;
	pointer-events: none;
}

@keyframes st-offer-bubble-pulse {
	0% { transform: scale(0.9); opacity: 1; }
	70% { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* Note */
.st-offer-popup-note {
	display: block;
	margin-top: 12px;
	font-size: 11.5px;
	color: #8e8fa3;
	line-height: 1.4;
}

/* Close button */
.st-offer-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #f1f2fa;
	border: none;
	border-radius: 50%;
	color: #55566b;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	z-index: 2;
}

.st-offer-popup-close:hover,
.st-offer-popup-close:focus-visible {
	background: #e2e3f5;
	color: #101033;
}

.st-offer-popup-close:focus-visible {
	outline: 2px solid #5454EE;
	outline-offset: 1px;
}

/* Mobile */
@media (max-width: 480px) {
	.st-offer-popup {
		bottom: 16px;
		right: 16px;
		max-width: none;
		width: calc(100% - 32px);
	}

	.st-offer-bubble {
		bottom: 16px;
		right: 16px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.st-offer-popup,
	.st-offer-popup-cta,
	.st-offer-info-btn,
	.st-offer-info-tip,
	.st-offer-bubble {
		transition: none;
	}

	.st-offer-popup::before,
	.st-offer-bubble::after {
		animation: none;
	}
}
