.sgt-emc-fab-root {
	--sgt-emc-ink: #1f2933;
	--sgt-emc-paper: #f7f3ea;
	--sgt-emc-accent: #b45309;
	--sgt-emc-accent-deep: #7c2d12;
	position: relative;
	z-index: 99980;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.sgt-emc-fab {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	z-index: 99981;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1rem 0.7rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 45%, #b45309 100%);
	color: #fff7ed;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(120, 53, 15, 0.35);
	transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.sgt-emc-fab:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(120, 53, 15, 0.4);
}

.sgt-emc-fab:active {
	transform: translateY(0);
}

.sgt-emc-fab__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #fff7ed, #fde68a 55%, #f59e0b);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.sgt-emc-panel {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 3.6rem);
	z-index: 99982;
	width: min(22rem, calc(100vw - 2rem));
	max-height: min(70vh, 28rem);
	overflow: auto;
	border-radius: 1rem;
	background: linear-gradient(180deg, #fffdf8 0%, var(--sgt-emc-paper) 100%);
	color: var(--sgt-emc-ink);
	box-shadow: 0 18px 48px rgba(28, 25, 23, 0.22);
	border: 1px solid rgba(180, 83, 9, 0.18);
	animation: sgt-emc-in 0.22s ease;
}

@keyframes sgt-emc-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.sgt-emc-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem 0.55rem;
	border-bottom: 1px solid rgba(120, 53, 15, 0.1);
}

.sgt-emc-panel__head strong {
	font-size: 0.95rem;
	font-weight: 750;
}

.sgt-emc-panel__close {
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: rgba(28, 25, 23, 0.06);
	color: var(--sgt-emc-ink);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.sgt-emc-panel__body {
	padding: 0.85rem 1rem 1rem;
}

.sgt-emc-hint {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #4b5563;
}

.sgt-emc-form {
	display: grid;
	gap: 0.55rem;
}

.sgt-emc-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	border: 1px solid rgba(120, 53, 15, 0.22);
	border-radius: 0.65rem;
	background: #fff;
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sgt-emc-submit,
.sgt-emc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 0;
	border-radius: 0.65rem;
	background: linear-gradient(135deg, var(--sgt-emc-accent) 0%, var(--sgt-emc-accent-deep) 100%);
	color: #fff7ed;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.sgt-emc-cta {
	margin-top: 0.75rem;
}

.sgt-emc-msg {
	margin: 0.65rem 0 0;
	color: #b91c1c;
	font-size: 0.85rem;
}

.sgt-emc-linkish {
	display: inline-block;
	margin-top: 0.65rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sgt-emc-accent-deep);
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.sgt-emc-card {
	padding: 0.85rem;
	border-radius: 0.85rem;
	background: linear-gradient(160deg, #fff 0%, #fef3c7 100%);
	border: 1px solid rgba(180, 83, 9, 0.16);
}

.sgt-emc-card--plata {
	background: linear-gradient(160deg, #fff 0%, #e5e7eb 100%);
	border-color: rgba(100, 116, 139, 0.25);
}

.sgt-emc-card--oro {
	background: linear-gradient(160deg, #fffbeb 0%, #fde68a 55%, #fbbf24 100%);
	border-color: rgba(180, 83, 9, 0.28);
}

.sgt-emc-card__top {
	margin-bottom: 0.35rem;
}

.sgt-emc-card__badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(28, 25, 23, 0.08);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sgt-emc-card__saldo {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.1;
}

.sgt-emc-card__saldo span {
	font-size: 0.85rem;
	font-weight: 600;
	color: #6b7280;
}

.sgt-emc-bar {
	margin-top: 0.7rem;
	height: 0.45rem;
	border-radius: 999px;
	background: rgba(28, 25, 23, 0.08);
	overflow: hidden;
}

.sgt-emc-bar__fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f59e0b, #b45309);
	transition: width 0.35s ease;
}

.sgt-emc-ruta {
	display: flex;
	justify-content: space-between;
	gap: 0.2rem;
	margin: 0.65rem 0 0.15rem;
	padding: 0;
	list-style: none;
}

.sgt-emc-ruta__p {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	color: #78716c;
	text-align: center;
}

.sgt-emc-ruta__p span {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #d6d3d1;
}

.sgt-emc-ruta__p.is-done span,
.sgt-emc-ruta__p.is-now span {
	background: #b45309;
}

.sgt-emc-ruta__p.is-now,
.sgt-emc-ruta__p.is-done {
	color: #7c2d12;
}

.sgt-emc-card--plata .sgt-emc-bar__fill {
	background: linear-gradient(90deg, #94a3b8, #475569);
}

.sgt-emc-card--oro .sgt-emc-bar__fill {
	background: linear-gradient(90deg, #fbbf24, #92400e);
}

.sgt-emc-card__meta,
.sgt-emc-card__cupon,
.sgt-emc-card__howto {
	margin: 0.55rem 0 0;
	font-size: 0.86rem;
	line-height: 1.35;
	color: #4b5563;
}

.sgt-emc-card__cupon {
	font-weight: 700;
	color: var(--sgt-emc-accent-deep);
}

.sgt-emc-card__howto {
	margin-top: 0.45rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.55rem;
	background: rgba(120, 53, 15, 0.08);
	color: #7c2d12;
	font-size: 0.82rem;
	font-weight: 600;
}

.sgt-emc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 420px) {
	.sgt-emc-fab__label {
		font-size: 0.84rem;
	}
}
