.select2-container .select2-search--inline .select2-search__field{
    height: 25px !important;
} 
@import '~bootstrap/dist/css/bootstrap';
@import '~font-awesome/scss/font-awesome';
@import '~animate.css/animate';
@import '~slick-carousel/slick/slick.scss';
@import '~slick-carousel/slick/slick-theme.scss';
@import '~slick-lightbox/dist/slick-lightbox.css';
@import '~nouislider/distribute/nouislider';
@import 'variables';
@import 'themify';
@import 'reset';
@import 'slick';
@import 'top-nav';
@import 'header';
@import 'mega-menu';
@import 'breadcrumb';
@import 'slider';
@import 'banner';
@import 'features';
@import 'scroll-top';
@import 'modal';
@import 'tab-ebook';
@import 'grid-ebook';
@import 'ebook-details';
@import 'ebook';
@import '404';
@import 'login';
@import 'reset-password';
@import 'register';
@import 'contact';
@import 'account';
@import 'dashboard';
@import 'ebook-list';
@import 'confirmation';
@import 'footer';
@import 'cookie';
@import 'utilities';
@import 'category-tab';
@import 'button-loading';
@import 'selectize';
@import '~select2/dist/css/select2';
@import 'author';
@import 'newsletter';
@import 'subscribe';

html {
    direction: ltr;
    min-width: 320px;
}

body {
    font-family: $font-opensans;
    font-size: 16px;
    overflow-x: hidden;
}

.main {
    position: relative;
    overflow-x: hidden;
}

.wrapper {
    position: relative;
    transition: 200ms ease-in-out;

    @include themify {
        color: themed('black');
    }

    .sidebar {
        width: 250px;
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        overflow-y: scroll;
        transition: 200ms ease-in-out;
    }

    &.offcanvas {
        margin: 0 -250px 0 250px;
    }

    &.offcanvas .sidebar {
        left: 0;
    }

    &.offcanvas .header-inner {
        &.sticky {
            left: 250px;
        }
    }
}

.content-wrapper {
    padding-bottom: 50px;
}

.header-wrapper + .content-wrapper {
    margin-top: 20px;
}

.autocomplete-suggestions {
    top: 103px !important;
    max-height: none !important;
    background: #ffffff;
    padding-bottom: 10px;
    border-radius: 0 0 $radius-default $radius-default;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);

    &.sticky {
        position: fixed !important;
        top: 60px !important;
    }

    .autocomplete-suggestion {
        padding: 4px 10px;
        cursor: pointer;

        &.autocomplete-selected {
            background: #f1f3f7;
        }
    }

    &.mobile-search-suggestions {
        left: 6px !important;
        top: 50px !important;

        &.sticky {
            left: 6px !important;
            top: 50px !important;
        }
    }
}

.rtl {
    .slimScrollBar {
        left: auto !important;
        right: 1px;
    }
}

.captcha-input {
    padding: 6px 12px;
}

.cookie-wrapper {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    background: #262938;
    box-shadow: 0 1px 4px 2px rgba(0, 0, 0, 0.4);
    z-index: 1000;

    .cookie {
        display: flex;
        padding: 15px 0;
        align-items: center;
    }

    .cookie-text {
        flex-grow: 1;
        color: #c2c2c2;

        > span {
            margin-right: 20px;
        }
    }

    .cookie-button {
        flex-grow: 0;
    }

    .btn-cookie {
        padding: 6px 20px;
    }
}
.theme-black .my-account .sidebar-menu li.active a{
    opacity: 0.6;
}
.right-actions-overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  cursor: pointer;
}
.right-actions {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	right: -400px;
	width: 400px;
	height: max-content;
	display: block;
	background: #ffffff;
	transition: all .3s;
	z-index: 9999;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	transition: all .5s;
}
.right-actions.full-width{
    right: -95%;
	width: 95%;
}
.right-actions.open {
	right: 0px !important;
}

.right-actions .action-toggle {
    position: absolute;
	width: 45px;
	height: 45px;
	
	top: 50%;
	left: -45px;
	transform: translateY(-50%);
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	cursor: pointer;
	color: #ffffff;
	box-shadow: -5px 5px 20px rgba(69, 65, 78, 0.21);
    padding: 10px;
    
    @include themify {
        background: themed('primary-darken');
    }
}
.right-actions.open .action-toggle{
    display: flex;
}
.right-actions .action-toggle i {
	font-size: 20px;
	
}

.right-actions .title{
    padding: 15px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    border-top-left-radius: 5px;
    border-bottom: 1px solid #ebedf2;
    
    @include themify {
        background: themed('primary-darken');
    }
    
}

.right-actions .action-content{
	padding: 20px 15px;
	max-height: calc(100vh - 90px);
	overflow: auto;
}
@media screen and (max-width: $md) {
    .cookie-wrapper {
        .cookie {
            display: block;
            padding: 20px 0;
        }

        .cookie-text {
            text-align: center;
            flex-grow: 0;

            > span {
                margin-right: 0;
            }
        }

        .btn-cookie {
            display: table;
            margin: 15px auto 0;
        }
    }
}

@media screen and (max-width: $sm) {
    .content-wrapper {
        > .container {
            > .col-lg-9.col-lg-offset-3 ~ .alert{
                margin: 15px 0 5px;
            }
        }
    }
    .right-actions.full-width{
        right: -90%;
        width: 90%;
    }
}
