/* Product descriptions may contain imported tables, figures and unbroken part codes. */
@media (max-width: 767px) {
    .main .tab-content, .main #desc, .main #desc > * {
        min-width: 0;
        max-width: 100%;
    }
    .main #desc {
        overflow-wrap: anywhere;
        overflow-x: auto;
    }
    .main #desc :is(p, span, div, li, td, th, a) {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    .main #desc :is(img, svg, video, iframe, figure) {
        max-width: 100% !important;
    }
    .main #desc :is(img, svg, video) {
        height: auto !important;
    }
    .main #desc table {
        display: block;
        width: max-content !important;
        max-width: 100% !important;
        overflow-x: auto;
    }
    .main #desc pre {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Keep the attachment control in the form flow at phone widths. */
@media (max-width: 767px) {
    .contactform .files-load-wrapper { min-width: 0; max-width: 100%; padding-bottom: 0; }
    .contactform .files-load-wrapper > textarea { max-width: 100%; width: 100%; }
    .contactform .files-load-wrapper > .attach-file-deform-botton {
        position: static !important;
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        min-height: 44px;
        margin: .5rem 0;
        padding: .45rem .75rem;
        white-space: normal;
        text-align: left;
        overflow-wrap: anywhere;
    }
    .contactform .attach-file-deform-botton > span {
        position: static !important;
        display: inline;
        min-width: 0;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
    .contactform .attach-file-deform-result,
    .contactform .attach-file-deform-result .filename { max-width: 100%; overflow-wrap: anywhere; }
}

