/* WC Price Checker Frontend Styles */

.wcpc-price,
.wcpc-dynamic-price {
    display: inline-block;
}

.wcpc-price-amount {
    font-weight: 600;
}

.wcpc-sale-badge {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

.wcpc-out-of-stock {
    color: #999;
    font-style: italic;
    margin-left: 5px;
}

.wcpc-in-stock {
    color: #4caf50;
}

.wcpc-error {
    color: #f44336;
    font-style: italic;
}

.wcpc-product-name {
    font-weight: 600;
    margin-right: 5px;
}

/* Price Range */
.wcpc-price-range {
    display: inline-block;
}

/* Price Table */
.wcpc-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wcpc-price-table th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.wcpc-price-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.wcpc-price-table tr:hover {
    background: #fafafa;
}

.wcpc-price-table a {
    text-decoration: none;
    color: inherit;
}

.wcpc-price-table a:hover {
    text-decoration: underline;
}

/* Loading state */
.wcpc-dynamic-price.wcpc-loading {
    opacity: 0.6;
    position: relative;
}

.wcpc-dynamic-price.wcpc-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #333;
    animation: wcpc-spin 1s linear infinite;
}

@keyframes wcpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wcpc-price-table {
        font-size: 14px;
    }

    .wcpc-price-table th,
    .wcpc-price-table td {
        padding: 8px;
    }
}

/* Theme compatibility */
.woocommerce .wcpc-price .amount {
    font-size: inherit;
}

.woocommerce .wcpc-price del {
    opacity: 0.5;
}

.woocommerce .wcpc-price ins {
    text-decoration: none;
    font-weight: 700;
}

.wcpc-price-amount ins{
	text-decoration: none !important;
	margin-left: 10px;
}