/* Final mobile layout safeguards for the storefront home and footer. */

@media (max-width: 767.98px) {
    /* Keep Slick's page indicators small and horizontal on touch screens. */
    body.ribbon-theme .home-slider .hero-slider-1 ul.slick-dots {
        position: absolute !important;
        right: auto !important;
        bottom: 10px !important;
        left: 50% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        height: 14px !important;
        min-height: 0 !important;
        max-height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        transform: translateX(-50%) !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1 ul.slick-dots li {
        display: block !important;
        flex: 0 0 7px !important;
        width: 7px !important;
        min-width: 7px !important;
        max-width: 7px !important;
        height: 7px !important;
        min-height: 7px !important;
        max-height: 7px !important;
        margin: 0 3px !important;
        padding: 0 !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1 ul.slick-dots li button {
        display: block !important;
        box-sizing: border-box !important;
        width: 7px !important;
        min-width: 7px !important;
        max-width: 7px !important;
        height: 7px !important;
        min-height: 7px !important;
        max-height: 7px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(31, 49, 60, .82) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, .88) !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1 ul.slick-dots li.slick-active button {
        border-color: var(--theme-primary, #2f8b57) !important;
        background: var(--theme-primary, #2f8b57) !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1-arrow .slider-btn {
        display: grid !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 !important;
        place-items: center !important;
        line-height: 1 !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1-arrow .slider-btn i[class*="fi-rs-"] {
        width: 12px !important;
        height: 12px !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1-arrow .slider-btn.slider-prev {
        left: 7px !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1-arrow .slider-btn.slider-next {
        right: 7px !important;
    }

    body.ribbon-theme .footer-mid.section-padding {
        margin-top: 30px !important;
        padding: 0 !important;
    }

    body.ribbon-theme .footer-mid .newsletter {
        padding: 18px 0 0 !important;
    }

    body.ribbon-theme .footer-mid .newsletter-inner {
        padding: 16px 14px !important;
        border-radius: 8px !important;
    }

    body.ribbon-theme .footer-mid .newsletter-content form {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    body.ribbon-theme .footer-mid .newsletter-content form input,
    body.ribbon-theme .footer-mid .newsletter-content form button {
        min-height: 40px !important;
        margin: 0 !important;
    }

    body.ribbon-theme .footer-mid .newsletter-content form input {
        flex: 1 1 auto !important;
        width: auto !important;
    }

    body.ribbon-theme .footer-mid .newsletter-content form button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 76px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    body.ribbon-theme .footer-content-container {
        padding-top: 22px !important;
        padding-bottom: 18px !important;
    }

    body.ribbon-theme .footer-content-row {
        row-gap: 20px !important;
    }

    body.ribbon-theme .footer-brand-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.ribbon-theme .footer-brand-column .widget-about,
    body.ribbon-theme .footer-brand-column .logo {
        max-width: none !important;
        margin: 0 !important;
    }

    body.ribbon-theme .footer-brand-column .logo > a {
        display: inline-block !important;
        margin-bottom: 10px !important;
    }

    body.ribbon-theme .footer-brand-column .logo p {
        margin: 0 0 13px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body.ribbon-theme .footer-mid .contact-infor {
        margin: 0 !important;
    }

    body.ribbon-theme .footer-mid .contact-infor li {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 7px !important;
        margin-bottom: 7px !important;
        line-height: 1.35 !important;
    }

    body.ribbon-theme .footer-mid .contact-infor li:last-child {
        margin-bottom: 0 !important;
    }

    body.ribbon-theme .footer-mid .contact-infor li img {
        width: 16px !important;
        max-width: 16px !important;
        margin: 2px 0 0 !important;
    }

    body.ribbon-theme .footer-mid .contact-infor li strong {
        display: none !important;
    }

    body.ribbon-theme .footer-mid .contact-infor li span {
        min-width: 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    body.ribbon-theme .footer-content-row > .footer-link-widget {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    body.ribbon-theme .footer-mid .footer-link-widget .widget-title {
        margin: 0 0 10px !important;
        padding-bottom: 7px !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    body.ribbon-theme .footer-mid .footer-link-widget .footer-list {
        float: none !important;
    }

    body.ribbon-theme .footer-mid .footer-link-widget .footer-list li {
        margin-bottom: 7px !important;
        padding: 0 !important;
        line-height: 1.35 !important;
    }

    body.ribbon-theme .footer-mid .footer-link-widget .footer-list li:last-child {
        margin-bottom: 0 !important;
    }

    body.ribbon-theme .footer-mid .footer-link-widget .footer-list li a {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    body.ribbon-theme .footer-bottom-container {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    body.ribbon-theme .footer-bottom-container .col-12.mb-10 {
        margin-bottom: 10px !important;
    }

    body.ribbon-theme .footer-bottom-container .font-sm {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Clear the fixed bottom navigation without allowing chat controls to overlap it. */
    body.ribbon-theme #example.czm-chat-support {
        z-index: 9890 !important;
    }

    body.ribbon-theme #example.czm-fixed .czm-button {
        bottom: calc(94px + env(safe-area-inset-bottom)) !important;
        left: 16px !important;
        width: 46px !important;
        height: 46px !important;
    }

    body.ribbon-theme #example.czm-chat-support-1 .czm-button-person-avatar {
        width: 46px !important;
        height: 46px !important;
    }

    body.ribbon-theme #example.czm-chat-support-1 .czm-button-person-avatar i {
        font-size: 27px !important;
    }

    body.ribbon-theme #example.czm-fixed .czm-speech-bubble {
        right: auto !important;
        bottom: calc(152px + env(safe-area-inset-bottom)) !important;
        left: 16px !important;
        max-width: calc(100vw - 32px) !important;
    }

    body.ribbon-theme #example .czm-speech-bubble-text {
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    body.ribbon-theme #example .czm-pulse {
        width: 62px !important;
        height: 62px !important;
        left: -8px !important;
        top: -8px !important;
    }
}

@media (max-width: 414px) {
    body.ribbon-theme .home-slider .hero-slider-1 ul.slick-dots {
        bottom: 8px !important;
    }

    body.ribbon-theme .home-slider .hero-slider-1-arrow .slider-btn {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }

    body.ribbon-theme .footer-mid .newsletter-content form button {
        min-width: 70px !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
}

@media (max-width: 359px) {
    body.ribbon-theme .footer-content-row > .footer-link-widget {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
