body {
    font-family: 'Kanit', sans-serif !important;
    touch-action: pan-y;
}

main {
    font-family: 'Kanit', sans-serif !important;
}

button {
    font-family: 'Kanit', sans-serif !important;
}

.container {
    width: 100%;
}

.z-depth-1,
nav,
.card-panel,
.card,
.toast,
.btn,
.btn-large,
.btn-small,
.btn-floating,
.dropdown-content,
.collapsible,
.sidenav {
    box-shadow: 0px 2px 3px 2px #0000001A;
}

nav {
    background-color: white;
}

nav .brand-logo img {
    transition: opacity 0.2s ease;
}

nav .brand-logo:hover img {
    opacity: 0.85;
}

.icon-desktop {
    display: none;
}

.icon-mobile {
    display: inline-block;
    width: 24px;
}

nav .brand-logo {
    position: unset;
}

nav .sidenav-trigger {
    margin: 0 18px 0px 0px;
}

nav i,
nav [class^="mdi-"],
nav [class*="mdi-"],
nav i.material-icons-outlined {
    color: #475467;
    display: block;
    font-size: 24px;
    height: 56px;
    line-height: 56px;
}

.right {
    li {
        a {
            margin: 0px !important;

        }
    }
}



.active_noti {
    border-radius: 100%;
    position: absolute;
    margin-top: -43px;
    margin-left: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #D92D20;
}

@media (min-width: 601px) {
    .active_noti {
        margin-top: -54px;
    }

    nav .brand-logo {
        position: unset;
        transform: unset;
    }

    .icon-desktop {
        display: inline-block;
    }

    .icon-mobile {
        display: none;
    }

    nav,
    nav .nav-wrapper i,
    nav a.sidenav-trigger,
    nav a.sidenav-trigger i {
        height: 74px;
        line-height: 74px;
    }

}

@media (min-width: 992px) {
    nav .brand-logo {
        position: absolute;
    }

    .icon-desktop {

        display: inline-block;
    }

    .icon-mobile {
        display: none;
    }

    .sidenav.sidenav-fixed {
        width: 100%;
        left: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        position: relative;
        background-color: unset;
        border: unset;
        box-shadow: unset;
        margin-top: 1rem;
    }

    .sidenav li>a {
        color: #667085;
        height: 50px;
        line-height: 50px;
    }

    nav a.sidenav-trigger {
        display: block;
    }

    nav .brand-logo {
        position: relative;
    }

    nav {
        padding: 0 0rem;
        background-color: white;
    }

    nav .sidenav-trigger {
        margin-left: 0px;
    }

}

.active {
    color: #1570EF !important;
}

.header {
    font-size: 24px;
    padding-bottom: 1rem;
}

.btn,
.btn-large,
.btn-small {
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn {
    background: unset;
    color: #194185;
    border: 1px solid #D0D5DD;
    box-shadow: unset;
}

.btn:hover,
.btn-large:hover,
.btn-small:hover {
    background-color: unset;
}

.btn:focus,
.btn-large:focus,
.btn-small:focus,
.btn-floating:focus {
    background-color: unset;
}

.btn:not([disabled]):hover,
.btn-large:not([disabled]):hover,
.btn-small:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(16, 24, 40, 0.25);
}

.btn:not([disabled]):active,
.btn-large:not([disabled]):active,
.btn-small:not([disabled]):active {
    transform: scale(0.98);
}

.btn-large .progress {
    position: absolute;
    height: 4px;
    display: block;
    width: 100%;
    background-color: unset;
    border-radius: 2px;
    overflow: hidden;
    margin-top: -2px;
    left: 0;
}

@media (min-width: 601px) {
    .container {
        width: 100%;
    }

}

nav ul a {
    padding: 0 10px;
}

.sub-link {
    position: relative;
    color: #1D2939;
    font-size: 16px;
    font-weight: 400;
    margin-left: 1rem;
    vertical-align: top;
}

.sub-link span {
    position: relative;
}

.sub-link span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #1570EF;
    transition: width 0.25s ease;
}

.sub-link:hover span::after {
    width: 100%;
}

