/**
 * ShieldTrust Smart CTA and Floating Widget Styling
 * Theme-agnostic, zero-conflict styling.
 * Inherits background, typography and colors directly from the active theme.
 */

/* Container Box - Strictly inherits website and page background, typography and text colors */
.gsst-cta-box {
	margin: 28px 0;
	padding: 22px;
	background: inherit !important;
	border: 1px solid rgba(150, 150, 150, 0.22);
	border-radius: 12px;
	box-shadow: none;
	font-family: inherit;
	color: inherit;
	box-sizing: border-box;
	max-width: 100%;
	clear: both;
}

.gsst-cta-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 100%;
	box-sizing: border-box;
	background: inherit !important;
	color: inherit;
}

/* Header & Trust Badge */
.gsst-cta-header {
	text-align: left;
}

.gsst-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: inherit !important;
	color: inherit !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 9px;
	border-radius: 16px;
	margin-bottom: 8px;
	border: 1px solid rgba(150, 150, 150, 0.3);
}

.gsst-cta-heading {
	margin: 0 0 6px 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: inherit !important;
	line-height: 1.3 !important;
	font-family: inherit !important;
}

.gsst-cta-intro {
	margin: 0 !important;
	font-size: 14px !important;
	color: inherit !important;
	opacity: 0.9;
	line-height: 1.5 !important;
	font-family: inherit !important;
}

/* Buttons Grid */
.gsst-buttons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 6px;
	max-width: 100%;
	box-sizing: border-box;
}

.gsst-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none !important;
	color: #ffffff !important;
	font-weight: 600;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1.2;
}

.gsst-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	opacity: 0.95;
	color: #ffffff !important;
}

.gsst-btn:focus-visible {
	outline: 2px solid #0284c7;
	outline-offset: 2px;
}

.gsst-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.gsst-btn-text {
	display: flex;
	flex-direction: column;
	text-align: left;
	line-height: 1.2;
}

.gsst-btn-action {
	font-size: 13px;
	font-weight: 700;
}

.gsst-btn-sub {
	font-size: 11px;
	opacity: 0.9;
	margin-top: 2px;
	font-weight: 400;
}

/* Platform Specific Button Colors - High Trust Gradients */
.gsst-btn-whatsapp {
	background: linear-gradient(135deg, #25d366 0%, #1ea952 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.gsst-btn-telegram {
	background: linear-gradient(135deg, #0088cc 0%, #006da3 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.gsst-btn-sms {
	background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.gsst-btn-phone {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Trust Badges Footer */
.gsst-trust-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(150, 150, 150, 0.2);
	font-size: 12px;
	color: inherit;
	background: inherit !important;
	opacity: 0.85;
}

.gsst-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
}

.gsst-trust-item svg {
	color: #10b981;
}

/* ===================================================
   Sticky Floating Telegram Button (Offset from theme footers)
   =================================================== */
.gsst-floating-wrap {
	position: fixed;
	z-index: 99999;
	display: flex;
	align-items: center;
	font-family: inherit;
	box-sizing: border-box;
	pointer-events: auto;
}

.gsst-floating-wrap.gsst-popping {
	animation: gsst-floating-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes gsst-floating-pop {
	0% {
		opacity: 0;
		transform: translateY(28px) scale(0.85);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes gsst-pulse-glow {
	0% {
		box-shadow: 0 4px 18px rgba(0, 136, 204, 0.45), 0 0 0 0 rgba(0, 136, 204, 0.4);
	}
	70% {
		box-shadow: 0 4px 18px rgba(0, 136, 204, 0.45), 0 0 0 8px rgba(0, 136, 204, 0);
	}
	100% {
		box-shadow: 0 4px 18px rgba(0, 136, 204, 0.45), 0 0 0 0 rgba(0, 136, 204, 0);
	}
}

.gsst-pos-bottom-right {
	bottom: 85px;
	right: 20px;
}

.gsst-pos-bottom-left {
	bottom: 85px;
	left: 20px;
}

.gsst-floating-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #0088cc 0%, #006699 100%) !important;
	color: #ffffff !important;
	padding: 11px 20px;
	border-radius: 30px;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 18px rgba(0, 136, 204, 0.45), 0 1px 4px rgba(0, 0, 0, 0.12);
	animation: gsst-pulse-glow 3s infinite;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.gsst-floating-btn:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 6px 24px rgba(0, 136, 204, 0.6), 0 2px 8px rgba(0, 0, 0, 0.2);
	color: #ffffff !important;
	filter: brightness(1.06);
	animation: none;
}

.gsst-floating-btn:active {
	transform: translateY(0) scale(0.98);
}

.gsst-floating-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 600px) {
	.gsst-cta-box {
		padding: 16px 14px;
		margin: 20px 0;
		border-radius: 10px;
	}

	.gsst-buttons-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.gsst-btn {
		padding: 12px 14px;
		min-height: 48px;
	}

	.gsst-pos-bottom-right {
		bottom: 75px;
		right: 14px;
	}

	.gsst-pos-bottom-left {
		bottom: 75px;
		left: 14px;
	}

	.gsst-floating-btn {
		padding: 9px 14px;
		font-size: 12px;
	}

	.gsst-floating-label {
		display: inline;
		font-size: 12px;
	}
}

@media (max-width: 360px) {
	.gsst-floating-btn {
		padding: 8px 12px;
		font-size: 11px;
	}
}
