.ps-footer {
    padding-top: 0;
    background: #ffffff;
    color: #404553;

    &__support {
        background: #f3f4f8;
        border-top: 1px solid #e5e8f0;
        border-bottom: 1px solid #dfe3eb;

        .ps-container {
            min-height: 94px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }
    }

    &__support-intro {
        h3 {
            margin-bottom: 6px;
            color: #404553;
            font-size: 23px;
            font-weight: 700;
            line-height: 1.25;
        }

        p {
            margin-bottom: 0;
            color: #7e859b;
            font-size: 14px;
        }
    }

    &__support-channels {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 34px;
        flex-wrap: wrap;
    }

    &__support-item {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        color: #404553;

        &:hover {
            color: $color-1st;
        }

        small {
            display: block;
            color: #8a91a6;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            text-transform: uppercase;
        }

        strong {
            display: block;
            color: #404553;
            font-size: 19px;
            font-weight: 700;
            line-height: 1.35;
        }
    }

    &__support-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d9deea;
        border-radius: 50%;
        background: #ffffff;
        color: #404553;
        font-size: 18px;
        flex: 0 0 38px;
    }

    &__widgets {
        display: grid;
        grid-template-columns: repeat(3, minmax(120px, max-content));
        align-items: flex-start;
        gap: 22px 56px;
        padding: 0;

        .widget_footer {
            min-width: 0;
            display: block;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;

            .widget-title {
                margin: 0 0 9px;
                color: #404553;
                font-size: 13.5px;
                font-weight: 700;
                line-height: 1.25;
                white-space: nowrap;
                text-transform: uppercase;

                &:after {
                    display: none;
                }
            }
        }

        .ps-list--link {
            display: block;

            li {
                margin-bottom: 7px;
                line-height: 1.35;

                &:not(:last-child) {
                    &:after {
                        display: none;
                    }
                }

                &:last-child {
                    margin-bottom: 0;
                }

                a {
                    color: #5f6678;
                    font-size: 13px;
                    line-height: 1.35;
                    white-space: nowrap;

                    &:hover {
                        color: $color-1st;
                    }
                }
            }
        }
    }

    &__links {
        padding: 28px 0;
        border-top: 1px solid #e5e8f0;

        p {
            margin-bottom: 11px;
            color: #404553;
            font-size: 14px;
            line-height: 1.7;

            &:last-child {
                margin-bottom: 0;
            }

            strong {
                color: #1f2533;
                margin-right: 14px;
                font-weight: 700;
            }

            a {
                display: inline-block;
                color: #5f6678;
                line-height: 20px;
                margin-right: 8px;
                position: relative;

                &:after {
                    content: '|';
                    margin-left: 8px;
                    color: #b4bac8;
                }

                &:before {
                    display: none;
                }

                &:hover {
                    color: $color-1st;
                }

                &:last-child {
                    &:after {
                        display: none;
                    }
                }
            }
        }
    }

    &__category-columns {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px 42px;
    }

    &__category-column {
        min-width: 0;

        h4 {
            margin-bottom: 14px;
            color: #404553;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.3;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        li {
            margin-bottom: 10px;
            line-height: 1.35;

            &:last-child {
                margin-bottom: 0;
            }
        }

        a {
            color: #5f6678;
            font-size: 14px;

            &:hover {
                color: $color-1st;
            }
        }
    }

    &__social-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
        padding: 24px 0 34px;
        border-top: 1px solid #e5e8f0;

        h4 {
            margin-bottom: 0;
            color: #404553;
            font-size: 14px;
            font-weight: 700;
            line-height: 42px;
            text-transform: uppercase;
        }

        .ps-list--social {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0;

            li {
                margin-right: 0;

                a {
                    width: 42px;
                    height: 42px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    background: $color-1st;
                    color: #ffffff !important;
                    font-size: 20px;

                    &:hover {
                        background: #006b5f;
                        color: #ffffff !important;
                        transform: translateY(-1px);
                    }

                    i,
                    svg,
                    span {
                        color: #ffffff !important;
                        fill: #ffffff !important;
                    }
                }
            }
        }
    }

    &__social-menu {
        flex: 1 1 auto;
        min-width: 0;
    }

    &__social-connect {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    &__bottom {
        background: #f3f4f8;
        border-top: 1px solid #dfe3eb;
        border-bottom: 1px solid #dfe3eb;
    }

    &__copyright {
        min-height: 64px;
        padding: 14px 0;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 24px;

        p {
            margin-bottom: 0;
            line-height: 30px;
            color: #7e859b;

            a {
                margin-left: 0;
            }
        }

        .footer-payments {
            a {
                display: inline-block;
                margin-left: 14px;
                vertical-align: middle;
            }
        }
    }

    @include media('<md') {
        &__support {
            .ps-container {
                align-items: flex-start;
                flex-direction: column;
                padding-top: 22px;
                padding-bottom: 22px;
            }
        }

        &__support-channels {
            justify-content: flex-start;
        }

        &__copyright {
            flex-flow: row wrap;
        }

        &__category-columns {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        &__social-row {
            align-items: flex-start;
            flex-direction: column;
            gap: 22px;
        }

        &__social-connect {
            justify-content: flex-start;
            margin-left: 0;
        }
    }

    @include media('<sm') {
        &__widgets {
            grid-template-columns: repeat(2, minmax(120px, max-content));
            gap: 20px 42px;
        }

        &__support-channels,
        &__social-row,
        &__social-connect {
            align-items: flex-start;
            flex-direction: column;
        }

        &__category-columns {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @include media('<xs') {
        &__widgets {
            grid-template-columns: 1fr;
            gap: 18px;

            .widget_footer .widget-title {
                margin-bottom: 7px;
            }
        }

        &__category-columns {
            grid-template-columns: 1fr;
        }

        &__support-item {
            strong {
                font-size: 16px;
                overflow-wrap: anywhere;
            }
        }

        &__copyright {
            text-align: left;

            p {
                display: block;
                width: 100%;

                span {
                    display: block;
                    padding-bottom: 10px;
                }
            }
        }
    }
}

.ps-footer--2 {
    .widget_newletters {
        .form-group--nest {
            margin-bottom: 30px;
        }
    }
}

.ps-footer--3 {
    padding: 0;
    border-top: 1px solid #e1e1e1;
    background-color: #f8f8f8;

    .ps-block--site-features {
        padding: 40px 0;
        margin-bottom: 70px;
        border-bottom: 1px solid #e1e1e1;
    }

    @include media('<sm') {
        .ps-block--site-features {
            margin-bottom: 40px;
        }
    }
}

.ps-footer--organic {
}

.ps-footer--kids {
    .ps-form--newletter {
        .form-group--nest {
            margin-bottom: 20px;
        }
    }
}

.ps-footer--photo {
    .ps-site-info {
        h5 {
            color: $color-photo;
            font-size: 24px;
            font-weight: 600;
        }
    }

    .ps-form--newletter {
        button {
            color: #fff;
            background-color: $color-photo;

            &:hover {
                background-color: darken($color-photo, 10%);
            }
        }
    }

    @media (min-width: 1440px) {
        .ps-footer__content {
            flex: 2 1 100%;
        }

        .ps-footer__left {
            flex: 1 1 100%;
            max-width: 400px;
        }

        .ps-footer__content {
            width: 100%;
            max-width: 100%;
        }

        .ps-footer__wrapper {
            display: flex;
            flex-flow: column wrap;
            justify-content: flex-start;
            align-items: flex-start;
        }
    }

    @media (min-width: 1680px) {
        .ps-footer__wrapper {
            display: flex;
            flex-flow: row nowrap;
            justify-content: space-between;
            align-items: center;
        }
    }
}
