﻿:root {
    
    --myColorC: #009bb4;
    --myColorA: #02aec6;    
    --myColorB: #00d2d2;
}

* {
    box-sizing: border-box;
}

/* force scrollbar */
html {
    overflow-y: scroll;
}

body {
    font-family: sans-serif;
    background: #f9f9f9;
}

/* ---- grid ---- */

.grid {
    width: 100%;
    min-height: 100%;
    background: #fafafa;
}

    /* clear fix */
    .grid:after {
        content: '';
        display: block;
        clear: both;
    }

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
    width: calc(50% - 10px);
    float: left;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #FFF;
}

    .grid-item .company_layout {
        margin-bottom: 10px;
        padding-top: 0px;
        padding-left: 5px;
        padding-right: 5px;
        padding-bottom: 5px;
    }

    .grid-item img {
        display: block;
        max-width: 100%;
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
    }

    .grid-item p {
        margin-top: 5px;
        margin-left: 5px;
        margin-right: 5px;
        font-weight: 600;
        line-height: 1.25em;
        letter-spacing: .5px;
        font-size: 14px;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


.companyarea {
    display: flex;
    align-items: center;
    padding: 15px 15px 8px 15px;
    cursor: pointer;
    margin-top: 10px;
}

.user-img {
    float: left;
    width: 40px;
    height: 40px;
}

    .user-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-left-radius: 50% 50%;
        border-top-right-radius: 50% 50%;
        border-bottom-right-radius: 50% 50%;
        border-bottom-left-radius: 50% 50%;
    }

.storylist-company-img {
    float: left;
    width: 15px;
    height: 15px;
}

    .storylist-company-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-left-radius: 50% 50%;
        border-top-right-radius: 50% 50%;
        border-bottom-right-radius: 50% 50%;
        border-bottom-left-radius: 50% 50%;
    }

.companyarea-detail {
    display: flex;
    width: 100%;
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding: 0 15px;
}

    .companyarea-detail div {
        flex: 1;
        line-height: 1.2em;
        text-align: center;
        margin: 15px 0;
        cursor: pointer;
    }

        .companyarea-detail div:not(:last-child) {
            border-right: 1px solid #eee;
        }

