:root{
    --tabbar_custom_height: 58px;
    --toolbar_custom_height: 90px;
    --theme_custom_1_color: #fdf9e4;    /* used in toolbar, page__background, dropdown, custom checkbox and radio, option-wrapper */
    --theme_custom_2_color: #ffe3b4;    /* used in box-2-container */
    --theme_custom_3_color: #c5e0b4;    /* used in account_page, profile_page */
    --theme_custom_4_color: #009c00;    /* used in btn-theme */
    --theme_custom_5_color: #007908;    /* used in btn-theme */
    --theme_custom_6_color: #c9ffc9;    /* used in open-container */
    --theme_custom_7_color: #1d9e26;    /* used in open-container */
    --theme_custom_8_color: #ffc9c9;    /* used in close-container */
    --theme_custom_9_color: #9e1d1d;    /* used in close-container */
    --theme_custom_10_color: #83dc7d;   /* used in order_page */
    --theme_custom_11_color: #daed4f;   /* used in box-4-container */
    --theme_disable_color: #c1c1c1;     
    --theme_text_color: 0, 177, 0;
    --theme_grey_color: #cfcfcf;
    --theme_white_color: white;
    --theme_black_color: black;
    --theme_transparent_color: rgb(0 0 0 / 5%);
}

html {
    scrollbar-width: none;
    scrollbar-height: none;
    overflow:hidden !important;
}

body{
    background:url(../image/background/bg-1.jpg);
}

.loading-img {
    height: 300px;
    background:transparent url(../image/loading.gif) center center no-repeat;
    background-size: 150px 100px;
}

.toolbar_icon {
    color: black;
}

/* general use class */
.fs-10px{
    font-size: 10px;
}
.fs-12px{
    font-size: 12px;
}
.fs-13px{
    font-size: 13px;
}
.fs-14px{
    font-size: 14px;
}
.fs-15px{
    font-size: 15px;
}
.fs-16px{
    font-size: 16px;
}
.fs-18px{
    font-size: 18px;
}
.fs-20px{
    font-size: 20px;
}
.fs-22px{
    font-size: 22px;
}
.fs-24px{
    font-size: 24px;
}

.cus-lh-1{
    line-height: 1.25;
}

.cus-lh-2{
    line-height: 1.3;
}

.w-1{
    width: 1% !important;
}

.w-48{
    width: 48% !important;
}

.w-60{
    width: 60% !important;
}

.min-height-75{
    min-height: 75% !important;
}

.min-height-90{
    min-height: 90% !important;
}

.min-height-100{
    min-height: 100% !important;
}

.max-width-100{
    max-width: 100% !important;
}

.h-10{
    height: 10% !important;
}

.h-90{
    height: 90% !important;
}

.hide-overflow{
    overflow: hidden;
}

.pb-60{
    padding-bottom: 60px;
}

