/* The recipient is informational: existing form fields and delivery stay unchanged. */
#modal-contact-form .customer-contact-recipient {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #eadfd3;
    border-radius: 12px;
    background: #fff;
    text-align: start;
}

#modal-contact-form .customer-contact-recipient-label {
    display: block;
    margin-bottom: 4px;
    color: #6b5a4c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

#modal-contact-form .customer-contact-recipient-name {
    display: block;
    min-width: 0;
    color: #173c56;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere !important;
    text-transform: none;
}

/* Keep compounds together when they fit, but contain exceptionally long names. */
#modal-contact-form .customer-contact-recipient-name .portal-whole-word {
    display: inline-block !important;
    width: max-content !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 767px) {
    #modal-contact-form .customer-contact-recipient {
        margin-top: 14px;
        padding: 10px 12px;
    }

    #modal-contact-form .customer-contact-recipient-name {
        font-size: 17px;
    }
}

@media (max-width: 319px) {
    #modal-contact-form .modal-dialog .modal-header {
        padding-right: 16px;
    }

    #modal-contact-form .modal-header .modal-title {
        flex-direction: column;
        align-items: flex-start;
    }
}
