.notificationWindow {
    width: 300px;
    background: #fff;
    border: 2px solid #676767;
    position: absolute;
    top: 58px;
    left: -40px;
    text-align: left;
    display: none;
    height: 330px;
    .notifications-wrapper {
        padding: 20px 15px;
        overflow-y: auto;
        height: 100%;
    }
    &::before {
        content: " ";
        background: url(../../../img/notificationBefore.svg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        top: -19px;
        left: 45%;
        height: 30px;
        width: 30px;
    }

    .singleNotification {
        padding: 5%;
        a {
            &:hover {
                text-decoration: none;
            }
        }
        &:hover {
            cursor: pointer;
            box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.2);
        }
    }

    h3 {
        font-size: 2rem;
        color: $green;
        @include boldFont();
    }

    hr {
        border-color: #707070;
    }

    p {
        font-size: 2rem;
        color: $black;
        margin: 0;
    }
}

nav {
    .top-menu {
        .userInfo {
            height: 92px;
            background: #fff;
            width: 200px;
            position: absolute;
            bottom: -120px;
            right: 0;
            padding: 15px 20px;
            border: 2px solid #676767;
            border-radius: 20px;
            display: none;

            &::before {
                content: " ";
                background: url(../../../img/notificationBefore.svg);
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                position: absolute;
                top: -19px;
                left: 75%;
                height: 30px;
                width: 30px;
            }

            ul {
                float: none;
                text-align: left;
                padding-left: 0;

                li {
                    display: list-item;
                    list-style: none;
                    line-height: 2;

                    a {
                        color: $green;
                        font-size: 1.6rem;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }
}

// Fav Modal
.modal.right {
    .modal-dialog {
        position: fixed;
        margin: auto;
        width: 320px;
        height: 100%;
        -webkit-transform: translate3d(0%, 0, 0);
        -ms-transform: translate3d(0%, 0, 0);
        -o-transform: translate3d(0%, 0, 0);
        transform: translate3d(0%, 0, 0);
        right: -320px;
        -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
        -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
        -o-transition: opacity 0.3s linear, right 0.3s ease-out;
        transition: opacity 0.3s linear, right 0.3s ease-out;
    }

    .modal-content {
        height: 90%;
        background-color: transparent;
        border: none;

        .modal-header {
            border-top-left-radius: 20px;
            background: #276462;
            color: #fff;
            height: 65px;
            position: relative;
            top: 0;
            left: 0;
            padding: 6% 0;

            ul {
                list-style: none;
                width: 100%;
                height: 100%;
                margin: 0;
                display: flex;
                align-items: flex-end;

                li {
                    display: inline-block;

                    img {
                        height: 25px;
                        width: 25px;
                    }

                    &:nth-of-type(1) {
                        border-right: 2px solid #fff;
                        padding-right: 20px;
                        margin-right: 20px;
                    }

                    h4 {
                        @include boldFont();
                        font-size: 2rem;
                        margin: 0;
                    }
                }
            }

            .close {
                opacity: 1;
                position: absolute;
                top: 40%;
                left: -50px;
            }
        }
    }

    .modal-body {
        padding: 15px;
        background: $lightGray;
        border-bottom-left-radius: 20px;

        .seeMore {
            font-size: 1.4rem;
            @include boldFont();
            text-decoration: underline;
            text-transform: uppercase;
            color: $black;
        }
    }
}

.modal-card {
    @include borderCard(#fff);
    width: 100%;
    margin-bottom: 10px;
    position: relative;

    &::before {
        content: " ";
        background: url("../../../img/modalCardBorder.svg") center no-repeat;
        background-size: cover;
        position: absolute;
        top: 0;
        right: 0;
        height: 50px;
        width: 50px;
    }

    img {
        width: 153px;
    }

    h4 {
        color: $green;
        @include boldFont();
        font-size: 1.7rem;
        text-align: left;
        margin-bottom: 10px;
    }

    a {
        &.cardLink {
            color: $green;
            display: block;
            font-size: 1.4rem;
            @include boldFont();
            margin-bottom: 20px;
            text-decoration: underline;
        }

        &.removeFavCard {
            position: absolute;
            right: 1px;
            top: 1px;
            width: 30px;
            height: 30px;

            img {
                height: 15px;
                width: 15px;
                margin-top: 7px;
                margin-left: 8px;
            }
        }
        &.do-btn {
            color: #fff;
            background: $green;
            padding: 15px 30px;
            border: none;
            border-radius: 10px;
            width: 100%;
            text-transform: uppercase;
            font-size: 1.5rem;
            &:hover {
                text-decoration: none;
                cursor: pointer;
            }
        }
    }

    button {
        color: #fff;
        background: $green;
        padding: 15px 30px;
        border: none;
        border-radius: 10px;
        width: 100%;
        text-transform: uppercase;
        font-size: 1.5rem;
    }
}

#addCompany,
#addUser,
#deleteModal,
#draftOrders,
#refundModal {
    .modal-content {
        border-radius: 20px;

        .modal-header {
            h5 {
                font-size: 2rem;
                @include boldFont();
                color: $green;
                margin-left: 15px;
            }

            .close {
                span {
                    font-size: 3rem;
                }
            }
        }

        .modal-body {
            .card-header {
                font-size: 1.6rem;
            }
            #exampleFormControlSelect1 {
                background: #fff;
                background-color: #fff;
            }
            .form-check-label {
                font-size: 1.6rem;
            }
            .form-check-input {
                position: relative;
            }
            .select2 {
                .select2-selection__choice {
                    font-size: 1.6rem;
                }
                .select2-selection {
                    &.select2-selection--single {
                        height: 50px;
                        border-radius: 25px;
                        .select2-selection__rendered {
                            line-height: 50px;
                            font-size: 1.5rem;
                        }
                        .select2-selection__arrow {
                            top: 13px;
                        }
                    }
                }
            }

            input:not(.do-input):not(.select2-search__field),
            select:not(.do-permissions) {
                width: 100%;
                margin: 0 auto;
                border: 1px solid $lightGray;
                font-size: 1.5rem;
                height: 50px;
                padding: 5px 20px;
                border-radius: 20px;
                margin-bottom: 20px;

                &:focus {
                    outline: none;
                }

                option {
                    font-size: 1.5rem;
                }
            }

            input[type="file"] {
                margin-bottom: 0;
                margin-top: 25px;
            }

            button {
                display: block;
                border-radius: 20px;
                background: $green;
                color: #fff;
                border: 1px solid $green;
                width: fit-content;
                padding: 0 20px;
                height: 40px;
                font-size: 1.6rem;
                margin: 10% auto 15px auto;

                &:focus {
                    outline: none;
                }

                &:hover {
                    background: $hoverGreen;
                }
            }

            .custom-file-label {
                height: 50px;
                font-size: 2rem;
                line-height: 4rem;
                border-radius: 20px;

                &::after {
                    opacity: 0;
                }
            }
        }
    }
}

#refundModal{
    .modal-content {
        label{
            font-size: 1.5rem;
        }
        .modal-header{
            .modal-title{
                color: $green;
                font-weight: 700;
            }
            button{
                &.close{
                    opacity: 1;
                    span{
                        img{
                            width: 18px;
                            height: 18px;
                        }
                    }
                }
            }
        } 
    }
}
#addPromo {
    .modal-content .modal-header button.close span img {
        width: 18px;
        height: 18px;
    }
    .select2-selection.select2-selection--single {
        min-height: 44px;
        @include borderRadius(20px);
    }
    .form-control:disabled,
    .form-control[readonly],
    .select2-container--default.select2-container--disabled
        .select2-selection--single,
    .select2-container--default.select2-container--disabled
        .select2-selection--multiple {
        background-color: #fff;
        opacity: 0.6;
    }
    #addPromo .form-control.datePicker:disabled {
        padding: 0;
        background: none;
    }
    ul.select2-selection__rendered {
        width: fit-content;
        margin: 0 auto;
        li.select2-selection__choice {
            font-size: 2rem;
        }
    }
    .select2-selection__placeholder {
        font-size: 1.6rem;
    }
    .select2-container--default
        .select2-selection--single
        .select2-selection__arrow
        b {
        border-color: #6caaa8 transparent transparent transparent;
        border-style: solid;
        border-width: 10px 10px 0 10px;
        height: 0;
        left: -1%;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
    }
    .modal-header {
        border-bottom: unset;
        padding: 0;
    }
    .modal-dialog {
        max-width: 70%;
    }

    .modal-content {
        @include borderRadius(70px);

        padding: 5rem;
    }

    button.close {
        position: absolute;
        right: 5%;
        color: #2b2b2b;
        opacity: 1;
        z-index: 999;
        &:hover {
            opacity: 0.8;
        }

        span {
            font-size: 2rem;
            text-transform: uppercase;
            color: #2b2b2b;
            opacity: 1;
            position: relative;
            padding-right: 40px;

            span.close {
                /* font-size: 3.5rem; */
                opacity: 1;
                position: absolute;
                top: 4px;
                right: -30px;
                /* transform: translate(0,-50%); */
                padding: 0;
                width: 18px;
                height: 18px;
                margin: 0;
                img {
                    width: 100%;
                }
            }
        }
    }

    h2 {
        &.modal-title {
            color: #000;
            font-size: 2rem;
            font-family: "IstokWebBold", sans-serif;
            font-weight: 700;
            position: relative;
            width: fit-content;
            margin: 0 auto 60px auto;
            padding-left: 30px;

            i {
                position: absolute;
                /* margin-top: 0; */
                margin: 0;
                margin-top: 0;
                margin-bottom: 0;
                margin-left: 0;
                margin-right: 0;
                padding: 0;
                width: 4rem;
                height: 4rem;
                transform: translate(-50%, -50%);
                -moz-transform: translate(-50%, -50%);
                -webkit-transform: translate(-50%, -50%);
                top: 50%;
                left: 0px;
                &::before {
                    width: 4rem;
                    height: 4rem;
                }
            }
        }
    }

    .select2-selection__rendered {
        font-size: 1.6rem;
    }
    .select2-search.select2-search--inline {
        font-size: 1.6rem;
    }

    form {
        .inputWrapper {
            text-align: right;
            // margin-bottom: 35px;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            width: 100%;

            label {
                font-size: 1.6rem;
                display: flex;
                flex-direction: column;
                /* flex-basis: 85%; */
                flex: 0 0 auto;
                margin-left: 1.6rem;
            }

            input {
                margin-left: 1.6rem;
                position: relative;
                top: -5px;
                font-size: 1.6rem;
                @include boldFont();
                text-align: center;
                border: 1px solid $gray;
                border-width: 0 0 1px 0;
                border-radius: 0;
                display: flex;
                flex-direction: column;
                flex-basis: 100%;
                flex: 1;
            }
        }

        h4 {
            color: $green;
            font-size: 2rem;
            margin-top: 35px;

            @include boldFont();
        }

        .selectWrapper {
            label {
                font-size: 1.6rem;
                text-align: left;
            }

            .multipleSelections {
                margin: 0 auto;
                @include borderRadius(20px);
                min-height: 44px;
            }

            .select2-container--default
                .select2-selection--single
                .select2-selection__arrow {
                top: 10px;
            }
            .select2-container--default .select2-selection--single {
                border: 1px solid $gray;
            }
            .select2-container--default
                .select2-selection--single
                .select2-selection__rendered {
                line-height: 44px;
            }

            select {
                width: 80%;

                .select2-container {
                    width: 80%;
                }

                border: 1px solid #676767;
                @include borderRadius(20px);
                padding-bottom: 5px;
                padding-right: 5px;
                min-height: 44px;
                font-size: 2rem;

                option {
                    font-size: 1.5rem;
                }
            }

            .select2-container--default .select2-selection--multiple {
                border: 1px solid #676767;
                @include borderRadius(20px);
                padding-bottom: 5px;
                padding-right: 5px;
                min-height: 44px;

                .select2-selection__choice__display {
                    font-size: 2rem;
                }
            }
        }

        .promoDates {
            h5 {
                font-size: 2rem;
                @include boldFont();
                color: #676767;
                margin-bottom: 35px;
            }

            label {
                font-size: 1.6rem;
                color: $black;
            }

            input {
                @include borderRadius(20px);
                border: 1px solid $gray;
                font-size: 2rem;
                color: $gray;
                background: url("../../img/icons/calendar.svg");
                @include bg-props(20px, 4%, no-repeat);
                top: 0;
                padding: 0 20px 0 30px;
            }
            #start_date,
            #end_date {
                color: #000;
                font-family: IstokWeb, sans-serif !important;
                font-weight: 400 !important;
            }
            .promo {
                i {
                    position: absolute;

                    &::before {
                        width: 20px;
                        height: 20px;
                    }

                    &.ci-calendar {
                        top: 10px;
                        left: 25px;
                    }

                    &.ci-polyDown {
                        top: 10px;
                        right: 56px;
                    }
                }
            }
        }
    }

    button {
        &#editSaldoVal {
            color: #fff;
            @include borderRadius(20px);
            padding: 5px 35px;
            font-size: 1.3rem;
            @include boldFont();
            margin: 0 auto;
        }
    }
}
#promoCart {
    .modal-dialog {
        max-width: 50%;
    }

    .modal-content {
        border-radius: 20px;
        padding: 30px 10px;
    }

    .modal-header {
        display: block;
        text-align: center;
        border-bottom: none;

        h5,
        h4,
        p {
            display: block;
        }

        h5 {
            color: $green;
            font-size: 2.2rem;
            text-transform: uppercase;
            @include boldFont();
            clear: right;
        }

        h4 {
            color: $black;
            font-size: 3rem;
            margin-bottom: 22px;
            @include boldFont();
        }

        p {
            font-size: 2.6rem;
            color: $black;
            margin-bottom: 35px;
        }
    }

    .modal-body {
        .choice-container {
            padding: 35px;
            border: 3px solid #ededed;
            width: 95%;
            margin: 0 auto;
            text-align: center;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);

            &.active {
                border: 3px solid $green;
            }

            h4 {
                color: $green;
                @include boldFont();
                font-size: 3.6rem;
            }

            .img-wrapper {
                width: 190px;
                margin: 0 auto;

                img {
                    width: 100%;
                }
            }

            h5 {
                @include boldFont();
                color: $black;
                font-size: 2rem;
                line-height: 4rem;
            }

            a {
                color: $green;
                @include boldFont();
                font-size: 1.4rem;
            }
        }

        .btns {
            width: 100%;
            margin-top: 30px;

            h5 {
                font-size: 1.4rem;
                @include boldFont();
                margin-bottom: 30px;
            }

            a {
                padding: 15px 25px;
                border-radius: 20px;
                color: #fff;
                text-transform: uppercase;
                @include boldFont();
                font-size: 1.3rem;
            }

            .fr {
                text-align: right;

                h5 {
                    color: #676767;
                }

                a {
                    background: #676767;
                }
            }

            .fl {
                text-align: left;

                h5 {
                    color: $green;
                }

                a {
                    background: $green;
                }
            }
        }
    }
}

@media (max-width: 1440px) {
    // .notificationWindow {
    // left: 11%;
    // }

    .modal {
        &.right {
            .modal-body {
                overflow-y: scroll;
            }
        }
    }
}
@media (max-width: 1196px) {
    .notificationWindow {
        left: -72px;
    }
}
// @media (max-width: 1120px) {
// .notificationWindow {
// left: unset;
// right: 19%;
// }
// }
@media (max-width: 1024px) {
    #addPromo {
        .modal-dialog {
            max-width: 80%;
            form {
                .dateInputCustoms {
                    flex: 0 0 100%;
                    max-width: 100%;
                    label {
                        text-align: center !important;
                    }
                }
            }
        }
    }
}
@media (max-width: 768px) {
    .notificationWindow {
        right: 7%;
    }

    #promoCart {
        .modal-dialog {
            max-width: 80%;
        }

        .modal-body {
            .btns {
                margin-left: 0;

                .fr {
                    margin-bottom: 30px;
                }

                .fr,
                .fl {
                    text-align: center;
                }
            }
        }
    }
}
