//Modal
.fbPopupModal-opened {
    overflow: hidden;
    .fb_popup_modal {
        &.open {
            overflow-x: hidden;
            overflow-y: auto;
        }
    }
}

.fb_popup_modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.fb_modal_wrap {
    position: relative;
    width: auto;
    margin: 0.5rem;

    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    @include customMin(1199) {
        width: 1140px;
    }
    @include customMin(1300) {
        width: 1200px;
    }
    .fb_modal_inner {
        background-color: #fff;
        position: relative;
        box-shadow: 5px 5px 60px rgba($color: #000000, $alpha: 0.1);
        border-radius: 10px;
        min-height: 250px;
    }
}

@include customMin(576) {
    .fb_modal_wrap {
        margin: 50px auto;
        min-height: calc(100% - (50px * 2));
    }
}

.fb_modal_wrap {
    &:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
    }
    .fb_modal {
        width: 100%;
        padding: 20px;
    }

    .fb_close_modal {
        width: 35px;
        height: 35px;
        background: #ff0000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        position: absolute;
        right: -15px;
        top: -15px;
        cursor: pointer;
    }
}

.fb_modal_content {
    .fb_modal_title {
        padding: 20px;
        box-shadow: 5px 5px 90px rgba(0, 0, 0, 0.05);
        h3 {
            font-size: 24px;
        }
    }
    .status-button-area {
        margin: 20px 0 40px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        span {
            padding: 5px 10px;
            color: #fff;
            border-radius: 4px;
            margin: 0px 8px 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            background-color: #111111;
            white-space: wrap;
            @extend %trans3;
            &:hover {
                background-color: $c1;
            }
            &.order-cancel {
                background: $red;
            }
        }
        .status-active {
            position: relative;
            background-color: $c1;
        }
        .status-active:before {
            content: "✔";
            position: absolute;
            top: -10px;
            right: -10px;
            background: $red;
            padding: 2px;
            border-radius: 14px;
            width: 21px;
            height: 21px;
            text-align: center;
        }
    }
    .fb_modal_content_inner {
        padding: 50px;
        h4 {
            font-size: 18px;
            margin-bottom: 10px;
        }
        > h4 {
            text-align: center;
        }
    }

    .order-transfer,
    .delivery-boy {
        margin-bottom: 30px;
    }
    .fb_order_table {
        table {
            margin: 0;
            font-size: 14px;
            th,
            td {
                padding: 10px 18px;
            }
            td {
                color: $heading-color;

                font-weight: 500;
            }
            ul {
                padding: 0;
                margin: 0;
                list-style: none;
                li {
                    margin: 0;
                    &:not(:last-child) {
                        margin-bottom: 10px;
                    }
                    .meta-title {
                        color: #777777;
                    }
                    &::before {
                        content: "✔  ";
                    }
                }
            }
            > tbody > tr:nth-of-type(odd) {
                background-color: #f9f9f9;
            }
        }
    }
    .kitchen-change-tracking {
        margin-top: 40px;
    }
}

.fb--modal-inner {
    display: block;
    width: 100%;
    overflow-x: scroll;
}