.trbl-0{
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.offcanvas.offcanvas-middle {
    top: 45%;
    right: 0;
    left: 0;
    margin: 30px;
    max-height: 70%;
    border-radius: 10px;
    transform: translateY(-200%);
}
.offcanvas-middle.show:not(.hiding), .offcanvas-middle.showing {
    transform: translate(0, -50%) !important;
    animation: fadeIn 0.3s;
}
.offcanvas-middle.show:is(.hiding), .offcanvas-middle.hidding {
    opacity: 0;
}
.banner-x{
    position: absolute;
    left: 50%;
    bottom: -15%;
    background-color: var(--theme_white_color);
    border-radius: 50%;
    padding: 6px 12px;
    text-align: center;
    transform: translateX(-50%);
}

.line{
    margin: 1rem 0;
    color: inherit;
    border-top: 0.2px rgb(var(--theme_text_color)) solid;
    opacity: .25;
}

.line-right{
    color: inherit;
    border-right: 0.2px rgba(var(--theme_text_color), 0.2) solid;
}

.round{
    border-radius: 10px 10px;
}

.circle{
    border-radius: 100%;
}

.top-box-shadow{
    box-shadow: var(--theme_grey_color) 0px 2px 8px 0px;
}

.bottom-box-shadow{
    box-shadow: var(--theme_grey_color) 0px 8px 8px -4px;
}

.box-1-container{
    background-color: var(--theme_white_color) !important;
}

.box-2-container{
    background-color: var(--theme_custom_2_color) !important;
}

.box-3-container{
    background-color: var(--theme_transparent_color) !important;
}

.box-4-container{
    background-color: var(--theme_custom_11_color) !important;
}

.btn-theme{
    --bs-btn-color: var(--theme_white_color);
    --bs-btn-bg: var(--theme_custom_4_color);
    --bs-btn-border-color: var(--theme_custom_4_color);
    --bs-btn-hover-color: var(--theme_white_color);
    --bs-btn-hover-bg: var(--theme_custom_5_color);
    --bs-btn-hover-border-color: var(--theme_custom_5_color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--theme_white_color);
    --bs-btn-active-bg: var(--theme_custom_5_color);
    --bs-btn-active-border-color: var(--theme_custom_5_color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--theme_disable_color);
    --bs-btn-disabled-bg: var(--theme_custom_4_color);
    --bs-btn-disabled-border-color: var(--theme_custom_4_color);
}

.btn-theme-blank{
    --bs-btn-color: var(--theme_custom_4_color);
    --bs-btn-bg: var(--theme_white_color);
    --bs-btn-border-color: var(--theme_custom_4_color);
    --bs-btn-hover-color: var(--theme_white_color);
    --bs-btn-hover-bg: var(--theme_custom_5_color);
    --bs-btn-hover-border-color: var(--theme_custom_5_color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--theme_white_color);
    --bs-btn-active-bg: var(--theme_custom_5_color);
    --bs-btn-active-border-color: var(--theme_custom_5_color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--theme_disable_color);
    --bs-btn-disabled-bg: var(--theme_custom_4_color);
    --bs-btn-disabled-border-color: var(--theme_custom_4_color);
}

.disable{
    pointer-events:none;
    background:var(--bs-secondary-bg);
}

.greyscale-100{
    filter: grayscale(100%);
}

.theme-text{
    color: rgb(var(--theme_text_color));
}

.grey-text{
    color: grey;
}

.red-text{
    color: red;
}

.light-grey-text{
    color: var(--theme_grey_color);
}

.overflow-1-line{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overflow-2-line{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offcanvas{
    border-radius: 10px 10px 0 0;
    &.offcanvas-bottom{
        height: auto;
        max-height: 80%;
    }
}

.top-right-button{
    position: absolute;
    top: 10px;
    right: 10px;
}

.minus-quantity-button{
    background-color: var(--theme_white_color);
    border: 1px solid var(--theme_grey_color);
    border-radius: 12px 0 0 12px;
    color: rgb(var(--theme_text_color));
    font-size: 18px;
    padding: 1px 12px;
}
.plus-quantity-button{
    border: 1px solid var(--theme_grey_color);
    border-radius: 0 12px 12px 0;
    color: rgb(var(--theme_text_color));
    background-color: var(--theme_white_color);
    font-size: 18px;
    padding: 1px 12px;
}
.quantity-text{
    margin: 0;
    padding: 1px 10px;
    border-top: 1px solid var(--theme_grey_color);
    border-bottom: 1px solid var(--theme_grey_color);
    font-size: 18px;
    color: rgb(var(--theme_text_color));
}

/* onsenui custom css */
.tabbar__content{
    bottom: var(--tabbar_custom_height);
}
ons-toolbar:not([inline]){
    position: unset;
}
.tabbar{
    height: var(--tabbar_custom_height);    
    box-shadow: var(--theme_black_color) 0 10px 7px 7px;
    
    span{
        font-size: 12px;
    }
    .tabbar__item.active .tabbar__button{
        color: rgb(var(--theme_text_color));
    }
    .tabbar__button{
        height: var(--tabbar_custom_height);
    }
}
.toolbar{
    background-color: #fffff7;
    box-shadow: none;
}
.page__background{
    background-color: #fffff7;
}

#home-banner{
    height: 320px;
    background:url(../image/background/banner-home.jpg) center no-repeat;
    background-size: 800px;
}

/* url(../image/background/new_login_background.jpg); */

#get_start_container{
    h3{
        margin: 0;
        margin-top: 15%;
        font-size: 34px;
    }
    h2{
        margin: 0;
        font-size: 64px;
        line-height: 55px;
    }
    h5{
        margin: 0;
        margin-bottom: 10px;
        font-size: 16px;
    }
}

.get-start-button{
    color: var(--theme_white_color);
    font-size: 20px;
    border-radius: 40px;
    padding: 15px 30px 15px 30px;
}

.access-background{     
    background-size:     cover;
    background-repeat:   no-repeat;
    background-position: center center;
    height: 100%;
}

.access-container{
    display: none;
    background-color: var(--theme_white_color);
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px var(--theme_grey_color);
    margin: 0 100px 0 100px;
    padding: 20px;
    position: relative;
    top: 50%;
    left: 0;
    transform: translate(0, -50%) !important;
    animation: fadeIn 1s;
}

.login-container{
    background-color: var(--theme_white_color);
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px var(--theme_grey_color);
    margin: 0 10px 0 10px;
    padding: 20px;
    position: relative;
    top: 50%;
    left: 0;
    transform: translate(0, -50%) !important;

    .form-control{
        font-weight: 550;
        font-size: 20px;
        color: var(--theme_grey_color);
        letter-spacing: 4px;
        text-align: center;
    }
}

.register-container{
    background-color: var(--theme_white_color);
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px var(--theme_grey_color);
    margin: 10px;
    padding: 20px;

    .form-control{
        font-size: 20px;
        text-align: center;
    }
}

.contact-container{
    display: flex;
    background: var(--theme_transparent_color);
    border-radius: 8px;
    padding: 12px 14px;
    
    .contact{
        flex-grow: 1;
        background: none;
        font-weight: 550;
        font-size: 20px;
        color: var(--theme_black_color);
        letter-spacing: 4px;
        padding-left: 12px;
        width: calc(100% - 124px);
        border: none;
        &::placeholder{
            opacity: 0.5;
        }
    }
    .dropdown {
        display: inline-block;
        background-color: var(--theme_custom_1_color);
        border-radius: 2px;
        box-shadow: 0 0 2px var(--theme_grey_color);
        transition: all .5s ease;
        position: relative;
        font-size: 14px;
        color: var(--theme_grey_color);
        text-align: left;
    }
    .dropdown .select {
        font-weight: 550;
        font-size: 20px;
        color: var(--theme_black_color);
        letter-spacing: 4px;
        padding: 4px;
        border-radius: 5px;
        background: var(--theme_white_color);
        flex-shrink: 0;
        cursor: pointer;
    }
    .dropdown .dropdown-menu {
        position: absolute;
        background-color: var(--theme_custom_1_color);
        width: 252px;
        top: 48px;
        left: -12px;
        margin-top: 1px;
        box-shadow: 0 1px 2px var(--theme_grey_color);
        border-radius: 0 1px 2px 2px;
        overflow: hidden;
        display: none;
        max-height: 144px;
        overflow-y: auto;
        z-index: 9;
    }
    .dropdown .dropdown-menu li {
        padding: 10px;
        transition: all .2s ease-in-out;
        cursor: pointer;
    } 
    .dropdown .dropdown-menu {
        padding: 0;
        list-style: none;
    }
    &.disabled{
        background-color: var(--theme_disable_color);
        opacity: 0.6;
        .select{
            border: none;
            border-radius: 0;
        }
        .dropdown{
            box-shadow: none;
        }
    }
}

/* Menu page css */
#delivery_selection{
    .fs{
        font-size: 30px;
    }
}