.company-post {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    cursor: pointer;
    color: #58595b;
    -webkit-transition: opacity .4s, transform .4s;
    -o-transition: opacity .4s, transform .4s;
    transition: opacity .4s, transform .4s;
    background: #FFF;
    margin-bottom: 10px;
}

    .company-post .info {
        flex: 1;
    }

    .company-post .title {
        line-height: 2em;
        font-weight: 600;
        /* margin-bottom: .5em; */
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .company-post .content {
        line-height: 1.5em;
        font-size: .9em;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .company-post .img {
        width: 80px;
        height: 80px;
        background: rgb(237, 238, 240);
        margin-left: 15px;
    }

        .company-post .img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.campaign-post {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    cursor: pointer;
    color: #58595b;
    -webkit-transition: opacity .4s, transform .4s;
    -o-transition: opacity .4s, transform .4s;
    transition: opacity .4s, transform .4s;
    background: #FFF;
    margin-bottom: 10px;
}

    .campaign-post .info {
        flex: 1;
    }

    .campaign-post .title {
        line-height: 2em;
        font-weight: 600;
        /* margin-bottom: .5em; */
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .campaign-post .content {
        line-height: 1.5em;
        font-size: .9em;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .campaign-post .img {
        width: 80px;
        height: 80px;
        background: rgb(237, 238, 240);
        margin-right: 15px;
    }

        .campaign-post .img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.content_layout {
    background: #FFF;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

.recommended_title {
    overflow: auto;
    position: relative;
    margin: 0;
    padding: 10px 15px 15px 0px;
}

.recommended_title_left {
    width: auto;
    float: left;
    margin: 1% 1% 1% 0;
    padding-left: 1%;
    line-height: 1em;
    border-left: 3px solid var(--myColorA);
}

.food_remark {
    color: #999;
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: #00000000;
    border: 0px solid #ccc;
    padding-top: 10px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 10px;
}

.icon-star {
    color: #fc0;
    margin: 0 6px 0 3px;
}

.company-info-con {
    background: #FFF;
    margin-top: 10px;
    margin-bottom: 10px;
}

.col-sm-8 {
    width: 100%;
    float: left;
}

.col-sm-4 {
    width: 100%;
    float: left;
}

.fade {
    opacity: 1;
    transition: opacity .15s linear;
}

    .fade.in {
        /*opacity: 1;*/
    }

.on {
    display: block;
}

.off {
    display: none;
}

.modal-open {
    overflow: hidden;
}

.member_modal .modal-header {
    border-bottom: 0;
    padding: 0;
}

.member_modal .modal-dialog {
    margin: 0;
    /*
  height: 100vh;
  */
}

.member_modal .modal-header .close {
    position: absolute;
    right: 15px;
    top: 15px;
    background-color: #fff;
    border-radius: 50%;
    padding: 10px;
    opacity: .5;
    z-index: 99;
}

.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    -o-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    height: 100%;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

.member_modal .modal-content {
    border-radius: 0;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
    height: 100%
}

.member_modal .modal-body {
    padding: 0;
    height: calc( 100% - 85px);
    overflow: hidden;
    overflow-y: auto;
}

    .member_modal .modal-body .product_photo.on,
    .member_modal .modal-body .product_info.on {
        padding-right: 15px;
        padding-left: 15px;
    }

    .member_modal .modal-body .input_number_group {
        margin: 0 0 10px 0;
        text-align: center;
        width: 100%;
    }

    .member_modal .modal-body p.food_name {
        font-size: 2em;
        line-height: 1.2em;
        margin: 10px 0 5px 0;
    }

    .member_modal .modal-body p.food_remark {
        color: #999;
        margin: 0;
        font-size: 1.25em;
        font-weight: 300;
    }

    .member_modal .modal-body p.food_price {
        color: #666;
        margin: 3px 0 0 0;
        font-size: 1.25em;
        font-family: 'Lato', sans-serif;
    }

    .member_modal .modal-body pre.food_remark {
        color: #999;
        margin: 0;
        font-size: 1.25em;
        font-weight: 300;
        white-space: pre-wrap;
        word-break: break-word;
        background-color: #00000000;
        border: 0px solid #ccc;
        padding-top: 10px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 10px;
    }

.member_modal .modal-footer {
    width: 100%;
}

    .member_modal .modal-footer button {
        background: var(--myColorA);
        border: none;
        font-size: 1.2em;
        font-family: "Noto Sans TC", 微軟正黑體, "Microsoft JhengHei";
        letter-spacing: 1px;
        padding: 15px;
        width: 100%;
    }

        .member_modal .modal-footer button:hover {
            background-color: var(--myColorC);
        }

.member_modal .modal-title {
    margin: 0 -15px;
    /*height: 250px;*/
}

    .member_modal .modal-title img {
        /*圖片裁剪居中*/
        /* height: 250px; */
        object-fit: cover;
        width: 100%;
    }

.gotop {
    background-color: var(--myColorA);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    display: none;
    font-size: 1.5em;
    opacity: 1;
    padding: 10px;
    position: fixed;
    right: 0;
    bottom: 70px;
    text-decoration: none;
    z-index: 99;
    width: 50px;
    text-align: center;
}

    .gotop:hover,
    .gotop:focus,
    .gotop:active,
    .gotop:visited {
        color: #fff;
        outline: 0;
        text-decoration: none;
    }

    .gotop i {
        color: #fff;
    }

.company-layout {
    display: none;
}

.story-layout {
    display: block;
}

.downloadBar {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 50%;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    max-width: 2732px;
    width: 100%;
    height: 56px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: rgba(0, 0, 0,1);
    color: #fff;
    /*z-index: 1500;*/
    -webkit-animation: fadeIn .3s;
    -moz-animation: fadeIn .3s;
    -o-animation: fadeIn .3s;
    -webkit-animation: fadeIn-jsx-4010014881 .3s;
    animation: fadeIn-jsx-4010014881 .3s;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: none;
}

.appInfo {
    display: block;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    font-size: 10px;
}

.appName {
    font-size: 16px;
    line-height: 18px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-left: -1px;
    color: #fff;
}

.appDesc {
    font-size: 10px;
    line-height: 18px;
    padding-bottom: 5px;
    margin-top: -5px;
    margin-left: -1px;
    color: #fff;
}

#downloadApp {
    display: inline-block;
    width: 6em;
    height: 32px;
    color: #fff;
    background-color: var(--myColorA);
    font-size: 12px;
    line-height: 32px;
    -webkit-letter-spacing: .4px;
    -moz-letter-spacing: .4px;
    -ms-letter-spacing: .4px;
    letter-spacing: .4px;
    text-align: center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.downloadClose {
    cursor: pointer;
    background: url(../Content/images/close.png) 50% no-repeat;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    background-size: contain;
    padding: 10px;
    margin-left: 10px;
}



header.fixed {
    box-shadow: 0px 1px 20px rgba(0,0,0,.1);
    position: fixed;
    top: 0px;
    right: 0;
    left: 0;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    border-top: 15px solid var(--myColorA);
    height: 85px;
    position: relative;
    /*
  z-index: 99999;
  */
    z-index: 1040;
}

    header .logo {
        display: inline-block;
        width: 135px;
    }

        header .logo a {
            display: block;
            text-indent: -9999px;
            width: 140px;
            height: 58px;
            background: url(../Content/images/logo2.png);
            background-size: 140px 58px;
            margin: 2px 0 8px 10px;
        }

    header .sort {
        display: none;
    }

        header .sort a {
            float: left;
            padding: 20px 0 20px 30px;
            text-decoration: none;
        }

            header .sort a i {
                font-size: 28px;
            }

        header .sort > a i:after {
            content: "類型";
            float: right;
            font-size: .5em;
            font-family: "Noto Sans TC", 微軟正黑體, "Microsoft JhengHei";
            margin: 6px 0 10px 2px;
        }

#sort-menu {
    position: fixed;
    background-color: #fff;
    padding: 20px;
    left: 20%;
    top: 18%;
    z-index: 99999;
    width: 60%;
}

    #sort-menu button {
        border: none;
        background-color: transparent;
        margin: 10px;
        position: absolute;
        right: 20px;
    }

    #sort-menu ul > a {
        color: #333;
        display: inline-block;
        float: left;
        font-size: 1.2em;
        font-weight: 300;
        letter-spacing: .5px;
        width: calc( 50% - 20px);
        margin: 6px;
    }

        #sort-menu button:hover,
        #sort-menu ul > a:hover li {
            color: var(--myColorA);
        }

header .login.off {
    display: none;
}

header .login {
    display: inline-block;
    /*float: right;*/
}

    header .login a {
        border: 1px solid #ddd;
        border-radius: 2px;
        box-shadow: none;
        color: #555;
        font-weight: normal;
        letter-spacing: 2px;
        padding-left: 20px;
        padding-right: 20px;
        margin: 17px;
    }

        header .login a:hover {
            background-color: #f6f6f6;
            transition: all .5s;
        }

header .dropdown.user {
    position: relative
}

    header .dropdown.user button {
        background-color: #eee;
        /*
  background-color: var(--myColorA);
  */
        border: none;
        border-radius: 25px;
        padding: 5px;
        height: 40px;
        width: 40px;
        /*position: absolute;*/
        right: 15px;
        top: -59px;
    }

        header .dropdown.user button i {
            color: var(--myColorA);
            font-size: 1.75em;
        }

    header .dropdown.user ul.dropdown-menu {
        border: 1px solid #ddd;
        border-radius: 0;
        box-shadow: none;
        min-width: 100px;
        padding: 0;
        position: absolute;
        right: 0px;
    }

        header .dropdown.user ul.dropdown-menu > li > a {
            padding: 15px 20px;
            text-align: center;
            font-weight: bold;
        }


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333333;
    white-space: nowrap;
}

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus {
        text-decoration: none;
        color: #262626;
        background-color: #f5f5f5;
    }

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    background-color: #337ab7;
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
    color: #777777;
}

    .dropdown-menu > .disabled > a:hover,
    .dropdown-menu > .disabled > a:focus {
        text-decoration: none;
        background-color: transparent;
        background-image: none;
        filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
        cursor: not-allowed;
    }

