/* LifterLMS Swiss Tax Calculator Styles */

/* Tax summary container */
#llms-swiss-tax-summary {
    margin-top: 0;
    padding: 0;
}

/* Tax breakdown line */
.llms-tax-breakdown {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

/* Tax total line - make it stand out */
.llms-tax-total {
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 8px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

/* Tax note styling */
.llms-tax-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

/* Price highlighting */
.llms-tax-base-price,
.llms-tax-total-price {
    font-weight: bold;
}

/* Total price emphasis */
.llms-tax-total-price {
    color: #2c5aa0;
    font-size: 1.1em;
}

/* Ensure proper spacing in order summary */
.llms-order-summary li.llms-tax-breakdown,
.llms-order-summary li.llms-tax-total {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 8px 0;
    text-align: left;
}

/* Label styling consistency */
.llms-tax-breakdown .llms-label,
.llms-tax-total .llms-label {
    font-weight: normal;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Price and note container */
.llms-tax-breakdown .llms-tax-price-container,
.llms-tax-total .llms-tax-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .llms-tax-breakdown,
    .llms-tax-total {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .llms-tax-breakdown .llms-label,
    .llms-tax-total .llms-label {
        margin-bottom: 4px;
    }
    
    .llms-tax-note {
        margin-left: 0;
        margin-top: 2px;
    }
}

/* Animation for smooth show/hide */
#llms-swiss-tax-summary,
#llms-tax-breakdown,
#llms-tax-total {
    transition: opacity 0.3s ease-in-out;
}

/* Ensure tax summary integrates well with existing LifterLMS styles */
.llms-order-summary.has-swiss-tax .llms-pricing-main {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

/* Force left alignment for all elements */
.llms-order-summary li {
    text-align: left !important;
}

.llms-order-summary li * {
    text-align: left !important;
}