#menu_page{
    .toolbar{
        justify-content: center;
        height: var(--toolbar_custom_height);
        .center{
            width: 90%;
            font-size: 16px;
            height: var(--toolbar_custom_height);
            .box-2-container{
                height: 34px;
            }
        }
    }
    .page__content{
        top: var(--toolbar_custom_height);
    }
}

#group_order_menu_page{
    .toolbar{
        align-content: start;
        justify-content: center;
        flex-wrap: wrap;
        height: 155px;
        .full{
            width: 100%;
            font-size: 16px;
            white-space: normal;
        }
    }
    .page__content{
        top: 155px;
    }
    .page__background{
        top: 155px;
    }
}

.menu-container, .group-menu-container{
    display: flex;
    overflow: hidden;
    height: 100%;
    width: 100%;
    .col-cus-2{
        /*flex: 0 0 auto;*/
        width: 20%;
    }
    .col-cus-10{
        /*flex: 0 0 auto;*/
        width: 80%;
    }
}
.menu-category-container, .group-menu-category-container{
    text-align: center;
    font-size: 14px;
    padding: 0 10px 0 10px;
    &.active{
        background: linear-gradient(to right, #e9e7e7, var(--theme_white_color));
    }
}

.menu-product, .group-menu-product{
    &.disabled{
        opacity: 0.3;
        pointer-events: none;
    }
    &.out-of-stock{
        opacity: 0.3;
        pointer-events: none;
    }
}

.inner-container{
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: content-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { 
        display: none;
    }
}

.cart-mini-container{
    background-color: var(--theme_white_color);
    display: none;
    width: 100%;
    height: 60px;
    font-size: 13px;
    padding: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    box-shadow: var(--theme_black_color) 0 10px 7px 7px;
}

#cart_payment_method_select, #stamp_selector, #cart_voucher_select, #outlet_select, #topup_select, #address_page{
    input[type="checkbox"], input[type="radio"] {
      -webkit-appearance: none;
      appearance: none;
      background-color: var(--form-background);
      margin: 0;
    
      font: inherit;
      color: var(--theme_white_color);
      width: 1.15em;
      height: 1.15em;
      border: 0.15em solid grey;
      border-radius: 100%;
      transform: translateY(-0.075em);
    
      display: grid;
      place-content: center;
    }
    
    input[type="checkbox"]::before, input[type="radio"]::before {
        content: "";
        width: 0.55em;
        height: 0.55em;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        transform: scale(0);
        transform-origin: bottom left;
        transition: 120ms transform ease-in-out;
        background-color: var(--theme_custom_1_color);
    }

    input[type="checkbox"]:checked, input[type="radio"]:checked {
        transform: scale(1);
        background-color: rgb(var(--theme_text_color));
        border: 0.15em solid rgb(var(--theme_text_color));
    }

    input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
        transform: scale(1);
    }

    input[type="checkbox"]:disabled, input[type="radio"]:disabled {
        background-color: var(--theme_disable_color);
        border: 0.15em solid var(--theme_disable_color);
        cursor: not-allowed;
    }
}

