/* Only the known chat widget moves when it would cover a bottom cookie bar. */
#gsb-buttons-5593.mhpe-cookie-avoid {
    bottom: var(--mhpe-chat-bottom) !important;
}

@media (max-width: 420px) {
    /* The sale banner's native row uses nowrap. Keep the message and timer
       readable and reserve a separate column for the link and room to close. */
    #mhtb > div.mhtb-in {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas: "offer action" "timer action";
        column-gap: 8px;
        row-gap: 2px;
        padding-inline: 10px 44px;
    }

    #mhtb > .mhtb-in > .mhtb-msg {
        grid-area: offer;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    #mhtb > .mhtb-in > .mhtb-time {
        grid-area: timer;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    #mhtb > .mhtb-in > a.mhtb-cta {
        grid-area: action;
        justify-self: end;
        margin-inline: 0;
        padding-inline: 8px;
    }
}

/* The custom location block uses a nonexistent eicon-pin glyph. This local
   SVG fallback does not depend on loading another icon font. */
body.home.page-id-8 .mh-region-grid .mh-pin-icon > i.eicon-pin::before {
    content: "";
    display: block;
    width: 14px;
    height: 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23185fa5' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    /* Six domain offers in two compact rows; remove only empty edge columns. */
    body.home.page-id-8 .elementor-element-6faffe2 > .elementor-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
        padding: 12px;
    }
    body.home.page-id-8 .elementor-element-6faffe2 > .elementor-container > .elementor-column {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
    }
    body.home.page-id-8 .elementor-element-6faffe2 > .elementor-container > .elementor-element-d27c1c1,
    body.home.page-id-8 .elementor-element-6faffe2 > .elementor-container > .elementor-element-500bc4b {
        display: none !important;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-column > .elementor-widget-wrap {
        padding: 8px 4px !important;
        margin: 0 !important;
        align-content: flex-start;
        gap: 8px;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-widget-image {
        margin: 0 !important;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-widget-image .elementor-widget-container {
        display: flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-widget-image img {
        width: auto !important;
        height: auto !important;
        max-width: min(88px, 100%) !important;
        max-height: 32px !important;
        object-fit: contain;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-widget-image .elementor-widget-container > a {
        display: flex;
        min-width: 0;
        max-width: 100%;
        align-items: center;
        justify-content: center;
    }
    body.home.page-id-8 .elementor-element-6faffe2 .elementor-heading-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center;
    }

    /* Normal document flow replaces the mobile absolute price label and
       percentage offsets. The wording, destination and displayed price stay. */
    body.home.page-id-8 .elementor-element-3f2f497 > .elementor-widget-wrap {
        margin: 0 !important;
        padding: 16px 12px 32px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-a71e04f {
        display: none !important;
    }
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-1afedc4 {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        text-align: center;
    }
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-1afedc4 > .elementor-widget-container,
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-c5816c2 > .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-1afedc4 .elementor-heading-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
    body.home.page-id-8 .elementor-element-3f2f497 .elementor-element-c5816c2 .elementor-button {
        max-width: 100%;
        min-height: 48px;
        padding: 12px 20px !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        white-space: normal;
        box-sizing: border-box;
    }

    /* Keep the current two-column location design and improve tap/read sizes. */
    body.home.page-id-8 .mh-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    body.home.page-id-8 .mh-region-card {
        min-width: 0;
        padding: 14px 12px;
    }
    body.home.page-id-8 .mh-region-label span {
        font-size: 14px;
        line-height: 1.4;
    }
    body.home.page-id-8 .mh-region-card a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 6px 0;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }
    body.home.page-id-8 .mh-viewall-card {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 14px;
    }
    body.home.page-id-8 .mh-viewall-card a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 14px;
    }

    /* The persistent prompt was covering page text on the supplied phone
       screenshots. Keep the accessible chat link and its recognizable icon. */
    #gsb-buttons-5593 {
        left: 12px !important;
        right: auto !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    #gsb-buttons-5593 .cta-tooltip {
        display: none !important;
    }
}