@media (min-width: 400px) {
    .member_modal .modal-title img {
        /*圖片裁剪居中*/
        /*height: 250px;*/
        object-fit: cover;
        width: 100%;
    }
}

@media (min-width: 480px) {
}

@media (min-width: 533px) {
}

@media (min-width: 540px) {
}

@media (min-width: 576px) {
    .grid {
        /*margin-left:15px;*/
        /*margin-right:15px;*/
        width: 540px;
    }

    .grid-sizer,
    .grid-item {
        width: calc(33.33% - 10px);
        float: left;
    }
}

@media screen and (min-width: 768px) {
    .grid {
        /*margin-left:15px;*/
        /*margin-right:15px;*/
        width: 720px;
    }

    .grid-sizer,
    .grid-item {
        width: calc(25% - 10px);
        float: left;
    }

    .col-sm-8 {
        width: 66.66666666%;
    }

    .col-sm-4 {
        width: 33.33333333%;
    }

    .member_modal .modal-dialog {
        margin: 30px auto;
        width: 710px;
        max-width: 710px;
    }

    .member_modal .modal-content {
        float: left;
        width: 100%;
        height:initial;
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .member_modal .modal-body .product_photo.on {
        float: left;
        width: 50%;
    }

    .gotop {
        right: 0;
        bottom: 20px;
    }

    .company-layout {
        display: block;
    }

    .story-layout {
        display: none;
    }

    header .dropdown.user button {
        right: 80px;
    }

    header .dropdown.user ul.dropdown-menu {
        right: 50px;
    }
}

@media screen and (min-width: 992px) {
    .grid {
        /*margin-left: 100px;*/
        /*margin-right: 100px;*/
        width: 960px;
    }

    .grid-sizer,
    .grid-item {
        width: calc(20% - 10px);
        float: left;
    }

    .member_modal .modal-dialog {
        width: 960px;
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .wrapper_restaurant {
        width: 1200px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 1216px) {
    .grid {
        /*margin-left: 100px;*/
        /*margin-right: 100px;*/
        width: 1140px;
    }

    .grid-sizer,
    .grid-item {
        width: calc(20% - 10px);
        float: left;
    }
}


#tab_list{
    position: fixed;
    z-index: 99;
    width: 100%;
    background-color: #FFF;
    padding-top: 13px;
   
}

/* Style the tab */
#tab_list .pgwMenuCustom{
    width: 100%;
    display: flex;
    justify-content: center;
}
#tab_list .pgwMenuCustom   a{
    white-space: nowrap;
}