/* option_selection css */
.option-wrapper{
    background-color: var(--theme_custom_1_color);
}
.option-container{
    .option-box{
        background-color: var(--theme_white_color);
        border: 1px solid var(--theme_grey_color);
        border-radius: 20px;
        color: black;
        padding: 2px 12px;
        &.selected{
            border: 1px solid rgb(var(--theme_text_color));
            color: rgb(var(--theme_text_color));
        }
        &.disabled{
            color: var(--theme_grey_color);
            pointer-events: none;
        }
        &.multi-selected{
            border: 1px solid rgb(var(--theme_text_color));
            color: rgb(var(--theme_text_color));
        }
    }
}

/* outlet selection css */
.open-container{
    padding: 2px 6px;
    border-radius: 5px;
    background-color: var(--theme_custom_6_color);
    color: var(--theme_custom_7_color);
}
.close-container{
    padding: 2px 6px;
    border-radius: 5px;
    background-color: var(--theme_custom_8_color);
    color: var(--theme_custom_9_color);
}

/* order page css */
#order_page{
    .order-container{
        box-shadow: var(--theme_grey_color) 0px 3px 6px 0px;
    }
    .order-status-container{
        background-color: var(--theme_custom_10_color);
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        border-radius: 10px 10px 0px 0px;
        padding: 12px;
    }
}

