/* Invoice Pilot — checkout enhancements */
.invoice-pilot-cs { display: none; }
.invoice-pilot-cs.is-active { display: block; }

.invoice-pilot-vat input,
.invoice-pilot-tax-code input { text-transform: uppercase; }

.ip-smart-fill {
    background: #f6fafa;
    border: 1px solid #d4e6e6;
    border-radius: 4px;
    margin: 0 0 1em 0;
    padding: 0.75em 1em;
}
.ip-smart-fill label { display: block; margin-bottom: 0.5em; font-weight: 600; }
.ip-smart-fill textarea { width: 100%; min-height: 64px; margin-bottom: 0.5em; }
.ip-smart-fill button { background: #1e8a8a; border-color: #1e8a8a; color: #fff; }
.ip-smart-fill button:hover { background: #176c6c; border-color: #176c6c; }

/* Live VAT-validation badge inside the billing VAT input. The wrap is a
   thin <span> tightly wrapping the input itself, so the badge anchors
   to the field — not to the surrounding row that also holds the label. */
.ip-vat-wrap {
    position: relative;
    display: block;
}
.ip-vat-wrap > input {
    padding-right: 36px;
    width: 100%;
    box-sizing: border-box;
}
.ip-vat-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.ip-vat-valid    .ip-vat-badge { opacity: 1; background: #d3f3d6; color: #1a7e2e; }
.ip-vat-invalid  .ip-vat-badge { opacity: 1; background: #fbe2e2; color: #b32d2e; }
.ip-vat-checking .ip-vat-badge { opacity: 1; background: #eef1f5; color: #5d6b80; }
