.wpsub-auction-box {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1.25em 1.5em;
	margin: 1em 0;
	background: #fafafa;
}

.wpsub-summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 0.75em;
}

.wpsub-current-bid .wpsub-label {
	display: block;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #666;
}

.wpsub-current-bid .wpsub-amount {
	font-size: 1.8em;
	font-weight: 700;
	color: #111;
}

.wpsub-bid-count {
	font-size: 0.9em;
	color: #666;
}

.wpsub-countdown {
	margin: 0.75em 0;
	padding: 0.5em 0.75em;
	background: #fff3cd;
	border-radius: 6px;
	font-weight: 600;
}

.wpsub-countdown .wpsub-label {
	font-weight: 400;
	color: #856404;
	margin-right: 0.35em;
}

.wpsub-bid-form {
	margin: 1em 0;
}

.wpsub-bid-input {
	display: flex;
	gap: 0.5em;
}

.wpsub-bid-input input {
	flex: 1;
	max-width: 180px;
	padding: 0.5em;
}

.wpsub-min-hint {
	font-size: 0.85em;
	color: #666;
	margin: 0.4em 0 0;
}

.wpsub-messages {
	margin: 0.75em 0;
}

.wpsub-messages.wpsub-success {
	color: #155724;
}

.wpsub-messages.wpsub-error {
	color: #721c24;
}

.wpsub-notice {
	padding: 0.6em 0.9em;
	border-radius: 6px;
	margin: 0.6em 0;
}

.wpsub-notice.wpsub-leading,
.wpsub-notice.wpsub-won {
	background: #d4edda;
	color: #155724;
}

.wpsub-notice.wpsub-pending {
	background: #e2e3e5;
	color: #383d41;
}

.wpsub-notice.wpsub-ended {
	background: #f8d7da;
	color: #721c24;
}

.wpsub-buy-now {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px dashed #ddd;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
}

.wpsub-buy-now-price {
	font-weight: 600;
}

.wpsub-history {
	margin-top: 1em;
	font-size: 0.9em;
}

.wpsub-history summary {
	cursor: pointer;
	font-weight: 600;
}

.wpsub-history table {
	width: 100%;
	margin-top: 0.5em;
	border-collapse: collapse;
}

.wpsub-history th,
.wpsub-history td {
	text-align: left;
	padding: 0.35em 0.5em;
	border-bottom: 1px solid #eee;
}

/* Secciones (ofertas y mensajes) */
.wpsub-section {
	margin-top: 1.25em;
	padding-top: 1em;
	border-top: 1px solid #e2e2e2;
}

.wpsub-section-title {
	font-size: 1.05em;
	margin: 0 0 0.6em;
}

.wpsub-bids-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.wpsub-bids-table th,
.wpsub-bids-table td {
	text-align: left;
	padding: 0.4em 0.5em;
	border-bottom: 1px solid #eee;
}

.wpsub-bids-table thead th {
	border-bottom: 2px solid #ddd;
	font-weight: 600;
}

.wpsub-message-thread {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.wpsub-message-thread li {
	padding: 0.5em 0.75em;
	border-radius: 6px;
	margin-bottom: 0.5em;
}

.wpsub-message-thread .wpsub-msg-user {
	background: #eef4ff;
}

.wpsub-message-thread .wpsub-msg-admin {
	background: #f1f1f1;
}

.wpsub-msg-who {
	font-weight: 600;
}

.wpsub-msg-date {
	font-size: 0.8em;
	color: #777;
	margin-left: 0.5em;
}

.wpsub-msg-body {
	margin-top: 0.35em;
}

.wpsub-message-form textarea {
	width: 100%;
	padding: 0.5em;
	box-sizing: border-box;
	margin-bottom: 0.5em;
}

.wpsub-message-feedback.wpsub-success {
	color: #155724;
	margin-bottom: 0.5em;
}

.wpsub-message-feedback.wpsub-error {
	color: #721c24;
	margin-bottom: 0.5em;
}

/* Listado / grid de subastas */
.wpsub-auctions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25em;
	list-style: none;
	margin: 1em 0;
	padding: 0;
}

.wpsub-auction-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.wpsub-auction-card img {
	width: 100%;
	height: auto;
	display: block;
}

.wpsub-auction-card .wpsub-card-body {
	padding: 0.75em 1em 1em;
}

.wpsub-auction-card .wpsub-card-title {
	font-size: 1em;
	margin: 0 0 0.4em;
}

.wpsub-auction-card .wpsub-card-meta {
	font-size: 0.85em;
	color: #666;
}

/* Resaltado de subastas en el listado estándar de la tienda */
li.product.wpsub-auction-product {
	position: relative;
}

.wpsub-loop-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.72em;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	background: #d63638;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
}

.wpsub-loop-badge .dashicons {
	font-size: 1em;
	width: 1em;
	height: 1em;
	line-height: 1;
}

.wpsub-loop-badge.wpsub-status-pending {
	background: #996800;
}

.wpsub-loop-badge.wpsub-status-ended {
	background: #646970;
}

.wpsub-loop-meta {
	margin: 0.35em 0 0.5em;
	text-align: center;
	font-size: 0.85em;
	color: #555;
}

.wpsub-loop-countdown {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 6px;
	font-weight: 600;
	color: #b32d2e;
	background: rgba( 214, 54, 56, 0.08 );
}

.wpsub-loop-countdown::before {
	content: "\f469";
	font-family: dashicons;
	font-weight: normal;
}

li.product.wpsub-auction-product.wpsub-status-running {
	box-shadow: 0 0 0 2px rgba( 214, 54, 56, 0.35 );
	border-radius: 6px;
}

/* Lista de seguimiento (watchlist) */
.wpsub-watchlist {
	margin: 12px 0;
}
.wpsub-watch-button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.wpsub-watch-button .dashicons {
	line-height: 1;
}
.wpsub-watch-button.wpsub-watching .dashicons {
	color: #f0b400;
}
.wpsub-watch-feedback {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: #555;
}
.wpsub-watchlist-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wpsub-watchlist-item {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}
.wpsub-watchlist-bid {
	font-weight: 600;
}
.wpsub-watchlist-status {
	margin-left: 6px;
	font-size: 0.8em;
	text-transform: uppercase;
	color: #777;
}

/* Tablas de "Mi cuenta": mis subastas y lista de seguimiento */
.wpsub-account-table {
	width: 100%;
	margin-bottom: 1.5em;
}

.wpsub-account-table th,
.wpsub-account-table td {
	vertical-align: middle;
}

.wpsub-status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 0.8em;
	line-height: 1.6;
	color: #fff;
	background: #777;
	white-space: nowrap;
}

.wpsub-status-badge.wpsub-status-running {
	background: #2e7d32;
}

.wpsub-status-badge.wpsub-status-pending {
	background: #ed8b00;
}

.wpsub-status-badge.wpsub-status-ended {
	background: #9e9e9e;
}

/* Ayuda de puja máxima (proxy) */
.wpsub-proxy-help {
	margin: 4px 0 8px;
	font-size: 0.85em;
	color: #555;
	line-height: 1.4;
}

.wpsub-notice.wpsub-your-max {
	background: #eef7f0;
	border-left: 3px solid #2e7d32;
	padding: 8px 12px;
	font-size: 0.9em;
}