/* reward page css */
#reward_page{
    .sticky-top{
        background:url(../image/background/bg-1.jpg);
        background-position: -3% 25%;
        color: var(--theme_black_color);
        ul{
            justify-content: space-around;
            .nav-link{
                padding: 0;
                color: var(--theme_black_color);
                &.active{
                    color: rgb(var(--theme_text_color));
                    border-bottom: 2px solid rgb(var(--theme_text_color));
                }
            }
        }
    }
}

/* stamp page css */
#stamp_page{
    .page__content{
        background:url(../image/background/stamp.jpg) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
    }
}

/* account page css */
#account_page, #profile_page{
    .page__content{
        background-color: var(--theme_white_color) !important;
    }
    .round-image{
        border-radius: 100%;
        background-color: var(--theme_custom_3_color);
        padding: 10px;
        img{
            padding: 6px;
        }
    }
}

.topup-preset.selected{
    color: rgb(var(--theme_text_color));
    border-color: rgb(var(--theme_text_color)) !important;
}

/* referral page css */
#referral_page{
    .banner{
        background:url(../image/background/bg-1.jpg);
        background-position: 14% 25%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 30px;
    }
    .title{
        font-size: 24px;
        letter-spacing: 2px;
    }
    .title-content{
        font-size: 16px;
        margin: 0;
    }
    .transparent{
        background-color: var(--theme_transparent_color);
    }
    .small{
        padding: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
        width: 25%;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .medium{
        padding: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
        width: 50%;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .large{
        padding: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
        width: 100%;
        img{
            width: 100%;
            height: 100%;
        }
    }
}

@media (min-width: 801px) {
    body {
        max-width:800px;
        border:0px;
        border-left:0px solid #999;
        border-right:0px solid #999;
        position:absolute;
        width:100%;
        min-height:100%;
        left:50%;
        top:50%;
        transform: translate(-50%, -50%);
    }
	
	/* width */
	::-webkit-scrollbar {
	  width: 5px;
	  height:5px;
	}
	
	/* Track */
	::-webkit-scrollbar-track {
	  background: #f1f1f1; 
	}
	 
	/* Handle */
	::-webkit-scrollbar-thumb {
	  background: #888; 
	}
	
	/* Handle on hover */
	::-webkit-scrollbar-thumb:hover {
	  background: #555; 
	}
	
}

@media (min-width:801px) {
    ons-navigator {
        margin: auto;
        width: 620px;
    }

    body {
        width: 620px;
    }

    #get_start_container{
        h3{
            margin: 0;
            margin-top: 15%;
            font-size: 40px;
        }
        h2{
            margin: 0;
            font-size: 74px;
            line-height: 65px;
        }
        h5{
            margin: 0;
            margin-bottom: 10px;
            font-size: 20px;
        }
    }

    /* access page css */
    .access-background{
        background-image:    url(../image/background/new_login_background_1.jpg);
    }

    .access-container{
        margin: 0 100px 0 100px;
    }    
}

@media (max-width:800px) {
    /* access page css */
    .access-background{
        background-image:    url(../image/background/bg_access_1.jpg);       
    }

    .access-container{
        margin: 0 10px 0 10px;
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadeOut {
    100% { opacity: 1; }
    0% { opacity: 0; }
}

@media (max-width: 767px) {
    .homepage_logo {
        height: 75%;
        width: auto;
    }
}

@media (min-width: 768px) {
    .homepage_logo {
        height: 75%;
        /* width: 25%; */
    }
}

.fixed_bottom_right {
    bottom: 10px;
    right: 10px;
    position: fixed;
}

.password_toggle_button {
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer;
}

.edit-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    padding: 5px 7px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme_custom_4_color);
}

.onsen_modal {
    background-color: white;
    padding: 10px;
}

.smaller {
    font-size: 12px;
}