@use '../utils' as *;

/*=============================
	  OffCanvas
===============================*/
.offCanvas-menu {
    position: relative;
    width: 30px;
    height: 21px;
    & .menu-tigger {
        @include flexbox();
        flex-direction: column;
        gap: 6px;
        & span {
            width: 30px;
            height: 3px;
            background: var(--tg-border-1);
            border-radius: 5px;
            @include transition(.3s);
            &:nth-child(2) {
                width: 18px;
            }
        }
        &:hover {
            & span {
                background: var(--tg-theme-primary);
                &:nth-child(2) {
                    width: 30px;
                }
            }
        }
    }
    &-two {
        margin-right: 0;
        padding-right: 0;
        padding-left: 40px;
        &::before {
            right: auto;
            left: 0;
            height: 104px;
        }
    }
    &-three {
        width: 95px;
        height: auto;
        @include flexbox();
        align-items: center;
        justify-content: center;
        border-right: 1px solid #DEE0EB;
        @media #{$lg} {
            display: none;
        }
    }
}

.offCanvas {
    &__info {
        background: var(--tg-color-white-default) none repeat scroll 0 0;
        height: 100%;
        padding: 55px 50px;
        position: fixed;
        left: 0;
        top: 0;
        transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
        -moz-transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
        -webkit-transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
        -ms-transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
        -o-transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
        width: 400px;
        z-index: 999;
        overflow-y: scroll;
        @include transform(translateX(-100%));
        &.active {
            @include transform(translateX(0));
        }
        &::-webkit-scrollbar {
            width: 0px;
        }
    }
    &__close-icon {
        position: absolute;
        left: 0;
        top: 0;
        & button {
            width: 45px;
            height: 45px;
            @include flexbox();
            align-items: center;
            justify-content: center;
            background: var(--tg-theme-primary);
            border: 0 none;
            color: var(--tg-color-white-default);
            cursor: pointer;
            font-size: 20px;
            padding: 0;
            &:hover {
                background: var(--tg-theme-secondary);
                color: var(--tg-color-white-default);
            }
        }
    }
    &__logo {
        text-align: center;
        margin-bottom: 40px;
        & img {
            max-height: 34px;
        }
    }
    &__content {
        margin-bottom: 35px;
        & p {
            margin-bottom: 0;
            text-align: center;
        }
    }
    &__img {
        margin-bottom: 40px;
        & .list-wrap {
            @include flexbox();
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }
    }
    &__side-info {
        & .contact-list {
            @include flexbox();
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            &:last-child {
                margin-bottom: 0;
            }
            & i {
                font-size: 24px;
                color: var(--tg-theme-primary);
                transform: translateY(1px);
            }
            & a,
            & p {
                color: var(--tg-body-color);
                margin: 0;
                line-height: 24px;
                font-size: 17px;
            }
            & a {
                font-weight: 500;
                &:hover {
                    color: var(--tg-theme-primary);
                }
            }
        }
    }
    &__social {
        text-align: center;
        padding-top: 45px;
        margin-top: 45px;
        border-top: 1px solid #D9D9D9;
        & .title {
            margin-bottom: 18px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2.8px;
            color: var(--tg-border-1);
        }
        & .list-wrap {
            @include flexbox();
            align-items: center;
            justify-content: center;
            gap: 22px;
            & li {
                line-height: 1;
                & a {
                    color: var(--tg-border-1);
                    display: block;
                    & svg {
                        width: 20px;
                        height: 20px;
                    }
                    &:hover {
                        color: var(--tg-theme-primary);
                    }
                }
            }
        }
    }
    &__overly {
        position: fixed;
        background: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        @include transition(.3s);
        &.active {
            opacity: .7;
            visibility: visible;
        }
    }
}
