/**
 * Virga Integration - Frontend Anchor Price Styling
 */

.virga-anchor-price-wrapper {
	display: block;
	margin-top: 4px;
	margin-bottom: 6px;
	font-size: 0.85em;
	color: #555555;
	line-height: 1.4;
}

.virga-anchor-price-wrapper>.virga-anchor-amount>.woocommerce-Price-amount {
	font-size: inherit;
}

.virga-anchor-label {
	color: #666666;
	font-weight: 400;
	margin-right: 4px;
}

.virga-anchor-amount {
	color: #222222;
	font-weight: 600;
}

.virga-anchor-amount .woocommerce-Price-amount {
	font-weight: 600;
}

/* Catalog loops */
ul.products li.product .virga-anchor-price-wrapper {
	font-size: 0.78em;
	margin-top: 2px;
}

/* Single product summary */
.single-product div.product .virga-anchor-price-wrapper {
	font-size: 0.9em;
	margin-top: 6px;
}

/* Variable product price container */
.woocommerce-variation-price .virga-anchor-price-wrapper {
	margin-top: 4px;
}

/* ==========================================================================
   Virga Price CSV Archive Table
   ========================================================================== */
.virga-price-archive-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 25px auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.virga-price-archive-container.alignwide {
	max-width: var(--wp--style--global--wide-size, 1100px);
	width: 100%;
}

.virga-price-archive-container.alignfull {
	max-width: 100%;
	width: 100%;
}

.virga-price-archive-title {
	margin: 0;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 1.15em;
	font-weight: 600;
	color: #1e293b;
}

.virga-table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.virga-price-archive-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: left;
	margin: 0;
}

.virga-price-archive-table th {
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.virga-price-archive-table td {
	padding: 15px 20px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	color: #334155;
}

.virga-price-archive-table tbody tr:hover {
	background-color: #f8fafc;
}

.virga-price-archive-table tbody tr:last-child td {
	border-bottom: none;
}

.virga-col-date {
	width: 25%;
	min-width: 130px;
}

.virga-col-file {
	width: 50%;
}

.virga-col-action {
	width: 25%;
	text-align: right;
}

.virga-date-badge {
	display: inline-block;
	padding: 4px 10px;
	background: #e0f2fe;
	color: #0369a1;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.2px;
}

.virga-file-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.virga-file-main {
	display: flex;
	align-items: center;
	gap: 6px;
}

.virga-file-title {
	font-weight: 500;
	color: #0f172a;
	font-size: 14px;
}

.virga-filename-subtle {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	color: #94a3b8;
	word-break: break-all;
	line-height: 1.35;
	letter-spacing: -0.1px;
}

.virga-size-badge {
	display: inline-block;
	padding: 2px 7px;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 500;
}

.virga-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #0284c7;
	color: #ffffff !important;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.virga-btn-download:hover {
	background-color: #0369a1;
	color: #ffffff !important;
}

.virga-btn-download:active {
	transform: scale(0.98);
}

.virga-icon-dl {
	flex-shrink: 0;
}

/* Empty state */
.virga-price-archive-empty {
	text-align: center;
	padding: 45px 20px;
	color: #64748b;
}

.virga-empty-icon {
	color: #94a3b8;
	margin-bottom: 12px;
}

.virga-empty-text {
	font-size: 16px;
	font-weight: 600;
	color: #334155;
	margin: 0 0 6px 0;
}

.virga-empty-subtext {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

@media (max-width: 768px) {

	.virga-price-archive-table th,
	.virga-price-archive-table td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.virga-btn-download {
		padding: 6px 12px;
		font-size: 12px;
	}
}