#tab_list .pgwMenuCustom .pm-links{
    overflow: hidden;
    background: #FFF;
    list-style: none;
    white-space: nowrap;
    margin: 0px;
    padding:0px;
    display: flex;
    justify-content: center;
}


/* Change background color of buttons on hover */
#tab_list .pgwMenuCustom .pm-links li:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
#tab_list .pgwMenuCustom .pm-links a.active {
    color: var(--myColorA);
}
/* Style the buttons inside the tab */
#tab_list .pgwMenuCustom .pm-links a {
    background-color: inherit;        
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 14px;
}

#tab_list .pm-viewMore
{
    padding: 14px 16px;
    font-size: 14px;
}

#tab_list .pm-viewMore > a
{
    color: var(--myColorA);
    font-weight: 900;
}


#tab_list .pgwMenuCustom .pm-viewMore>ul {
    background: #fff;
    position: absolute;
    right: 30px;
    top: 50px;
    z-index: 1;
    box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
    border: none;
    height: 200px;
    overflow: auto;
    overflow-x: hidden;
    padding: 0px;
    list-style: none;
}
#tab_list .pgwMenuCustom .pm-viewMore>ul li{
    min-height: 30px;
    min-width: 100px;
    padding: 10px ;

}
#tab_list .pgwMenuCustom .pm-viewMore>ul li:hover{
    background-color: #ddd;
}
#tab_list .pgwMenuCustom .pm-viewMore>ul a.active{
    color: var(--myColorA);
}





    






/* 與會員相異的部分 */

