/* Free Shipping Progress Bar - solo en página carrito */

.fsb-wrap {
	width: 100%;
	padding: 1.5rem 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: 1.5rem;
}

.fsb-inner {
	max-width: 32rem;
	margin: 0 auto;
}

.fsb-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.fsb-emoji {
	font-size: 1.875rem;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.fsb-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #0d474b;
	margin: 0 0 0.25rem;
	padding: 0 1rem;
}

.fsb-title.fsb-complete {
	color: #059669;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fsb-sub {
	font-size: 0.875rem;
	font-weight: 400;
	color: #0d474b;
	margin: 0 0 0.75rem;
}

/* Un solo párrafo, una sola línea: evita que el tema convierta spans en bloque */
.fsb-remaining {
	font-size: 0.875rem;
	color: #0d474b;
	margin: 0.75rem 0 0;
	text-align: center;
	display: block;
	white-space: nowrap;
}

.fsb-remaining-line,
.fsb-remaining .fsb-amount {
	display: inline !important;
}

.fsb-amount {
	font-weight: 700;
	color: #e11d48;
}

.fsb-countdown-wrap {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.fsb-countdown-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
}

.fsb-countdown-box {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #f8fafc;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fsb-icon-timer {
	display: inline-flex;
	color: #e11d48;
}

.fsb-timer {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	font-family: ui-monospace, monospace;
	font-weight: 700;
	font-size: 0.875rem;
	color: #334155;
}

.fsb-timer .fsb-sep {
	animation: fsb-pulse 1s ease-in-out infinite;
}

.fsb-timer .fsb-s {
	color: #e11d48;
}

.fsb-ended {
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b;
}

@keyframes fsb-pulse {
	50% { opacity: 0.5; }
}

.fsb-bar-wrap {
	position: relative;
	padding-top: 2rem;
	max-width: 32rem;
	margin: 0 auto;
}

.fsb-truck-wrap {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	transition: left 0.5s ease-out;
	z-index: 10;
}

.fsb-truck-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0.35rem;
	background: #fff;
	border: 1px solid rgba(13, 71, 75, 0.1);
	border-radius: 50%;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
	color: #0d474b;
	margin-bottom: -0.5rem;
	transform: translateY(-1rem);
	overflow: visible;
}

.fsb-truck-circle svg {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	object-fit: contain;
}

.fsb-truck-circle.fsb-complete {
	background: #22c55e;
	color: #fff;
	border-color: #16a34a;
}

.fsb-truck-arrow {
	width: 0.5rem;
	height: 0.5rem;
	margin: -0.25rem auto 0;
	transform: rotate(45deg) translateY(-0.35rem);
	border-right: 1px solid #fecdd3;
	border-bottom: 1px solid #fecdd3;
	background: #fff;
}

.fsb-truck-arrow.fsb-complete {
	background: #22c55e;
	border-color: #16a34a;
}

.fsb-bar {
	height: 1rem;
	width: 100%;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
}

.fsb-bar-fill {
	height: 100%;
	background: #e11d48;
	border-radius: 9999px;
	transition: width 0.5s ease-out;
}

.fsb-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	padding: 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #0d474b;
}

.fsb-label-start {
	transform: translateX(-0.25rem);
}

.fsb-label-end {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	transform: translateX(0.5rem);
}

.fsb-label-end small {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	margin-top: 0;
	transform: translateX(0.75rem);
}

.fsb-refresh-wrap {
	text-align: center;
	margin-top: 1rem;
	padding: 0 0.5rem;
}

.fsb-notice {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.fsb-refresh-btn {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0d474b;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 0.375rem;
	padding: 0.375rem 0.75rem;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.fsb-refresh-btn:hover:not(:disabled) {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

.fsb-refresh-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.fsb-wrap {
		padding: 1rem 0.75rem;
	}
	.fsb-title {
		font-size: 0.9375rem;
	}
	.fsb-bar-wrap {
		padding-top: 1.75rem;
	}
}
