/**
 * BTW Checkout Styles - WooCommerce Integrated
 */

/* BTW Fields Container - Match WooCommerce styling */
.boost-btw-checkout-fields {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* Customer type heading - Match WooCommerce h3 */
.boost-customer-type-heading {
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.boost-customer-type-heading abbr {
    color: #e01020;
    text-decoration: none;
    border: none;
}

/* Business checkbox styling - Match WooCommerce checkboxes */
.boost-business-checkbox {
    margin-bottom: 15px !important;
}

.boost-business-checkbox label {
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.boost-business-checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

/* Business fields wrapper */
.boost-business-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

/* Company name field - Use WooCommerce form-row styling */
.boost-company-name {
    margin-bottom: 15px !important;
}

.boost-company-name label {
    display: block;
    margin-bottom: 5px;
}

.boost-company-name input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* VAT field wrapper */
.boost-vat-field-wrap {
    position: relative;
    margin-bottom: 15px;
}

.boost-vat-number {
    margin-bottom: 5px !important;
}

.boost-vat-number label {
    display: block;
    margin-bottom: 5px;
}

.boost-vat-number input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.boost-vat-number .description {
    font-size: 0.875em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* VAT validation result - Subtle styling */
.boost-vat-result {
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 0.875em;
    display: none;
    margin-top: 8px;
}

.boost-vat-result.show {
    display: block;
}

.boost-vat-result.validating {
    background: #f0f6fc;
    color: #2271b1;
    border: 1px solid #c3c4c7;
}

.boost-vat-result.valid {
    background: #edfaef;
    color: #1e7e34;
    border: 1px solid #28a745;
}

.boost-vat-result.invalid {
    background: #fef2f2;
    color: #c00;
    border: 1px solid #dc3545;
}

.boost-vat-result.warning {
    background: #fff8e5;
    color: #856404;
    border: 1px solid #ffc107;
}

.boost-vat-result.error {
    background: #fff0f0;
    color: #a00;
    border: 1px solid #f00;
}

.boost-vat-result .company-name {
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

.boost-vat-result .company-address {
    display: block;
    font-size: 0.875em;
    color: #666;
    margin-top: 2px;
}

/* Reverse charge notice */
.boost-vat-reverse-charge-info {
    margin-top: 12px;
    padding: 10px 12px;
    background: #edfaef;
    border-radius: 3px;
    border: 1px solid #28a745;
    color: #1e7e34;
    font-size: 0.875em;
}

.boost-vat-reverse-charge-info strong {
    display: block;
}

/* Cart/Checkout BTW row */
.boost-btw-row th,
.boost-btw-row td {
    font-weight: 500;
}

.boost-btw-reverse-charge th,
.boost-btw-reverse-charge td {
    color: #1e7e34;
}

.boost-reverse-charge-info-row td {
    padding-top: 0 !important;
}

.boost-reverse-charge-info-row small {
    color: #1e7e34;
    font-style: italic;
}

/* Cart/Checkout totals */
.boost-reverse-charge-notice th,
.boost-reverse-charge-notice td {
    color: #1e7e34;
    font-weight: 600;
}

.boost-reverse-charge-text {
    background: #edfaef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #1e7e34;
}

/* Spinner animation */
.boost-vat-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #c3c4c7;
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: boost-spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes boost-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .boost-btw-checkout-fields {
        padding: 0;
    }
}