html {
    height: 100%;
    overflow: visible;
}

/* 三種活動彈窗共用CSS */

#drawlotsCampaignModal,
#lotteryCampaignModal,
#scratchCampaignModal {
    height: 100%;
    overflow: auto;
}

    #drawlotsCampaignModal .modal-dialog,
    #lotteryCampaignModal .modal-dialog,
    #scratchCampaignModal .modal-dialog {
        height: 100%;
        margin: 0px auto;
        max-width: 400px;
       
    }

@media (max-width: 540px) {
    #drawlotsCampaignModal .modal-dialog,
    #lotteryCampaignModal .modal-dialog,
    #scratchCampaignModal .modal-dialog {
        min-width: 100%;
        max-width: initial;
    }
}


        #drawlotsCampaignModal .modal-dialog *,
        #lotteryCampaignModal .modal-dialog *,
        #scratchCampaignModal .modal-dialog * {
         
            height: auto;
            overflow: hidden;
        }



    #drawlotsCampaignModal .modal-content,
    #lotteryCampaignModal .modal-content,
    #scratchCampaignModal .modal-content {
        height: auto;
        min-height: 100%;
    }



#scratchCampaignModal .modal-content,
#scratchCampaignModal .modal-content {
       background-color: #000;
}

#drawlotsCampaignModal .center-block,
#scratchCampaignModal .center-block,
#lotteryCampaignModal .center-block {
    text-align: center
}

#drawlotsCampaignModal .center-block > div,
#scratchCampaignModal .center-block > div,
#lotteryCampaignModal .center-block > div{
    text-align:left;
    display:inline-block;
    width:auto;
    float: none;
}
#drawlotsCampaignModal .food_remark,
#scratchCampaignModal .food_remark,
#lotteryCampaignModal .food_remark {
    font-size: 16px;
}

#drawlotsCampaignModal .product_info > .food_remark:first-child,
#scratchCampaignModal .product_info > .food_remark:first-child,
#lotteryCampaignModal .product_info > .food_remark:first-child {
    text-align: center;
    font-size: 18px;
}

#scratchCampaignModal .food_remark,
#lotteryCampaignModal .food_remark {
    color: #FFF;
    font-size: 16px;
}


#drawlotsCampaignModal .prizeContent tr,
#scratchCampaignModal .prizeContent tr,
#lotteryCampaignModal .prizeContent tr {
    padding-top: 5px
}

#drawlotsCampaignModal .prizeContent td,
#scratchCampaignModal .prizeContent td,
#lotteryCampaignModal .prizeContent td {
    vertical-align: top;
    font-size: 16px;
    line-height: 25px;
    padding-top: 5px;
}

    #drawlotsCampaignModal .prizeContent td:first-child,
    #scratchCampaignModal .prizeContent td:first-child,
    #lotteryCampaignModal .prizeContent td:first-child {
        white-space: nowrap;
        min-width: 100px;
    }

#drawlotsCampaignModal .product_info > .food_remark:nth-child(2),
#scratchCampaignModal .product_info > .food_remark:nth-child(2),
#lotteryCampaignModal .product_info > .food_remark:nth-child(2) {
    text-align: center;
    padding-top: 0px
}

/* 刮刮樂CSS */
#scratchCampaignModal .scratchOff {
    text-align: center;
    padding: 70px 20px 10px 20px;
}

#scratchCampaignModal #scratchOffCanvas {
    /*display:inline-block;*/
    display: none;
    height: 100px;
    width: 300px;
    position: relative;
}

    #scratchCampaignModal #scratchOffCanvas canvas {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 100%;
        display: block;
        z-index: 2;
    }

    #scratchCampaignModal #scratchOffCanvas .scratchOffResult {
        position: absolute;
        top: 5px;
        left: 5px;
        height: 90px;
        width: 290px;
        line-height: 90px;
        z-index: 1;
        background: #FFF;
        font-size: 20px;
        text-align: center;
    }

        #scratchCampaignModal #scratchOffCanvas .scratchOffResult span {
            display: inline-block;
            height: auto;
            line-height: 26px;
            vertical-align: middle;
        }


