/* VAT Switcher Frontend Styles */
.vat-switcher-container {
    display: inline-block;
    margin: 10px 0;
}

.vat-switcher-right {
    text-align: right;
}

.vat-switcher-left {
    text-align: left;
}

.vat-switcher {
    display: inline-flex;
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.vat-switcher:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vat-switcher .vat-option {
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333333;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.vat-switcher .vat-option:hover {
    background-color: rgba(0, 124, 186, 0.1);
}

.vat-switcher .vat-option.active {
    background-color: #007cba;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.vat-switcher .vat-option:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Price elements with VAT suffixes */
.price-with-vat-suffix {
    display: inline-block;
}

.vat-suffix {
    font-size: 0.85em;
    color: #666;
    margin-left: 4px;
}

/* WooCommerce specific adjustments */
.woocommerce .vat-switcher-container {
    margin: 5px 0;
}

.woocommerce-page .vat-switcher-container {
    margin: 5px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vat-switcher {
        border-radius: 20px;
        padding: 1px;
    }
    
    .vat-switcher .vat-option {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .vat-switcher-container {
        text-align: center;
        margin: 8px 0;
    }
}

/* Animation for price changes */
.price-updating {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.price-updated {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Hide elements during price calculation */
.vat-switcher-calculating .price {
    position: relative;
}

.vat-switcher-calculating .price::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VAT Breakdown Styles for Cart and Checkout */
.vat-switcher-breakdown {
    border-top: 1px solid #e1e1e1 !important;
}

.vat-switcher-breakdown th {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-align: left !important;
    padding: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.vat-switcher-breakdown td {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-align: right !important;
    padding: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.vat-switcher-breakdown .woocommerce-Price-amount {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.vat-switcher-breakdown.vat-total {
    border-top: 2px solid #333 !important;
    background-color: #f9f9f9 !important;
}

.vat-switcher-breakdown.vat-total th,
.vat-switcher-breakdown.vat-total td {
    font-weight: bold !important;
}

/* Ensure consistent styling with WooCommerce tables */
.woocommerce table.cart .vat-switcher-breakdown th,
.woocommerce table.cart .vat-switcher-breakdown td,
.woocommerce-checkout-review-order-table .vat-switcher-breakdown th,
.woocommerce-checkout-review-order-table .vat-switcher-breakdown td {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    border: inherit;
    padding: inherit;
    line-height: inherit;
}
e .cart_totals .vat-switcher-breakdown.cart-subtotal th,
.woocommerce .cart_totals .vat-switcher-breakdown.cart-subtotal td {
    border: inherit !important;
    background: inherit !important;
    font: inherit !important;
    color: inherit !important;
    padding: inherit !important;
    text-align: inherit !important;
}
