/* SWP Aviso Pedidos — portal público de seguimiento */

.swp-portal {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
}

.swp-portal-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, .06);
	padding: 28px;
	margin-bottom: 24px;
}

.swp-portal-card h2 {
	margin-top: 0;
	font-size: 1.4em;
}

.swp-portal-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 12px 0;
}

.swp-portal-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

@media (max-width: 600px) {
	.swp-portal-fields { grid-template-columns: 1fr; }
}

.swp-portal-form label {
	display: block;
	font-weight: 600;
	font-size: .9em;
}

.swp-portal-form input {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 1em;
	box-sizing: border-box;
}

.swp-portal-form button,
.swp-portal-btn {
	display: inline-block;
	background: #4f46e5;
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 12px 30px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.swp-portal-form button:hover,
.swp-portal-btn:hover {
	filter: brightness(1.1);
}

.swp-portal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.swp-portal-head h3 { margin: 0; }

.swp-portal-status {
	background: #eef2ff;
	color: #4338ca;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: .85em;
	font-weight: 700;
}

.swp-portal-status--completed { background: #ecfdf5; color: #047857; }
.swp-portal-status--cancelled,
.swp-portal-status--refunded,
.swp-portal-status--failed { background: #fef2f2; color: #b91c1c; }

.swp-portal-date { color: #6b7280; font-size: .9em; }

/* Línea de progreso */
.swp-portal-steps {
	list-style: none;
	display: flex;
	padding: 0;
	margin: 26px 0;
	counter-reset: step;
}

.swp-portal-steps li {
	flex: 1;
	text-align: center;
	font-size: .8em;
	color: #9ca3af;
	position: relative;
	padding-top: 26px;
}

.swp-portal-steps li span {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e5e7eb;
}

.swp-portal-steps li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: #e5e7eb;
	z-index: 0;
}

.swp-portal-steps li:first-child::before { display: none; }

.swp-portal-steps li.is-done { color: #111827; font-weight: 600; }
.swp-portal-steps li.is-done span { background: #4f46e5; }
.swp-portal-steps li.is-done::before { background: #4f46e5; }

.swp-portal-tracking {
	background: #f9fafb;
	border: 1px dashed #4f46e5;
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	margin: 18px 0;
}

.swp-portal-tracking h4 { margin: 0 0 8px; }

.swp-portal-items {
	width: 100%;
	border-collapse: collapse;
}

.swp-portal-items td {
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.swp-portal-qty { color: #6b7280; font-size: .9em; }
.swp-portal-price { text-align: right; white-space: nowrap; }
.swp-portal-total td { font-weight: 800; border-bottom: 0; }