/* 抽籤CSS */
#drawlotsCampaignModal .food_remark {
    color: #000;  
    font-size:16px;
}

#drawlotsCampaignModal .product_info {
    padding-left: 30px;
    padding-right: 30px;
}

#drawlotsCampaignModal .drawlots {
    text-align: center;
    padding: 20px
}

#drawlotsCampaignModal .drawlotsImg img {
    width: 200px;
    height: auto;
}

#drawlotsImg_after {
    display: none;
    text-align: center;
    line-height: 100%;
}

    #drawlotsImg_after.run {
        background: #000000EE;
        position: fixed;
        z-index: 9999;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        display: block;
        text-align: center;
    }

    #drawlotsImg_after .close {
        position: absolute;
        right: 10px;
        top: 10px;
        color: #FFF;
        border: 3px solid #FFF;
        padding: 3px 4px 5px 4px;
        border-radius: 30px;
    }

    #drawlotsImg_after .drawlotsImgResult {
        height: 500px;
        display: inline-block;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }

        #drawlotsImg_after .drawlotsImgResult img {
            height: 100%;
        }

        #drawlotsImg_after .drawlotsImgResult span {
            display: -webkit-box;
            position: absolute;
            top: 200px;
            left: 40px;
            width: 220px;
            height: 30px;
            line-height: 15px;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            color: #DBBC97;
            font-family: "Noto Sans TC", 微軟正黑體, "Microsoft JhengHei";
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }




/* 轉盤CSS */
#lotteryCampaignModal .lottery {
    text-align: center;
    padding: 20px
}

#lotteryCampaignModal .wrapper {
    display: inline-block;
    position: relative;
    height: 310px; /**/
    width: 310px; /**/
    border-radius: 50%;
    border: 5px solid #FFF;
}

#lotteryCampaignModal .wheel {
    position: relative;
    height: 300px; /**/
    width: 300px; /**/
    border-radius: 150px; /**/
    background-color: #FFF;
    transition: transform 3s cubic-bezier(.2,.93,.43,1);
  }
#lotteryCampaignModal .pointer {
    position: absolute;
    left: 125px; /* 300-30/2*/
    top: 125px; /**/
    z-index: 10;
    height: 50px;
    width: 50px;
    padding: 6px;
    color: #FFF;
    line-height: 30px;
    font-size: 16px;
    text-align: center;
    background-color: #c0381f;
    border-radius: 50%;
    border: 1px solid #c0381f;
    overflow: visible;
    cursor:pointer;
    
}
  #lotteryCampaignModal .pointer::after {
    content: '';
    position: absolute;
    left: 18px; 
    top: -22px;
    border-width: 12px 6px;
    border-style: solid;
    border-color: transparent;
    border-bottom-color: #c0381f;
}
  #lotteryCampaignModal .sector,
  #lotteryCampaignModal .sector-inner{
    
    width: 150px;  /**/
    height: 300px;  /**/
  }
  #lotteryCampaignModal .sector {    

    position: absolute;
    left: 50%;
    top: 0px;
    border-radius: 0px 150px 150px 0; /**/
    overflow: hidden;
    transform-origin: left center;
    text-align: left;
}

#lotteryCampaignModal .sector-out {
    position: relative;
    border-radius: 0px 150px 150px 0; /**/
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#lotteryCampaignModal .sector-inner {
    position: absolute;
    left: -100%;
    top: 0px;
    border-radius: 150px 0 0 150px; /**/
    background: #ffeab1;
    transform-origin: right center;
}

#lotteryCampaignModal .sector:nth-child(odd) .sector-inner {
    background: #f0965a;
}

#lotteryCampaignModal .sector.thk .sector-inner {
    background: aqua;
}

#lotteryCampaignModal .sector-out span {
    transform-origin: left center;
    display: block;
    z-index: 3;
    text-align: right;
    position: absolute;
    left: 0px;
    top: 0px; /**/
    line-height: 15px;
    padding-top: 15px;
    height: 100%;
}



#lotteryWrapper.one .sector-out,
#lotteryWrapper.one .sector {
    overflow: visible;
}

#lotteryWrapper.one .wheel {
    background: var(--myColorC);
}

