@font-face {
    font-family: Gudea;
    src: url(../font/Gudea-Bold.ttf);
    font-weight: bold;
}

.font-number{
    font-family: 'Gudea';
    letter-spacing: 2px;
}

hr{
    color: #aaa;

}

.link{
    color: #FE9801 !important;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    border: none;
}

a.link-home{
    color: #828300 !important;
}

a.link-home:hover{
    color: #a5a12c !important;
}

.btn-link{
    padding: 0 !important;
    color: #a5a12c !important;
    outline: none !important;
    font-size: 14px;
}

.btn-link:hover{
    color: #b8b434 !important;
    text-decoration: none;
}

.form-control{
    padding: 12px;
}

.btn-main{
    background-color: #b8b434;
    color: #fff !important;
    padding: 12px !important;
}

.btn-main:hover{
    background-color: #a5a12c !important;
}

.btn-main.line{
    background-color: transparent !important;
    color: #b8b434 !important;
    border: 1px solid #b8b434;
}

.btn-main.line:hover{
    background-color: #fff;
    color: #828300 !important;
    border: 1px solid #828300;
}

.button-group {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.button-group button {
    flex: 1;
}

.modal-title{
    font-size: 16px;
}

.table-main{
    background-color: #c5c702;
}

.swal2-modal .swal2-html-container{
    margin: 32px 0 12px;
    font-size: 16px;
}

.swal2-modal .swal2-styled{
    padding: 12px 24px;
    font-size: 14px;
}

.swal2-modal .swal2-styled.swal2-confirm{
    background-color: #b8b434;
}

.swal2-modal .swal2-styled.swal2-cancel{
    background-color: #999;
}

.swal2-modal .swal2-styled.swal2-confirm:focus{
    box-shadow: 0 0 0 3px rgb(184 180 52 / 50%);
}

.offcanvas.offcanvas-bottom{
    height: 50vh;
}

.offcanvas-title{
    font-size: 16px;
}

#barcodeCanvas img{
    max-width: 90%;
    max-height: 100%;
}

/*---------------------------------------------------------------*/

body{
    font-family: '微軟正黑體';
    color: #333;
    font-size: 14px;
    /* background-color: #fafafa; */
}

header{
    padding: 16px 0;
    border-bottom: 2px solid #b1b200;
    margin-bottom: 24px;
    background-color: #fff;
    /* box-shadow: 2px 0px 8px rgba(180,180,180,.5); */
}

header .shop-name{
    margin-left: 12px;
    font-size: 16px;
}

header img{
    width: 120px;
}

.title{
    font-size: 20px;
    margin: 32px 0 16px;
}

article{
    max-width: 400px;
    margin: 15% auto 0;
    text-align: center;
}

article h3{
    margin-bottom: 40px;
}

.member-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 24px 0;
    background-color: #EAEBD8;
    border-radius: 12px;
    /* box-shadow: 0px 0px 5px rgba(100,100,100,.4); */
}

.member-card strong{
    font-size: 24px;
    margin-left: 4px;
    color: #828300;
    /* color: #DE561C; */
    /* color: #E6A400; */
}

