/**
 * Woo Omnibus – front-end & admin styles.
 */

/* -----------------------------------------------------------------------
   Front-end: omnibus price label (.woo-omnibus-price)
   ----------------------------------------------------------------------- */

.woo-omnibus-price {
	font-size: 0.85em;
	color: #555;
	margin: 4px 0 8px;
	line-height: 1.4;
}

.woo-omnibus-price .woocommerce-Price-amount {
	font-weight: 600;
	color: inherit;
}

/* On archive / loop cards keep it compact */
.woocommerce ul.products .woo-omnibus-price {
	margin-top: 2px;
	margin-bottom: 4px;
}

/* -----------------------------------------------------------------------
   Front-end: history section (.woo-omnibus-history-section)
   ----------------------------------------------------------------------- */

.woo-omnibus-history-section {
	margin: 16px 0;
	padding: 12px 16px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 0.875em;
}

.woo-omnibus-history-title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 1em;
	font-weight: 600;
	color: #333;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 8px;
}

/* --- Mode: last & lowest_30 (definition list) --- */

.woo-omnibus-history-last,
.woo-omnibus-history-lowest {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	align-items: baseline;
}

.woo-omnibus-history-last dt,
.woo-omnibus-history-lowest dt {
	color: #666;
	font-weight: 400;
}

.woo-omnibus-history-last dd,
.woo-omnibus-history-lowest dd {
	margin: 0;
	font-weight: 600;
	color: #333;
}

.woo-omnibus-history-date {
	font-weight: 400;
	color: #888;
	font-size: 0.9em;
	margin-left: 4px;
}

/* --- Mode: full (table) --- */

.woo-omnibus-history-section .woo-omnibus-history-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 1em;
}

.woo-omnibus-history-section .woo-omnibus-history-table th {
	text-align: left;
	padding: 6px 10px;
	background: #f0f0f0;
	font-weight: 600;
	color: #444;
	border-bottom: 2px solid #ddd;
}

.woo-omnibus-history-section .woo-omnibus-history-table td {
	padding: 6px 10px;
	color: #555;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.woo-omnibus-history-section .woo-omnibus-history-table tbody tr:last-child td {
	border-bottom: none;
}

.woo-omnibus-history-section .woo-omnibus-history-table tbody tr:hover td {
	background: #f4f4f4;
}

/* Responsive: collapse table on small screens */
@media ( max-width: 480px ) {
	.woo-omnibus-history-section .woo-omnibus-history-table thead {
		display: none;
	}

	.woo-omnibus-history-section .woo-omnibus-history-table tr {
		display: block;
		margin-bottom: 10px;
		border-bottom: 1px solid #ddd;
		padding-bottom: 8px;
	}

	.woo-omnibus-history-section .woo-omnibus-history-table td {
		display: flex;
		justify-content: space-between;
		padding: 3px 0;
		border: none;
		font-size: 0.9em;
	}

	.woo-omnibus-history-section .woo-omnibus-history-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #444;
		margin-right: 8px;
	}
}

/* -----------------------------------------------------------------------
   Admin: migration page
   ----------------------------------------------------------------------- */

.woo-omnibus-migrate-wrap {
	max-width: 800px;
}

.woo-omnibus-migrate-wrap .description {
	font-size: 13px;
	color: #555;
}

.omnibus-migrate-stats {
	margin: 16px 0;
}

.omnibus-migrate-info-table th,
.omnibus-migrate-info-table td {
	padding: 6px 12px;
}

/* Progress bar */
.omnibus-progress-bar-wrap {
	height: 20px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin: 12px 0 6px;
	max-width: 480px;
}

.omnibus-progress-bar {
	height: 100%;
	background: #2271b1;
	border-radius: 10px;
	transition: width 0.3s ease;
	min-width: 0;
}

.omnibus-progress-label {
	font-size: 13px;
	color: #555;
	margin: 4px 0 0;
}

/* -----------------------------------------------------------------------
   Admin: meta box
   ----------------------------------------------------------------------- */

.omnibus-meta-wrap {
	padding: 4px 0;
}

.omnibus-history-table {
	margin-top: 8px;
	font-size: 13px;
	border-collapse: collapse;
	width: 100%;
}

.omnibus-history-table th {
	background: #f0f0f1;
	font-weight: 600;
	padding: 7px 10px;
	text-align: left;
}

.omnibus-history-table td {
	padding: 6px 10px;
	vertical-align: middle;
}

.omnibus-history-table tr:nth-child(even) td {
	background: #f9f9f9;
}

.omnibus-meta-empty,
.omnibus-meta-note {
	color: #777;
	font-style: italic;
	margin: 6px 0;
}

.omnibus-meta-count {
	margin-top: 8px;
	font-size: 12px;
	color: #888;
}

.omnibus-variation-title {
	margin: 16px 0 4px;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px solid #ddd;
	padding-bottom: 4px;
}