nav .right li .btn.modal-trigger,
nav .right li a.btn {
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

nav .right li a.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(25, 65, 133, 0.45);
}

@keyframes fadeInUp_animetions {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp_navbar {
    animation: fadeInUp_animetions 0.5s ease forwards;
}



.bell-icon {
    animation: rotate-bell 1s infinite;
}

@keyframes rotate-bell {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}





@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat_notify {


    position: relative;
    display: none;

    .box_positon {
        display: flex;
        justify-content: flex-end;

        .btn.waves-effect.w-100.chat-toggle-btn {
            color: white;
            width: auto;
            background: #194185 !important;
            display: flex;
            gap: 10px;
            bottom: 20px;
            right: 24px;
            position: fixed;
            z-index: 1000;
            box-shadow: 0 10px 24px -8px rgba(25, 65, 133, 0.55);
        }
    }

    .box_chat {
        display: none;
        background-color: #fff;
        max-width: 775px;
        height: 600px;
        max-height: calc(100vh - 32px);
        bottom: 0;
        right: 24px;
        position: fixed;
        box-shadow: 0 24px 48px -16px rgba(16, 24, 40, 0.28);
        z-index: 1000;
        width: 100%;
        border-radius: 16px 16px 0 0;
        overflow: hidden;

        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 57px;
            box-sizing: border-box;
            border-bottom: 1px solid #EAECF0;
            padding: 16px;

            h5 {
                color: #1D2939;
                font-size: 16px;
                font-weight: 500;
                margin: 0px;


            }

            i {
                cursor: pointer;
                font-size: 16px;
                border-radius: 100%;
                transition: background-color 0.2s ease, color 0.2s ease;
            }

            i:hover {
                background: #F2F4F7;
                color: #194185;
            }
        }

        .body {
            display: flex;
            flex-wrap: nowrap;
            height: calc(100% - 57px);

            .box-r {
                flex: 1;
                padding: 16px 8px;
                height: 100%;
                overflow-y: auto;
                border-right: 1px solid #EAECF0;
                box-shadow: none;

                .search {
                    position: relative;
                    width: 100%;

                    i {
                        position: absolute;
                        left: 10px;
                        top: 42%;
                        transform: translateY(-50%);
                        color: #667085;
                        font-size: 20px;
                    }

                    input {
                        padding-left: 40px;
                        width: 100%;
                        box-sizing: border-box;
                        border: 1px solid #D0D5DD;
                        border-radius: 999px;
                        height: 40px;
                        font-size: 16px;
                        transition: border-color 0.2s ease, box-shadow 0.2s ease;
                    }

                    input:focus {
                        border-color: #1570EF;
                        box-shadow: 0 0 0 3px #1570EF1a;
                        outline: none;
                    }
                }

                .chat_userinfo {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 8px;
                    border-radius: 10px;
                    cursor: pointer;
                    transition: background-color 0.2s ease;

                    .info {
                        display: flex;
                        align-items: center;
                        gap: 10px;

                        a {
                            background: #D0D5DD;

                            i {
                                color: #475467;
                            }
                        }

                        .detail {
                            display: flex;
                            flex-direction: column;

                            p {
                                color: #1D2939;
                                font-weight: 400;
                                margin: 0;
                            }

                            span {
                                color: #98A2B3;
                                font-weight: 300;
                            }
                        }
                    }

                    .time {
                        span {
                            color: #98A2B3;
                            font-weight: 300;
                        }
                    }
                }

                .chat_userinfo:hover {
                    background: #EFF8FF;
                }

                .active {
                    background: #EFF8FF;
                }
            }


            .box-l {
                flex: 2;
                padding: 1px;
                height: 100%;
                display: flex;
                flex-direction: column;

                .header_chat_shop {
                    padding: 10px;
                    font-size: 16px;
                    font-weight: 500;
                    color: #1D2939;
                    border-bottom: 1px solid #EAECF0;
                    display: flex;
                    align-items: center;
                    flex-shrink: 0;
                }

                .chat-container {
                    margin: auto;
                    background: #fff;
                    padding: 10px;
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    min-height: 0;
                }

                .messages {
                    flex: 1;
                    overflow-y: auto;
                    padding-bottom: 10px;
                    overflow-x: hidden;
                    scrollbar-width: none;
                    -ms-overflow-style: none;
                }

                .message {
                    display: flex;
                    margin-bottom: 15px;
                    position: relative;
                }

                .incoming {
                    justify-content: flex-start;
                }

                .outgoing {
                    justify-content: flex-end;
                }

                .bubble {
                    padding: 10px 15px;
                    border-radius: 15px;
                    position: relative;
                    animation: fadeInUp 0.5s ease forwards;
                }

                .bubble-item {
                    position: relative;
                    animation: fadeInUp 0.5s ease forwards;
                    padding: 12px 15px;
                    border: 1px solid #EAECF0;
                    border-radius: 12px;
                    box-shadow: 0 4px 10px -6px rgba(16, 24, 40, 0.2);
                    max-width: 320px;

                    .body-item {
                        display: flex;
                        gap: 10px;

                        .box-image {
                            flex: 1;

                            img {
                                width: 100%;
                                aspect-ratio: 1 / 1;
                                object-fit: cover;
                                border-radius: 8px;
                            }
                        }

                        .box-details {
                            display: flex;
                            flex-direction: column;
                            flex: 5;

                            .header-box {
                                color: #1D2939;
                                font-size: 14px;
                                font-weight: 300;
                            }

                            .picre-box {
                                color: #475467;
                                font-weight: 300;
                            }
                        }
                    }

                    .body-payment {
                        .header-box {
                            color: #101828;
                            font-size: 12px;
                            font-weight: 400;
                        }

                        .box-payment {
                            background-color: #F2F4F7;
                            border-radius: 10px;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 5px;
                            padding: 10px 0px;

                            div:nth-child(1) {
                                color: #667085;
                                font-size: 14px;
                                font-weight: 300;
                            }

                            div:nth-child(2) {
                                color: #101828;
                                font-size: 16px;
                                font-weight: 400;
                            }

                            div:nth-child(3) {
                                color: #667085;
                                font-size: 14px;
                                font-weight: 300;
                            }
                        }
                    }

                    .body-button {
                        display: flex;
                        flex-direction: row;
                        gap: 10px;
                        margin-top: 10px;

                        a {
                            flex: 1;
                        }
                    }
                }

                .incoming .bubble {
                    background-color: #f1f1f1;
                    color: #1D2939;
                    font-weight: 400;
                    font-size: 16px;
                    margin-bottom: 5px;
                    float: left;

                    img {
                        width: 100%;
                    }
                }

                .outgoing .bubble {
                    background-color: #CCFBEF;
                    color: #1D2939;
                    font-weight: 400;
                    font-size: 16px;
                    float: right;
                }

                .timestamp {
                    /* font-size: 0.75em;
                        color: #888; */
                }

                .input-area {
                    display: flex;
                    border-top: 1px solid #EAECF0;
                    padding: 10px;
                    align-items: center;
                    flex-shrink: 0;

                    input {
                        flex: 1;
                        padding: 10px 16px;
                        border: 1px solid #D0D5DD;
                        border-radius: 999px;
                        margin: 0;
                        margin-right: 8px;
                        height: unset;
                        transition: border-color 0.2s ease, box-shadow 0.2s ease;
                    }

                    input:focus {
                        border-color: #1570EF;
                        box-shadow: 0 0 0 3px #1570EF1a;
                        outline: none;
                    }

                    button {
                        padding: 10px;
                        width: 40px;
                        height: 40px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background-color: #194185;
                        color: white;
                        border: none;
                        border-radius: 100%;
                        cursor: pointer;
                        transition: transform 0.15s ease, background-color 0.2s ease;
                    }

                    button:hover {
                        transform: translateY(-1px) scale(1.05);
                    }
                }

                .sender-info {
                    font-size: 0.85em;
                    color: #555;
                    display: flex;
                    justify-content: flex-end;
                    margin-bottom: 5px;
                    gap: 15px;
                }

            }

        }

        @media (max-width: 601px) {
            .body {
                display: block;

                .box-r {
                    .search {
                        max-width: unset;
                    }
                }

                .box-l {}
            }


        }

    }

}