.new-customer-form {
    position: relative;
}

.new-customer-phone-group {
    display: flex;
    flex-direction: column;

    @media (width >= 80rem), print {
        flex-direction: row;
        gap: 1rem;

        & .new-customer-phone-main {
            flex: 1;
        }

        & .new-customer-phone-ext {
            width: 6rem;
        }
    }
}

.new-customer-currency-group {
    display: flex;
    flex-direction: column;

    &:has(.new-customer-vat.hidden) {
        @media (width >= 80rem), print {
            & .new-customer-currency {
                flex-grow: 1;
            }

            & .new-customer-vat {
                display: none;
            }
        }
    }

    @media (width >= 80rem), print {
        flex-direction: row;
        gap: 1rem;

        /* biome-ignore lint/style/noDescendingSpecificity: <bugged> */
        & .new-customer-currency {
            width: 10rem;
        }

        /* biome-ignore lint/style/noDescendingSpecificity: <bugged> */
        & .new-customer-vat {
            flex: 1;
        }
    }
}

.new-customer-email-group {
    display: flex;
    flex-direction: column;

    @media (width >= 80rem), print {
        flex-direction: row;
        gap: 1rem;

        & > .textbox {
            flex: 1;
        }

        & > .checkbox {
            width: revert;
        }
    }
}

.new-customer-state-zip-group {
    display: flex;
    flex-direction: column;

    @media (width >= 80rem), print {
        flex-direction: row;
        gap: 1rem;

        & .new-customer-state {
            flex: 1;
        }

        & .new-customer-zip {
            width: 8rem;
        }
    }
}

.new-customer-special-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.new-customer-textarea {
    resize: vertical;

    width: 100%;
    min-height: 4rem;
    padding: 0.75rem;
    border: 1px solid var(--clr-gray-mid);
    border-radius: var(--bdr-rounded);

    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--clr-text-primary);

    background-color: var(--clr-white);

    transition: var(--transition-easeinout-fast);

    &::placeholder {
        color: var(--clr-text-placeholder);
    }

    &:focus {
        border-color: var(--clr-primary);
        outline: none;
        box-shadow: 0 0 0 2px var(--clr-primary-light);
    }
}

.new-customer-file-uploader {
    padding: 3rem 0 0;
}

.new-customer-submit {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;

    @media (width >= 80rem), print {
        justify-content: flex-end;
        width: 50%;
    }
}

.new-customer-shipping-name-primary {
    @media (width >= 80rem), print {
        & > :nth-child(2) {
            order: -1;
        }
    }
}

.new-customer-contact-associate-primary {
    @media (width >= 80rem), print {
        .checkbox.forms-input {
            height: 2.25rem;
        }
    }
}
