/**
 * Price Summary Pro Block Styles
 */

.seecommerce-price-summary-pro {
	background: #fff;
	border: 2px solid #0073aa;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
}

.price-summary-header h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	text-align: center;
}

.price-summary-body {
	margin-bottom: 16px;
}

.itemized-list {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 14px;
}

.item-details {
	color: #555;
	flex: 1;
}

.item-price {
	font-weight: 600;
	color: #333;
}

.price-breakdown {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
}

.summary-row.subtotal {
	color: #555;
}

.summary-row.shipping {
	color: #555;
}

.summary-row.tax {
	color: #555;
}

.summary-row.total {
	padding-top: 12px;
	margin-top: 12px;
	border-top: 2px solid #0073aa;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.total-amount {
	font-size: 24px;
	color: #0073aa;
}

.free-badge {
	display: inline-block;
	padding: 4px 8px;
	background: #00a32a;
	color: #fff;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.price-summary-footer {
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.help-text {
	margin: 0;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

/* Sticky mode */
.seecommerce-price-summary-pro.sticky-mode {
	position: sticky;
	top: 20px;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Empty state */
.price-summary-empty {
	text-align: center;
	padding: 30px 20px;
	color: #999;
}

.price-summary-empty-icon {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.5;
}

/* Loading animation */
.price-summary-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #666;
}

.price-summary-loading::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%,
	20% {
		content: '';
	}
	40% {
		content: '.';
	}
	60% {
		content: '..';
	}
	80%,
	100% {
		content: '...';
	}
}

/* Compact variant */
.price-summary-compact .seecommerce-price-summary-pro {
	padding: 16px;
}

.price-summary-compact .price-summary-header h3 {
	font-size: 18px;
	margin-bottom: 16px;
}

.price-summary-compact .summary-row {
	font-size: 14px;
}

.price-summary-compact .total-amount {
	font-size: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.seecommerce-price-summary-pro {
		padding: 16px;
	}

	.seecommerce-price-summary-pro.sticky-mode {
		position: relative;
		top: 0;
		box-shadow: none;
	}

	.price-summary-header h3 {
		font-size: 18px;
	}

	.summary-row {
		font-size: 14px;
	}

	.summary-row.total {
		font-size: 16px;
	}

	.total-amount {
		font-size: 20px;
	}
}
