$logo-section-padding-top: 20px;
$logo-section-padding-bottom: 20px;
$logo-section-height: 30px;

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

/* Track */
::-webkit-scrollbar-track {
    background: $body-bg;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: $gray-200;
    border-radius: 0.5rem;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: $gray-400;
}
  

:host {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #707070;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #F5F5F6;
    --bs-gray-200: #E4E5E6;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #D9DADB;
    --bs-gray-500: #9CA3AF;
    --bs-gray-600: #707070;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0284C7;
    --bs-secondary: #707070;
    --bs-success: #2ECC71;
    --bs-info: #0891b2;
    --bs-warning: #F39C12;
    --bs-danger: #ED1C24;
    --bs-light: #F5F5F6;
    --bs-dark: #343a40;
    --bs-primary-rgb: 2, 132, 199;
    --bs-secondary-rgb: 112, 112, 112;
    --bs-success-rgb: 46, 204, 113;
    --bs-info-rgb: 8, 145, 178;
    --bs-warning-rgb: 243, 156, 18;
    --bs-danger-rgb: 237, 28, 36;
    --bs-light-rgb: 245, 245, 246;
    --bs-dark-rgb: 52, 58, 64;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 44, 48, 52;
    --bs-body-bg-rgb: 239, 242, 245;
    --bs-font-sans-serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-root-font-size: 14px;
    --bs-body-font-family: Inter, sans-serif;
    --bs-body-font-size: 0.875rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #2C3034;
    --bs-body-bg: #EFF2F5;
    font-family: var(--bs-body-font-family);
}

:host {
    font-size: var(--bs-root-font-size);
}

@media (prefers-reduced-motion: no-preference) {
    :host {
        scroll-behavior: smooth;
    }
}
#main-container__inner {
    position: relative;
    line-height:  1.5; // this is needed inside shadow dom
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    //padding-bottom: 120px;

    
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}





.editor-interface {
    $parent: &;
    
    &__left {
        &__btn {
            background-color: rgba($theme-elegance-primary,0.1);
            color: $theme-elegance-primary;
        }

        
    }
    &__thumbnail {
        flex: 0 1 140px;
        max-width: 140px;
    }
    

    &__right {
        @include media-breakpoint-up(xl) {
            flex-basis: auto;
            flex-shrink: 0;
            width: 520px;
        }
        @include media-breakpoint-down(lg) {
            // height: calc(100vh -  150px);
            // overflow: auto;
        }
    }

    // &__options{
    //     margin-top: -110px;
    //     position: relative;
    //     z-index: 99;
    //     @include media-breakpoint-down(md) {
    //         margin-top: 0px;
    //     }
    // }

    &__btn {
        position: relative;
        
        &:before,&:after { 
            //content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            opacity: 0;
            transform: translate(-50%,-50%);
            width: 94px;
            height: 94px;
            border-radius: 100%;
            background-color: rgba($color: $theme-elegance-primary, $alpha: 0.08);
        }
            
        &:after {
            width: 160px;
            height: 160px;
        }

        &.clicked {
            &:before,&:after { 
                -webkit-animation: waves 1s linear infinite;
                animation: waves 1s linear infinite;
            }
        }
    }
    
   
        
    &__background__search {
        box-shadow: 0px 10px 20px #0000000A;
        padding-left: 40px;
    }

    &__scroll {
        &.bg-custom-gradient {
            background-image: linear-gradient(180deg, #EAE9F2 0%, #EAE9F200 165px);
            background-position: top left;
        }

        &.bg-custom-gradient-bottom {
            background-image: linear-gradient(180deg, #EAE9F2 0%, #EAE9F200 165px), linear-gradient(0deg, #EAE9F2 0%, #EAE9F200 165px);
            background-position: top left, bottom left;
            padding-bottom: 0;
        }
        
       
        @include media-breakpoint-down(lg) {
            padding: 15px 10px !important;
            height: calc(100vh - ($logo-section-height + $logo-section-padding-top + $logo-section-padding-bottom) - 160px);
            overflow-y: auto;
            overflow-x: hidden;
        }
       
    }

    &__color {
        
        width: 40px;
        height: 40px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border-radius: 6px !important;
        margin-right: 5px;
        @include media-breakpoint-down(lg) {
            width: 32px;
            height: 32px;
        }

        &#color-defaultColor-transparent {
            position: relative;
            &:before, &:after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                border-bottom: 1px solid red;
            }
            &:before {
                transform: rotate(-45deg);
            }
            &:after {
                transform: rotate(45deg);
            }
        }

       
        
    }

    &__remove {
        position: absolute;
        width: 16px;
        height: 16px;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1;
        background: red;
        color: white;
        border-radius: 100%;
        font-size: 12px;
        right: -1px;
        top: -5px;
        opacity: 0;
    }
    #{$parent}__hover__remove:hover #{$parent}__remove {
        opacity: 1;
    }

    //shapes

    &__shape {
        padding-top: 65%;
        position: relative;
        background-color: $body-bg;
        display: flex;
        border-radius: 10px;

        &__selected {
            border: 3px solid $primary;
            background-color: $white;
        }

        &__img {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 60%;
            height: 60%;
            object-fit: contain;
            //first the icon needs to be in black
        }
    }
}

