/* ========================================
   FOOTER LAYOUT 4
======================================== */

.footer-layout-4 {
    position: relative;

    width: 100%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.footer-layout-4,
.footer-layout-4 * {
    box-sizing: border-box;
}


/* ========================================
   MAIN CONTAINER
======================================== */

.footer-layout-4 .footer-container {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 20px 20px 45px;

    display: grid;

    grid-template-columns:
        minmax(230px, 1.1fr)
        minmax(200px, 1fr)
        minmax(260px, 1.1fr)
        minmax(280px, 1.25fr);

    gap: 65px;

    align-items: start;
}


/* ========================================
   GENERAL COLUMNS
======================================== */

.footer-layout-4 .footer-column {
    min-width: 0;
}


/* ========================================
   FOOTER TITLES
======================================== */

.footer-layout-4 .footer-title {
    margin: 0 0 19px;

    color: inherit;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 700;
}

/* The second links column has no title in the
   design; an invisible one keeps its list aligned
   with the column beside it. aria-hidden in the
   template keeps it out of the accessibility tree. */
.footer-layout-4 .footer-hidden-title {
    visibility: hidden;
}


/* ========================================
   SOCIAL MEDIA

   Position 9 brings its own markup, so its
   wrappers are dissolved and the links shaped.
======================================== */

.footer-layout-4 .footer-social-icons {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 22px;

    margin-bottom: 27px;
}

.footer-layout-4 .footer-social-icons ul,
.footer-layout-4 .footer-social-icons div,
.footer-layout-4 .footer-social-icons span,
.footer-layout-4 .footer-social-icons li {
    display: contents;
}

.footer-layout-4 .footer-social-icons a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: var(--link-hover-color, currentColor);

    text-decoration: none;

    font-size: 16px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.footer-layout-4 .footer-social-icons a img {
    width: 18px;
    height: 18px;

    display: block;
}

.footer-layout-4 .footer-social-icons a:hover {
    transform: translateY(-2px);

    opacity: 0.8;
}


/* ========================================
   WHATSAPP CHAT

   Rendered when the Multiple Chat plugin has a
   WhatsApp number configured.
======================================== */

.footer-layout-4 .footer-whatsapp {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 7px 18px 7px 7px;

    border-radius: 30px;

    background: rgba(128, 128, 128, 0.12);

    color: inherit;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* WhatsApp green on a white disc, so the mark stays
   legible whatever the footer background is set to. */
.footer-layout-4 .footer-whatsapp i {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #28b463;

    font-size: 16px;
}

.footer-layout-4 .footer-whatsapp:hover {
    background: rgba(128, 128, 128, 0.22);

    color: var(--link-hover-color, currentColor);

    text-decoration: none;
}


/* ========================================
   APP BADGES (Position 6)
======================================== */

.footer-layout-4 .footer-social-apps {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.footer-layout-4 .footer-social-apps div,
.footer-layout-4 .footer-social-apps p,
.footer-layout-4 .footer-social-apps ul,
.footer-layout-4 .footer-social-apps li,
.footer-layout-4 .footer-social-apps span {
    display: contents;
}

.footer-layout-4 .footer-social-apps br {
    display: none;
}

.footer-layout-4 .footer-social-apps a {
    display: inline-flex;

    margin: 0;
    padding: 0;
}

.footer-layout-4 .footer-social-apps img {
    height: 36px;
    width: auto;

    max-width: 100%;

    display: block;

    object-fit: contain;
}

/* Position 6 badges ship a second .hover image per
   link; stylesheet.css swaps them on mouseover. */
.footer-layout-4 .footer-social-apps a .hover {
    display: none;
}

.footer-layout-4 .footer-social-apps a:hover img {
    display: none;
}

.footer-layout-4 .footer-social-apps a:hover .hover {
    display: block;
}


/* ========================================
   QUICK LINKS
======================================== */

.footer-layout-4 .footer-links-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-layout-4 .footer-links-list li {
    margin-bottom: 8px;
}

.footer-layout-4 .footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-layout-4 .footer-links-list a {
    color: inherit;

    text-decoration: none;

    font-size: 14px;

    line-height: 1.35;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.footer-layout-4 .footer-links-list a:hover {
    color: var(--link-hover-color, currentColor);

    padding-left: 3px;

    text-decoration: none;
}

.footer-layout-4 .footer-links-second {
    padding-top: 0;
}


/* ========================================
   PAYMENT (Position 8)
======================================== */

/* Stacks the payment row, the about text and the
   app badges down the right-hand column. */
.footer-layout-4 .footer-payment-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 22px;
}

.footer-layout-4 .footer-about-text {
    color: inherit;

    font-size: 14px;
    line-height: 1.6;
}

.footer-layout-4 .footer-about-text p {
    margin: 0;
}

.footer-layout-4 .payment-wrapper {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;
}

.footer-layout-4 .pay-with-text {
    flex-shrink: 0;

    color: inherit;

    font-size: 13px;

    font-style: italic;

    font-weight: 700;

    white-space: nowrap;
}

.footer-layout-4 .payment-image {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    width: 210px;

    max-width: 100%;
}

.footer-layout-4 .payment-image div,
.footer-layout-4 .payment-image p,
.footer-layout-4 .payment-image ul,
.footer-layout-4 .payment-image li,
.footer-layout-4 .payment-image span {
    display: contents;
}

.footer-layout-4 .payment-image br {
    display: none;
}

.footer-layout-4 .payment-image img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0;

    object-fit: contain;
}


/* ========================================
   COPYRIGHT

   Named .footer-credit rather than
   .footer-copyright: the latter is the theme's own
   full-width band (dark background, centred text)
   and this is a small block in the bottom-left.
======================================== */

.footer-layout-4 .footer-bottom {
    width: 100%;
}

.footer-layout-4 .footer-bottom-container {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 0 20px 12px;
}

.footer-layout-4 .footer-credit {
    max-width: 420px;
}

.footer-layout-4 .footer-credit p {
    margin: 0 0 5px;

    color: inherit;
    opacity: 0.7;

    font-size: 10px;

    line-height: 1.3;
}

.footer-layout-4 .footer-credit a {
    color: inherit;

    text-decoration: none;
}

.footer-layout-4 .footer-credit a:hover {
    color: var(--link-hover-color, currentColor);
}


/* ========================================
   BACK TO TOP
======================================== */

.footer-layout-4 .footer-back-to-top {
    position: absolute;

    right: 18px;
    bottom: 15px;

    width: 51px;
    height: 51px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(128, 128, 128, 0.18);

    color: inherit;

    text-decoration: none;

    border: 1px solid rgba(128, 128, 128, 0.3);

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;

    z-index: 20;
}

.footer-layout-4 .footer-back-to-top i {
    font-size: 13px;
}

.footer-layout-4 .footer-back-to-top:hover {
    color: var(--link-hover-color, currentColor);

    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.16);
}


/* ========================================
   1200px
======================================== */

@media (max-width: 1200px) {

    .footer-layout-4 .footer-container {
        grid-template-columns:
            minmax(190px, 1fr)
            minmax(170px, 0.9fr)
            minmax(210px, 1fr)
            minmax(240px, 1.1fr);

        gap: 35px;
    }

    .footer-layout-4 .payment-image {
        width: 190px;
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 992px) {

    .footer-layout-4 .footer-container {
        grid-template-columns: repeat(2, 1fr);

        gap: 40px 50px;

        padding-top: 35px;
    }

    .footer-layout-4 .footer-hidden-title {
        visibility: visible;
    }

    .footer-layout-4 .footer-payment-column {
        justify-content: flex-start;
    }

    .footer-layout-4 .footer-bottom-container {
        padding-top: 10px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .footer-layout-4 {
        font-size: 13px;
    }

    .footer-layout-4 .footer-container {
        grid-template-columns: 1fr;

        gap: 32px;

        padding: 30px 22px 35px;
    }

    .footer-layout-4 .footer-title {
        margin-bottom: 15px;

        font-size: 15px;
    }

    .footer-layout-4 .footer-hidden-title {
        display: none;
    }

    .footer-layout-4 .footer-social-icons {
        margin-bottom: 20px;
    }

    .footer-layout-4 .footer-links-list li {
        margin-bottom: 9px;
    }

    .footer-layout-4 .footer-links-list a {
        font-size: 13px;
    }

    .footer-layout-4 .payment-wrapper {
        justify-content: flex-start;
    }

    .footer-layout-4 .payment-image {
        width: 190px;
    }

    .footer-layout-4 .footer-bottom-container {
        padding: 5px 22px 18px;
    }

    .footer-layout-4 .footer-back-to-top {
        position: fixed;

        width: 46px;
        height: 46px;

        right: 15px;
        bottom: 15px;
    }

}


/* ========================================
   VERY SMALL MOBILE
======================================== */

@media (max-width: 380px) {

    .footer-layout-4 .payment-wrapper {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-layout-4 .footer-social-icons {
        gap: 18px;
    }

}
