/*
 * KingSoft / Osapa 2.2.4 migration — Phase 15
 * VAT invoice polish, order-overview spacing, and contact-page finalisation.
 */

/* --------------------------------------------------------------------------
 * Order received: give the overview values a little breathing room below the
 * uppercase labels (order number, date, e-mail, total, payment method).
 * ----------------------------------------------------------------------- */
.woocommerce-order-received .woocommerce-order-overview li > strong {
    margin-top: 6px !important;
    line-height: 1.25 !important;
}

/* --------------------------------------------------------------------------
 * VAT invoice details: align with the billing-address column, lower the block,
 * and place the details inside the same visual card language as addresses.
 * ----------------------------------------------------------------------- */
.woocommerce-order-received .woocommerce-order .fvat {
    clear: both !important;
    width: calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
    margin: 42px 0 0 !important;
    padding: 0 !important;
}

.woocommerce-order-received .woocommerce-order .fvat > h2 {
    margin: 0 0 18px !important;
    line-height: 1.08 !important;
}

.woocommerce-order-received .woocommerce-order .fvat > address {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 24px !important;
    border: 1px solid #e3e3e3 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    font-style: normal !important;
}

.woocommerce-order-received .woocommerce-order .fvat > address p {
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* --------------------------------------------------------------------------
 * Checkout VAT invoice option: NIP becomes visibly required only when the
 * customer ticks the optional "Wystaw fakturę VAT" checkbox.
 * ----------------------------------------------------------------------- */
.woocommerce-checkout #gees_invoice_firm_vat_field.kingsoft-invoice-required label::after {
    content: ' *' !important;
    color: #ea0028 !important;
    font-weight: 700 !important;
}

.woocommerce-checkout #gees_invoice_firm_vat_field.kingsoft-invoice-required input {
    border-color: #ea0028 !important;
}

@media (max-width: 767px) {
    .woocommerce-order-received .woocommerce-order .fvat {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
    }
}
