@use "../utils" as *;

/*----------------------------------------*/
/*  2.2 cursor
/*----------------------------------------*/

.rs-theme{
    $self : &;
    &-settings{
        &-area{
            position: fixed;
            top: 50%;
            right: 0px;
            width: 240px;
            background-color:var(--rs-white);
             transform:translateY(-50%) translateX(100%);
            z-index: 991;
            border-bottom-right-radius: 4px;
            box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.1);
            transition: all 0.4s 0s ease-out;
            &.settings-opened{
                 transform:translateY(-50%) translateX(0%);
                #{$self}{
                    &-settings-gear{
                        opacity: 0;
                    }
                    &-settings-close{
                        opacity: 1;
                    }
                }
            }
        }
        &-open{
            position: absolute;
            top: -1px;
            right: 100%;
            & button{
                background-color: var(--rs-white);
                border-inline-end: 0;
                width: 45px;
                height: 45px;
                text-align: center;
                font-size: 20px;
                color: var(--rs-black);
                position: relative;
                border-start-start-radius: 2px;
                border-bottom-left-radius: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.15);

            }
        }
        &-gear{
            display: inline-block;
            color: var(--rs-black);
            @at-root{
              @include keyframes(spin) {
                100% {
                  -webkit-transform: rotate(360deg);
                  transform: rotate(360deg);
                }
              }
            }
        }
        &-close{
            display: inline-block;
            position: absolute;
            top: 50%;
            inset-inline-start: 50%;
            @include transform(translate(-50%, -50%));
            opacity: 0;
            @include rtl{
                inset-inline-end: 50%;
                inset-inline-start: auto;
            }
        }
    }
    &-header{
        &-title{
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--rs-black);
        }
    }
    &-wrapper{
        padding: 20px 30px 30px;
    }
    &-toggle{
        text-align: center;
        &-main{
            display: inline-block;
            width: 160px;
            margin: auto;
            position: relative;
            z-index: 1;
            background-color: var(--rs-theme-primary);
            padding: 4px;
            border-radius: 20px;
  
        }
        &-light,
        &-dark{
            display: inline-block;
            width: calc(100% - 52%);
            height: 26px;
            line-height: 26px;
        }
        & input{
            display: none;
        }
        
        &:hover{
            cursor: pointer;
        }

        & label{
            color: var(--rs-white);
            font-size: 14px;
            font-weight: 500;
            &:hover{
                cursor: pointer;
            }
        }
        & #rs-theme-toggler{
            display: none;

            &:checked + i{
                inset-inline-end: calc(50% - 4px);
            }
        }
        &-slide{
            position: absolute;
            top: 50%;
            inset-inline-end: 4px;
            @include transform(translateY(-50%));
            width: calc(100% - 50%);
            height: 26px;
            background-color: var(--rs-black);
            border-radius: 30px;
            -webkit-transform: translate3d(0, 0);
            transform: translate3d(0, 0);
            transition : all, .2s, cubic-bezier(0.25, 1, 0.5, 1);
            z-index: -1;
   
        }

    }
    &-dir{
        text-align: center;
        &-main{
            display: inline-block;
            width: 160px;
            margin: auto;
            position: relative;
            z-index: 1;
            background-color: var(--rs-black);
            padding: 4px 0px 3px 0px;
            border-radius: 2px;
   
        }
        &-ltr,
        &-rtl{
            display: inline-block;
            width: calc(100% - 52%);
            height: 26px;
            line-height: 26px;
            // color: var(--rs-white);
        }
        & input{
            display: none;
        }
        
        &:hover{
            cursor: pointer;
        }

        & label{
            font-size: 14px;
            font-weight: 500;
            &:hover{
                cursor: pointer;
            }
        }
        & #rs-dir-toggler{
            display: none;

            &:checked + i{
                inset-inline-end: calc(50% - 4px);
                
            }
        }
        &-slide{
            position: absolute;
            top: 50%;
            inset-inline-end: 4px;
            @include transform(translateY(-50%));
            width: calc(100% - 50%);
            height: 25px;
            background-color: var(--rs-white);
            border-radius: 2px;
            -webkit-transform: translate3d(0, 0);
            transform: translate3d(0, 0);
            transition :all, .2s, cubic-bezier(0.25, 1, 0.5, 1);
            z-index: -1;
 
        }

    }
}




