/* Deliberately mobile-only: desktop Elementor settings remain authoritative. */
@media (max-width: 1024px) {
    .elementor .elementor-widget,
    .elementor .elementor-column,
    .elementor .e-con {
        min-width: 0 !important;
    }

    .elementor-widget-text-editor,
    .elementor-widget-heading,
    .elementor-icon-box-content {
        overflow-wrap: break-word !important;
    }

    .elementor input:not([type="checkbox"]):not([type="radio"]),
    .elementor select,
    .elementor textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .elementor-647 iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    .elementor-903 .elementor-element-9523769 {
        padding: 24px 16px !important;
    }

    .elementor-903 .wpr-grid-pagination {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .elementor-903 .wpr-grid-pagination a,
    .elementor-903 .wpr-grid-pagination span {
        margin: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Both existing news widgets were hidden at tablet widths. */
    .elementor-316 .elementor-element-d0e823f.elementor-hidden-tablet {
        display: block !important;
    }
}

@media (max-width: 767px) {
    /* A complete image/text card makes each article visibly distinct. */
    .elementor-903 .wpr-grid-item-inner {
        background: #fff !important;
        border: 1px solid #e0e4e9 !important;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 3px 12px rgb(24 39 56 / 7%) !important;
        margin-bottom: 14px !important;
    }

    .elementor-903.elementor-903 .wpr-grid-item-below-content {
        padding: 18px 16px !important;
    }

    .elementor-903 .wpr-grid-item-title {
        margin-bottom: 10px !important;
    }

    .elementor-903 .wpr-grid-item-read-more {
        padding-top: 12px !important;
        border-top: 1px solid #edf0f3 !important;
    }

    /* Scope popup dimensions to the enquiry popup, including its JS wrappers. */
    #sgpb-popup-dialog-main-div-wrapper > div:has(.sgpb-popup-builder-content-837) {
        position: fixed !important;
        box-sizing: border-box !important;
        width: calc(100vw - 32px) !important;
        max-width: 360px !important;
        min-width: 0 !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        animation: none !important;
    }

    #sgpb-popup-dialog-main-div:has(.sgpb-popup-builder-content-837) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 64px) !important;
        max-height: calc(100dvh - 64px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        box-sizing: border-box !important;
        padding: 20px 16px 16px !important;
        border-radius: 12px !important;
    }

    .sgpb-popup-builder-content-837 .wp-block-heading {
        font-size: 21px !important;
        line-height: 1.3 !important;
        margin: 0 24px 14px 0 !important;
    }

    #sgpb-popup-dialog-main-div:has(.sgpb-popup-builder-content-837) > div {
        height: auto !important;
        overflow: visible !important;
    }

    .sgpb-popup-builder-content-837 .sgpb-main-html-content-wrapper > p:empty,
    .sgpb-popup-builder-content-837 .sgpb-main-html-content-wrapper > br {
        display: none;
    }

    .sgpb-popup-builder-content-837 .forminator-ui {
        margin: 0 !important;
        padding: 0 !important;
    }

    .sgpb-popup-builder-content-837 .forminator-row {
        margin-bottom: 10px !important;
    }

    .sgpb-popup-builder-content-837 :is(input:not([type="hidden"]), select, textarea) {
        font-size: 16px !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
        box-sizing: border-box;
    }

    .sgpb-popup-builder-content-837 textarea {
        height: 76px !important;
        min-height: 76px !important;
    }

    .sgpb-popup-builder-content-837 .forminator-button-submit {
        width: 100% !important;
        min-height: 44px !important;
    }

    #sgpb-popup-dialog-main-div-wrapper:has(.sgpb-popup-builder-content-837) .sgpb-popup-close-button-6 {
        top: 4px !important;
        right: 4px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 2 !important;
    }

    /* Keep the mobile logo and navigation toggle on one row. */
    .elementor-409 .elementor-element-aace39a {
        padding: 12px 16px !important;
    }

    .elementor-409 .elementor-element-aace39a > .e-con-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 12px !important;
    }

    .elementor-409 :is(.elementor-element-ed37935, .elementor-element-f031780) {
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementor-316 {
        padding: 16px !important;
        box-sizing: border-box;
    }

    .elementor-316.elementor-316 :is(.elementor-element-9ce0838, .elementor-element-9ac88d8, .elementor-element-90c7573) {
        padding-inline: 0 !important;
    }

    .sgpb-popup-builder-content-837 .forminator-row {
        margin-inline: 0 !important;
    }

    .sgpb-popup-builder-content-837 .forminator-col {
        padding-inline: 0 !important;
    }

    .sgpb-popup-builder-content-837 :is(.forminator-input, .select2-selection) {
        border: 1px solid #d9dfe5 !important;
        border-radius: 6px !important;
        background: #fff !important;
        min-height: 44px !important;
    }

    .sgpb-popup-builder-content-837 .select2-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sgpb-popup-builder-content-837 .select2-selection__rendered {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .sgpb-popup-builder-content-837 .forminator-button-submit {
        border-radius: 6px !important;
        margin: 2px 0 0 !important;
    }

    .elementor-409 .elementor-element-ed37935 {
        width: 65% !important;
        --width: 65% !important;
    }

    .elementor-409 .elementor-element-f031780 {
        width: 35% !important;
        --width: 35% !important;
    }

    .elementor-409 .elementor-element-eea1039 {
        text-align: left !important;
        align-self: flex-start !important;
        margin: 0 !important;
    }

    .elementor-409 .elementor-element-eea1039 > .elementor-widget-container {
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .elementor-409 .elementor-element-eea1039 a {
        display: block !important;
        width: fit-content;
        max-width: 100%;
        margin: 0 !important;
    }

    .elementor-409 .elementor-element-eea1039 img {
        display: block !important;
        margin: 0 !important;
        width: 190px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Home: give each section room to read instead of retaining 50% columns. */
    .elementor-316 .elementor-element-7506d9a,
    .elementor-316 .elementor-element-9ac88d8,
    .elementor-316 .elementor-element-7506d9a > .e-con-inner,
    .elementor-316 .elementor-element-9ac88d8 > .e-con-inner,
    .elementor-748 .elementor-element-360d885,
    .elementor-749 .elementor-element-5d8ba7f,
    .elementor-751 .elementor-element-46c4496,
    .elementor-748 .elementor-element-360d885 > .e-con-inner,
    .elementor-749 .elementor-element-5d8ba7f > .e-con-inner,
    .elementor-751 .elementor-element-46c4496 > .e-con-inner,
    .elementor-1819 .elementor-element-0ba4124,
    .elementor-1819 .elementor-element-0ba4124 > .e-con-inner {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .elementor-316 :is(.elementor-element-0db5163, .elementor-element-9ce0838, .elementor-element-5a06a8a, .elementor-element-005d6c8),
    .elementor-748 :is(.elementor-element-6a4c740, .elementor-element-aedfcae),
    .elementor-749 :is(.elementor-element-6ebfdb4, .elementor-element-28c8490),
    .elementor-751 :is(.elementor-element-1542216, .elementor-element-786dddf),
    .elementor-1819 :is(.elementor-element-74770ba, .elementor-element-4607a23, .elementor-element-b746adb) {
        width: 100% !important;
        --width: 100% !important;
        margin-inline: 0 !important;
        box-sizing: border-box !important;
    }

    .elementor-316 .elementor-element-c7765cd {
        --spacer-size: clamp(190px, 55vw, 320px) !important;
    }

    /* After the hero video, introduce the story before its product photo. */
    .elementor-316 .elementor-element-9ce0838 {
        order: 1 !important;
    }

    .elementor-316 .elementor-element-0db5163 {
        order: 2 !important;
    }

    .elementor-316 :is(.elementor-element-9ce0838, .elementor-element-9ac88d8, .elementor-element-90c7573),
    .elementor-671 .elementor-element-98870e9,
    .elementor-1819 .elementor-element-0ba4124 {
        padding: 24px 16px !important;
    }

    .elementor-316 :is(.elementor-element-3d661f4, .elementor-element-41cfa21),
    :is(.elementor-748, .elementor-749, .elementor-751) .elementor-widget-text-editor {
        margin-bottom: 16px !important;
    }

    .elementor-316 :is(.elementor-element-eb8ed4a, .elementor-element-a417fd0) .elementor-heading-title,
    .elementor-1819 .elementor-element-eb230c6 .elementor-heading-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .elementor-316 :is(.elementor-element-635347b, .elementor-element-54ab3df) .elementor-heading-title {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .elementor-316 .elementor-element-9599df8,
    .elementor-316 .elementor-element-9599df8 > .e-con-inner {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding-inline: 12px !important;
    }

    .elementor-316 :is(.elementor-element-28ac15b, .elementor-element-2da28ca, .elementor-element-b5f00f7, .elementor-element-001742f) {
        width: calc(50% - 6px) !important;
        --width: calc(50% - 6px) !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    .elementor-316 .elementor-element-9599df8 .elementor-widget-image-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Preserve Royal's native responsive grid/filter/pagination behaviour. */
    .elementor-903 .elementor-element-c9ee9a0 > .elementor-widget-wrap {
        padding: 0 !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-below-content {
        padding: 16px 12px !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-title a {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-excerpt p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        text-align: left !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-date {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-read-more {
        margin-top: 12px !important;
    }

    :is(.elementor-903, .elementor-316) .wpr-grid-item-read-more a,
    .elementor-903 .wpr-grid-pagination a {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
    }

    .elementor-903 .wpr-grid-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Forms, maps and product details must fit a narrow viewport. */
    .elementor-647 .elementor-element-6d693f9,
    .elementor-647 .elementor-element-6d693f9 > .elementor-widget-container {
        margin-top: 0 !important;
    }

    .elementor-647 iframe {
        height: 300px !important;
    }

    .elementor input:not([type="checkbox"]):not([type="radio"]),
    .elementor select,
    .elementor textarea {
        font-size: 16px !important;
    }

    :is(.elementor-748, .elementor-749, .elementor-751) .elementor-widget-icon-box {
        margin-bottom: 8px !important;
    }

    :is(.elementor-748, .elementor-749, .elementor-751) .elementor-icon-box-description {
        line-height: 1.6 !important;
    }

    /*.elementor-424 .elementor-icon-list-items {*/
    /*    display: grid !important;*/
    /*    grid-template-columns: repeat(2, minmax(0, 1fr));*/
    /*    justify-content: center !important;*/
    /*    gap: 8px 16px !important;*/
    /*    margin: 0 !important;*/
    /*}*/

    /*.elementor-424 .elementor-element-704d34bd1 {*/
    /*    padding: 32px 20px 20px !important;*/
    /*    border-top: 1px solid #e0e4e9;*/
    /*}*/

    /*.elementor-424 .elementor-icon-list-item {*/
    /*    margin: 0 !important;*/
    /*    padding: 0 !important;*/
    /*    justify-content: flex-start !important;*/
    /*}*/

    /*.elementor-424 .elementor-icon-list-item a {*/
    /*    min-height: 44px;*/
    /*    display: flex;*/
    /*    align-items: center;*/
    /*    font-size: 14px !important;*/
    /*    line-height: 1.4;*/
    /*}*/

    /*.elementor-424 .elementor-icon-list-item::after {*/
    /*    display: none !important;*/
    /*}*/

    /*.elementor-424 .elementor-element-6b5eca3 {*/
    /*    margin-bottom: 20px !important;*/
    /*    text-align: center;*/
    /*}*/

    /*.elementor-424 .elementor-element-f003d92 {*/
    /*    margin-top: 20px !important;*/
    /*    padding-top: 16px;*/
    /*    border-top: 1px solid #e0e4e9;*/
    /*    text-align: center !important;*/
    /*    font-size: 13px !important;*/
    /*    line-height: 1.6 !important;*/
    /*}*/
}