.member-card span{
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.member-card i{
    margin-right: 8px;
}

.exchange-points{
    display: flex;
    flex-direction: column;
}

.exchange-points .font-number{
    color: #DE561C;
    font-size: 24px;
    margin: 0 4px;
}

.exchange-list{
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.exchange-list li {
    padding: 12px 16px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-top: 16px;
}

.exchange-list li > div:nth-child(1)::before{
    content: '';
    width: 26px;
    height: 26px;
    display: block;
    background-size: contain;
    margin-right: 4px;
}

.icon-star::before{
    background: url(../../images/Star_duotone.svg) no-repeat;
}

.icon-gift::before{
    background: url(../../images/Gift_light_duotone.svg) no-repeat;
}

.icon-dimond::before{
    background: url(../../images/Dimond_alt_duotone.svg) no-repeat;
}

.exchange-list li input{
    width: 120px;
}

.exchange-list li span {
    color: #999;
    font-size: 14px;
}

.exchange-list li .font-number{
    color: #828300;
    margin: 0 4px;
}

.exchange-list li .font-number.points{
    font-size: 20px;
}

.exchange-detail{
    list-style: none;
    padding: 0;
    display: grid;
    grid-gap: 12px;
}

.exchange-detail > li {
    border: none;
    background-color: #f5f5f5;
    border-radius: 8px !important;
}

.exchange-detail li .accordion-button{
    background-color: transparent;    
    box-shadow: none;
}

.exchange-detail li .accordion-button .info{
    display: grid;
    color: #666;
}

.exchange-detail li .accordion-button .info strong {
    font-size: 13px;
    margin-bottom: 12px;
    color: #E6A400;
}

.exchange-detail li .accordion-button .info span {
    font-size: 20px;
    color: #DE561C;
}

.exchange-detail .item {
    list-style: none;
    display: grid;
    grid-gap: 12px;
    padding-left: 24px;
}

.exchange-detail .item li {
    padding-left: 24px;
    border-left: 6px solid #ddd;
    color: #555;
}

.exchange-detail .item li strong{
    margin-right: 12px;
}

.points-list{
    display: flex;
    margin: 0;
    padding: 24px 0;
    width: 100%;
    text-align: center;
    background-color: #f6f6f6;
}

.points-list li{
    list-style: none;
    flex: 1;
    color: #828300;
    position: relative;
}

@media (min-width: 768px) {
    #barcodeCanvas img{
        max-height: 70%;
    }

    .link, .btn-link{
        font-size: 18px;
    }

    .btn-main{
        min-width: 140px;
    }

    .button-group {
        justify-content: flex-end;
    }

    .button-group button {
        flex: initial;
    }

    body{
        font-size: 20px;
    }

    header{
        margin-bottom: 32px;
    }
    header .shop-name{
        font-size: 18px;
        margin-left: 24px;
    }

    header img{
        width: 200px;
    }

    .title{
        font-size: 26px;
    }

    .member-card{
        font-size: 20px;
        padding: 32px 0;
    }

    .member-card strong{
        font-size: 32px;
        margin-left: 4px;
    }

    .member-card span{
        font-size: 16px;
        margin-left: 12px;
    }

    .member-card i{
        margin-right: 12px;
    }

    .exchange-points{
        align-items: center;
    }

    .exchange-points .font-number{
        font-size: 34px;
    }

    .exchange-list{
        margin: 24px 0 32px;
    }

    .exchange-list li {
        padding: 32px 40px;
        border: 2px solid #f0f0f0;
    }

    .exchange-list li .font-number{
        font-size: 20px;
    }

    .exchange-list li .font-number.points{
        font-size: 30px;
        margin: 0 8px;
    }

    .exchange-list li input{
        width: 200px;
    }

    .exchange-list li span{
        font-size: 16px;
    }

    .exchange-list li > div:nth-child(1)::before{
        width: 40px;
        height: 40px;
    }

    .modal-title{
        font-size: 20px;
    }

    .offcanvas-title{
        font-size: 24px;
    }

    .swal2-modal .swal2-html-container{
        margin: 48px 0 24px;
        font-size: 22px;
    }
    
    .swal2-modal .swal2-styled{
        padding: 12px 40px;
        font-size: 18px;
    }

    .exchange-detail li .accordion-button .info{
        font-size: 18px;
    }

    .exchange-detail li .accordion-button .info strong {
        font-size: 15px;
    }

    .exchange-detail li .accordion-button .info span{
        font-size: 24px;
    }

    .exchange-detail .item{
        font-size: 16px;
    }

    .points-list li{
        font-size: 20px;
    }

    .points-list li strong{
        font-size: 22px;
    }
}