@use '../../utils' as *;

/*----------------------------------------*/
/*  10.5 Account css
/*----------------------------------------*/

.profile{
    &__tab{
        @media #{$md, $xs, $sm}{
            margin-right: 0;
            margin-bottom: 50px;
        }
        & nav{
            & .nav-tabs{
                padding: 0;
                border: 0;
                margin: 0;
                padding: 20px 0;
                border: 1px solid #E0E2E3;
                background-color: var(--tp-common-white);
                & .nav-link{
                    font-weight: 400;
                    font-size: 16px;
                    padding: 14px 0px;
                    margin: 0px 30px;
                    position: relative;
                    border-radius: 0;
                    text-align: left;
                    border: 0;
                    color: #5D5D63;
                    font-family: var(--tp-ff-onest);
                    &::after{
                        position: absolute;
                        top: 14px;
                        left: -31px;
                        height: 25px;
                        width: 2px;
                        content: "";
                        transition: .4s;
                        opacity: 0;
                        visibility: hidden;
                        background-color: var(--tp-common-black);
                    }
                    &:not(:last-child){
                        border-bottom: 1px dashed #E0E2E3;
                    }
                    & span{
                        margin-right: 7px;
                    }
                    &.active{
                        color: var(--tp-common-black);
                        &::after{
                            opacity: 1;
                            visibility: visible;
                        }
                    }
                }
            }
        }
        & .tp-tab-menu{
            position: relative;
        }
        &-content{
            padding: 35px 40px 40px;
            background-color: var(--tp-common-white);
        }
    }
    &__info{
        &-title{
            font-size: 20px;
            margin-bottom: 25px;
            font-family: var(--tp-ff-onest);
        }
    }
    &__input{
        margin-bottom: 25px;
        position: relative;
        &-box{
            & h4{
                font-weight: 500;
                font-size: 14px;
                letter-spacing: -0.02em;
                color: var(--tp-common-black-solid);
                margin-bottom: 10px;
                & span{
                    color: var(--tp-theme-primary);
                }
            }
            & p{
                font-size: 13px;
                color: var(--tp-common-white);
                opacity: .7;
                margin-bottom: 10px;
            }
        }

        & > span{
            position: absolute;
            top: 50%;
            left: 20px;
            @include tp-transform(translateY(-50%));

            & svg{
                @include tp-transform(translateY(-2px));
            }
        }
        & input,
        & textarea{
            width: 100%;
            height: 60px;
            line-height: 60px;
            padding: 0 25px;
            padding-left: 50px;
            border: 0;
            outline: 0;
            background-color: #F4F0EA;
            border: 1px solid transparent;
            color: var(--tp-common-black);
            font-family: var(--tp-ff-onest);
            &:focus{
                background-color: transparent;
                border-color: var(--tp-theme-primary);
            }
        }
        & textarea{
            line-height: 1.5;
            padding: 20px;
            resize: none;
            height: 200px;
            resize: none;
        }

        & .nice-select{
            width: 100%;
            float: none;
            height: 60px;
            border: 1px solid #EAEAEF;
            border-radius: 0;
            line-height: 58px;
            padding-left: 27px;

            & .current{
                color: var(--tp-common-black);
                font-family: var(--tp-ff-onest);
            }

            &::after{
                right: 25px;
                color: var(--tp-common-black);
            }

            &.open{
                & .list{
                    @include tp-transform(scale(1) translateY(0px));
                }
            }
            & .list{
                width: 100%;
                border-radius: 0;
                margin-top: 0;
                padding: 13px 8px;
                transform-origin: center center;
                @include tp-transform(scale(.9) translateY(0px));
                font-family: var(--tp-ff-onest);
                & .option{
                    &:hover{
                        color: var(--tp-common-black);
                    }
                }
            }
        }
    }
    &__password{
        & input{
            padding: 0 20px;
            background-color: #F4F0EA;
            border: 1px solid transparent;
            &:focus{
                background-color: transparent;
            }
        }
    }
    &__ticket{
        border: 1px solid #E0E2E3;
        @media #{$sm, $xs}{
            overflow-x: scroll;
        }
        & table{
            & thead{
                & tr{
                    background-color: transparent;
                }
            }
            & th{
                color: var(--tp-common-black);
                border-color: #E0E2E3;
                box-shadow: none;
                font-family: var(--tp-ff-onest);
            }
            & td{
                color: var(--tp-common-black);
            }
            & tbody{

                & > tr{
                    &:first-child{
                        background-color: transparent;
                    }
                    &:not(:last-child){
                        border-bottom: 1px solid #E0E2E3;
                    }

                    & td,
                    & th{
                        vertical-align: middle;
                        color: var(--tp-common-black);
                        font-family: var(--tp-ff-onest);
                    }


                    & > th{
                        padding-left: 15px;
                        padding-right: 15px;
                    }

                    & th[scope="row"]{
                        color: var(--tp-common-black);
                    }

                    & td[data-info="status done"]{
                        color: #08AF5C;
                    }
                    & td[data-info="status pending"]{
                        color: #6364DB;
                    }
                    & td[data-info="status reply"]{
                        color: #D93D1E;
                    }
                    & td[data-info="status hold"]{
                        color: #FFB422;
                    }

                    & .tp-btn{
                        padding: 7px 18px;
                        background-color: #E0E2E3;
                        color: var(--tp-common-black);
                        font-weight: 500;
                        min-width: 90px;
                        &:hover{
                            color: var(--tp-common-white);
                            background-color: var(--tp-common-black);
                        }
                    }
                    
                }
            }

        }
        & .table{
            margin-bottom: 0;
            --bs-table-bg: none;
            @media #{$sm, $xs}{
                width: 700px;
            }
        }
        .table > :not(:first-child){
            border-color: #EAEAEF;
            border-top-width: 1px;
        }
        .table > :not(caption) > * > * {
            padding: 1rem 1.5rem;
            border: 0;
            box-shadow: none;
        }
    }
    &__address{
        &-item{
            @media #{$sm, $xs}{
                margin-bottom: 40px;
            }
        }
        &-title{
            font-size: 22px;
            margin-bottom: 20px;
            font-family: var(--tp-ff-onest);

        }
        &-icon{
            & span{
                display: inline-block;
                min-width: 45px;
                margin-right: 20px;

                @media #{$xs}{
                    margin-bottom: 20px;
                }
                & svg{
                    width: 45px;

                    & path{
                        fill: var(--tp-common-black);
                    }
                }
            }
        }
        &-content{
            & p{
                font-size: 16px;
                margin-bottom: 10px;
                font-family: var(--tp-ff-onest);
                & span{
                    font-weight: 600;
                    margin-right: 7px;
                    color: var(--tp-common-black);
                }
            }
        }
    }
    &__notification{
        &-title{
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--tp-common-black);
            font-family: var(--tp-ff-onest);
        }
        & p{
            font-family: var(--tp-ff-onest);
        }
        &-item{
            .form-check-input{
                margin-top: 0;
                width: 40px;
                height: 20px;
                box-shadow: none;
            }
            .form-check-label{
                font-size: 16px;
                margin-left: 10px;
                color: var(--tp-common-black);
                font-family: var(--tp-ff-onest);
                &:hover{
                    cursor: pointer;
                    color: var(--tp-common-black);
                }
            }

            .form-check-input:checked {
                background-color: var(--tp-common-black);
                border-color: var(--tp-common-black);
                
            }
        }
    }
    &__btn{
        & .tp-btn{
            padding: 14px 39px;
            border: 1px solid #EAEAEF;
        }
        & .tp-btn-cart{
            font-size: 16px;
            font-weight: 500;
            height: 50px;
            line-height: 45px;
            padding: 0px 30px;
            transition: 0.3s;
            display: inline-block;
            text-align: center;
            border-radius: 8px;
            text-transform: capitalize;
            color: var(--tp-common-white);
            font-family: var(--tp-ff-onest);
            background-color: #4D3D30;
            border: 2px solid transparent;
            &:hover{
                border-color: #4D3D30;
                color: var(--tp-common-black);
                background-color: transparent;
            }
        }
    }
    &__main{
        &-inner{
            @media #{$xs}{
                margin-bottom: 20px;
            }
        }
        &-thumb{
            position: relative;
            & img{
                width: 80px;
                height: 80px;
                border-radius: 50%;
                margin-right: 16px;
                @media #{$xs}{
                    margin-bottom: 20px;
                }
            }
            &-edit{
                & input{
                    display: none;
                }
                & label{
                    position: absolute;
                    bottom: 2px;
                    right: 12px;
                    width: 25px;
                    height: 25px;
                    line-height: 25px;
                    text-align: center;
                    color: var(--tp-common-black);
                    background-color: #fff;
                    border-radius: 50%;
                    transition: .3s;
                    box-shadow: 0px 1px 2px rgba(25, 25, 26, 0.2);
                    & i{
                        margin-left: 2px;
                    }
                    &:hover{
                        cursor: pointer;
                        color: var(--tp-common-white);
                        background-color: #4d3d30;
                    }
                }
            }
        }
        &-title{
            font-size: 24px;
            margin-bottom: 0;
            font-family: var(--tp-ff-onest);
        }
        &-content{
            & p{
                font-size: 14px;
                margin-bottom: 0;
                font-family: var(--tp-ff-onest);
                & span{
                    color: var(--tp-common-black);
                    font-weight: 500;
                }
            }
        }
        &-info{
            &-item{
                text-align: center;
                padding: 27px 30px 25px;
                background-color: #F4F0EA;
                @media #{$sm, $xs}{
                    margin-bottom: 25px;
                }
                @media #{$lg}{
                    padding: 22px 0 20px;
                }
            }
            &-icon{
                position: relative;
                margin-bottom: 15px;
                & > span{
                    position: relative;
                    display: inline-block;
                    width: 60px;
                    height: 60px;
                    line-height: 60px;
                    text-align: center;
                    & svg{
                        width: 60px;
                        & path{
                            fill: var(--tp-common-black);
                        }
                    }
                }
                & .profile-icon-count{
                    position: absolute;
                    top: 2px;
                    right: -8px;
                    width: 26px;
                    height: 26px;
                    line-height: 21px;
                    border-radius: 50%;
                    font-size: 12px;
                    font-weight: 600;
                    border: 2px solid #fff;
                    color: var(--tp-common-white);
                    font-family: var(--tp-ff-onest);
                    background-color: #4d3d30;
                }
            }
            &-title{
                font-size: 18px;
                margin-bottom: 0;
                font-family: var(--tp-ff-onest);
            }
        }
    }
}
.tp-logout-btn{
    font-size: 14px;
    font-weight: 500;
    padding: 6px 18px;
    text-align: center;
    display: inline-block;
    color: var(--tp-common-black);
    font-family: var(--tp-ff-onest);
    border: 1px solid rgba(2, 6, 38, 0.12);
    &:hover{
        color: var(--tp-common-white);
        border-color: #4d3d30;
        background-color: #4d3d30;
    }
}

.tp-profile{
    &-input{
        &-wrapper{
            margin-bottom: 8px;
        }
        &-box{
            position: relative;
            margin-bottom: 30px;
        }
        & input{
            background: #F4F0EA;
            border: 1px solid transparent;
            font-size: 14px;
            color: var(--tp-common-black);
            @include tp-placeholder{
                color: #95999D;
            }
        }
        & textarea{
            height: 165px;
            resize: none;
        }
        &-title{
            & label{
                font-size: 16px;
                padding: 0 5px;
                line-height: 1;
                font-weight: 500;
                margin-bottom: 12px;
                display: inline-block;
                color: var(--tp-common-black);
            }
        }
        &-eye{
            top: 50%;
            right: 26px;
            position: absolute;
            @include tp-transform(translateY(-50%));

            & .open-eye{
                display: none;
            }

            & span{
                transition: .3s;
            }

            &:hover{
                cursor: pointer;

                & span{
                    color: var(--tp-common-black);
                }
            }
        }
    }
}