.canvas-container {
    outline: 1px solid $primary;
}

.innerpopup-block {
    &__drag__handle {
        position: absolute;
        padding-bottom: 30px;
        top: 14px;
        left: 50%;
        transform: translate(-50%, 0);
    }

    &__drag__link {
        display: block;
        width: 60px;
        height: 2px;
        background-color: rgba($color: $primary, $alpha: 0.16);
    }

    @include media-breakpoint-down(lg) {
        position: fixed !important;
        bottom: 93px;
        padding: 50px 16px 16px;
        background-color: #fff !important;
        width: calc(100% - 28px);
        box-shadow: 0px -10px 20px #0000000F !important;
        border-radius: 30px 30px 10px 10px;
        left: 14px;
        z-index: 2;
        transition: transform 0.66s, visibility 0.66s;
        transform: translateY(100%);
        visibility: hidden;
        max-height: calc(100vh - 120px);
        overflow: auto;

        &.visibleonmobile {
            transform: translateY(0);
            visibility: visible;
        }
    }
}

@-webkit-keyframes waves {
    0% {
      transform: translate(-50%,-50%) scale(0);
      opacity: 0;
    }
    50% {
      transform: translate(-50%,-50%) scale(0.5);
      opacity: 1;
    }
    100% {
        transform: translate(-50%,-50%) scale(1);
        opacity: 0;
    }
}


.select-categories{
    select{
        cursor:pointer;
    }
    &:after{
        content:"\f078";
        position: absolute;
        top: 30%;
        right: 5%;
        font-family: "Font Awesome 6 Free";
        font-weight: 700;
    }
}

.cropper-view-box.rounded , .cropper-face.rounded, .cropper-preview.rounded{
    border-radius:100% !important;
}
#cropModal, #cropbgModal{
    
    .btn-danger{
        padding:0.6rem 0.8rem
    }
    .modal-content{
        border-radius:20px;
    }
    .block-content {
        border-radius:20px 20px 0px 0px;
    }
}
.image-upload-content {
    max-width: 84px;
    max-height: 84px;
    flex-shrink: 0;
    width: auto !important;
    height: 100% !important;
    img{
        max-height: 100%;
    }
}
.image-upload-name {
    text-wrap: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crop-init-element {
    max-width: 100%;
    max-height: 350px;
    img{
        max-width: 100%;
        height: auto;
    }
}

.edit_icon {
    background-color: orange;
    color: #fff;
    width: 22px;
    height: 22px;
    font-size: 10px;
    display: flex;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    i {
        padding-left: 1px;
    }
}

.inactiveblock{
    pointer-events: none; 
    opacity: 0.4;
}
.custom_dropdown {
    span {
        right: 10px; 
        top: 16px;
        color: green; 
        opacity: 0.5;
        display: none;
    }
} 


.hasProducts {  
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}




