.qz-customer-type,
.qz-business-profile,
.qz-credit-status,
.qz-invoice-summary {
    --qz-ink: #172238;
    --qz-purple: #6054ff;
    --qz-line: #dfe4ed;
    --qz-soft: #f5f4ff;
    color: var(--qz-ink);
}

.woocommerce .qz-customer-type {
    width: 100%;
    clear: both;
    padding: 0;
    border: 0;
    margin: 0 0 1.25rem;
}

.qz-customer-type > label {
    display: block;
    margin-bottom: .5rem;
    color: var(--qz-ink);
    font-weight: 650;
}

.qz-customer-type .woocommerce-input-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
}

.qz-customer-type .input-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.woocommerce .qz-customer-type label.radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.875rem;
    margin: 0;
    padding: .625rem 1rem;
    border: 1px solid var(--qz-line);
    border-radius: .625rem;
    background: #fff;
    color: var(--qz-ink);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.qz-customer-type label.radio::before {
    content: "";
    width: .875rem;
    height: .875rem;
    flex: 0 0 .875rem;
    border: 1.5px solid #a49ab8;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce .qz-customer-type input:checked + label.radio {
    border-color: var(--qz-purple);
    background: var(--qz-soft);
    color: #4c42d8;
    box-shadow: inset 0 0 0 1px var(--qz-purple);
}

.qz-customer-type input:checked + label.radio::before {
    border: 4px solid var(--qz-purple);
}

.qz-customer-type input:focus-visible + label.radio {
    outline: 2px solid #6054ff;
    outline-offset: 3px;
}

.qz-customer-type label.radio .required,
.qz-customer-type label.radio .optional {
    display: none;
}

.qz-business-field[hidden],
.qz-business-cell[hidden],
.qz-business-field [hidden] {
    display: none !important;
}

.qz-business-help,
.qz-business-field .description {
    color: #586176;
    font-size: .875rem;
    line-height: 1.6;
}

.qz-business-help {
    clear: both;
    margin: .75rem 0 1.25rem;
}

.woocommerce .qz-business-profile {
    min-width: 0;
    margin: 1.75rem 0 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--qz-line);
    border-radius: .875rem;
    background: #fff;
}

.qz-business-profile legend {
    padding: 0 .5rem;
    color: var(--qz-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.qz-business-profile::after {
    content: "";
    display: block;
    clear: both;
}

.qz-business-profile .form-row {
    float: none;
    width: 100%;
    margin-bottom: 1rem;
}

.qz-business-profile .input-text,
.qz-business-profile select {
    width: 100%;
    min-height: 2.75rem;
    padding: .625rem .75rem;
    border: 1px solid var(--qz-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--qz-ink);
    font: inherit;
}

.qz-business-profile :is(.input-text, select):focus-visible {
    outline: 2px solid var(--qz-purple);
    outline-offset: 2px;
}

.qz-credit-status {
    clear: both;
    margin: 1.5rem 0;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--qz-line);
    border-left: 4px solid #8990a2;
    border-radius: .75rem;
    background: #fafafd;
}

.qz-credit-status--approved {
    border-left-color: var(--qz-purple);
    background: var(--qz-soft);
}

.qz-credit-status h3 {
    margin: 0 0 .5rem;
    color: var(--qz-ink);
    font-size: 1rem;
    font-weight: 700;
}

.qz-credit-status p {
    margin: .375rem 0 0;
    font-size: .875rem;
    line-height: 1.6;
}

.qz-invoice-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid var(--qz-line);
    border-radius: .75rem;
    background: #fff;
}

.qz-invoice-summary h2 { margin: 0 0 .75rem; font-size: 1.125rem; font-weight: 600; }
.qz-invoice-summary p { margin: 0; color: #536176; font-size: .875rem; line-height: 1.8; }

@media (max-width: 480px) {
    .woocommerce .qz-business-profile,
    .qz-credit-status {
        padding: 1rem;
    }

    .woocommerce .qz-customer-type label.radio {
        padding-inline: .625rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce .qz-customer-type label.radio {
        transition: none;
    }
}
