html {
    scroll-behavior: smooth;
}

header {
    background: repeat-y center url(../images/request/header-bg.svg),
    #8daf42;
    background-size: 1500px;
}

.tips {
    position: relative;
}
.tips:before {
    content: "";
    z-index: -1;
    position: absolute;
    height: 0.7em;
    top: 0.6em;
    background: #FFE082;
    width: 100%;
}

.border-dashed {
    border: dashed lightgrey 1px;
}

.highlighter {
    text-align: center;
}

.highlighter:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 100px;
    padding-top: 2rem;
    border-bottom: 6px solid #8AB93E;
}

#tipsModal-how img,
#tipsModal-noProduct img {
    background-color: #ccead8;
    border: solid 0.25px #afc4b8;
    border-radius: 5px;
}



/* 功能標題手機縮成兩行以下 */
@media screen and (max-width: 450px) {

    #requestIntro h4,
    #afterRequest h5 {
        font-size: 1.2rem;
    }
}
/* only for iphone 5 */
@media screen and (max-width: 370px) {
    #requestIntro h4 {
        font-size: 1rem;
        font-weight: bold;
    }
}



/* for ins_bankbook & ins_bankbook_import------------------------------------*/

header.bankbook-header {
    padding-left: 0;
    padding-right: 0;
}

main.bankbook-content {
    font-size: 1.125rem;
}

main.bankbook-content h2 {
    font-weight: bold;
}

main.bankbook-content figcaption {
    font-size: 1rem;
    text-align: center;
    color: #b0b6ba;
    margin: .5rem 0;
}

main.bankbook-content--import {
    max-width: 56rem;
}


.card-deck.bankbook-q,
.card-deck.request-func {
    margin-top: 1.5rem;
    justify-content: center;
}

.card-deck.bankbook-q .card,
.card-deck.request-func .card {
    max-width: 18rem;
    border-radius: 1rem;
    border: none;
    margin-left: auto;
    margin-right: auto;
}

.card-deck.request-func .card-body {
    border: none;
}

.card-deck.bankbook-q .card-header,
.card-deck.bankbook-q .card-footer {
    background-color: transparent;
    border: none;
    padding: .75rem;
}

.card-deck.bankbook-q .card-header {
    font-size: 1.125rem;
    color: #383838;
}

.card-deck.bankbook-q .card-footer a.btn {
    border-radius: 5rem;
}

.card-deck.bankbook-q .card-body {
    padding: 0 1rem;
}

.card-deck.bankbook-q .card-body .imgbox {
    max-width: 10rem;
    margin: auto;
}

@media (min-width: 576px) {

    .card-deck.bankbook-q .card,
    .card-deck.request-func .card {
        margin-right: 8px;
        margin-left: 8px;
    }
}

.card-deck.request-func {
    max-width: 56rem;
    margin: auto;
    text-align: center;
}

.card-deck.request-func .card-header {
    border-radius: 1rem 1rem 0 0;
    background-color: #EEBD09;
    color: #fff;
    border: none;
}


/*  */
.bankbook-intro, .bankbook-import-intro {
    border-radius: 1rem;
    background-color: rgba(138, 185, 62, 10%);
    padding: 1.5rem;
    margin: 3rem auto 0;
    max-width: 56rem;
}

@media (min-width: 576px) {
    .bankbook-intro {
        padding: 3rem;
        margin: 3rem auto 0;
    }
}

.bankbook-intro img, .bankbook-import-intro img,
.bankbook-info__img {
    border-radius: 1rem;
}

.bankbook-import-intro {
    max-width: 100%;
    padding: 2.5rem 1.5rem;
    margin-top: 0;
}

.bankbook-import-intro > article {
    max-width: 30rem;
    margin: auto;
}
.bankbook-import-intro > article h3{
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.bankbook-import-intro > article li {
    margin-bottom: .5rem;
    line-height: 1.5;
}
.bankbook-import-intro > article img{
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    margin-top: .25rem;
}




.bankbook-info article,
.bankbook-request article,
.bankbook-manual article {
    max-width: 40rem;
    margin: 2rem auto;
}

.bankbook-info__img {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
}

.bankbook-content ul.bankbook-info__note {
    list-style: '※ ';
    font-size: 80%;
    padding-left: 1rem;
}

/* bankbook_compare */
table#bankbook_compare {
    width: 100%;
    text-align: center;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
        font-size: 1rem;
    }

table#bankbook_compare tr {
    border-top: 1px solid #fff;
}

table#bankbook_compare td {
    border-left: 1px solid #fff;
}

table#bankbook_compare th,
table#bankbook_compare td {
    padding: .5rem .75rem;
}

table#bankbook_compare thead {
    /* background-color: #383838; */
    color: #fff;
    border-radius: 1rem 1rem 0;
    font-size: 1.125rem;
}

table#bankbook_compare thead>tr>th:nth-child(1) {
    background-color: #6D6D6D;
    border-radius: 1rem 0 0;
}

table#bankbook_compare thead>tr>th:nth-child(2) {
    background-color: #709b13;
}

table#bankbook_compare thead>tr>th:nth-child(3) {
    background-color: #FF7800;
    border-radius: 0 1rem 0 0;
}

table#bankbook_compare tbody>tr>th,
table#bankbook_compare tfoot>tr>th {
    background-color: rgba(109, 109, 109, 10%);
    /* width: 50%; */
    text-align: left;
    font-weight: normal;
}

table#bankbook_compare tbody>tr>td:nth-child(2),
table#bankbook_compare tfoot>tr>td:nth-child(2) {
    color: #709b13;
    background-color: rgba(112, 155, 19, 10%);
    width: 28%;
}

table#bankbook_compare tbody>tr>td:nth-child(3),
table#bankbook_compare tfoot>tr>td:nth-child(3) {
    color: #FF7800;
    background-color: rgba(255, 120, 0, 10%);
    width: 28%;
}

table#bankbook_compare tfoot>tr>th {
    border-radius: 0 0 0 1rem;
}

table#bankbook_compare tfoot>tr>td:last-child {
    border-radius: 0 0 1rem 0;
}

/* list-style */
ul#bankbook_ex {
    list-style: none;
    padding-left: 1.5rem;
}

ul#bankbook_ex li:before {
    display: inline-block;
    margin-left: -1.5rem;
    width: 1.5rem;
    vertical-align: -10%;
}

ul#bankbook_ex li.yes:before {
    content: 'check';
    font-family: 'Material Icons';
    color: #28a745;
    font-weight: bold;
    font-size: 125%;

}

ul#bankbook_ex li.no:before {
    content: 'close';
    font-family: 'Material Icons';
    color: #dc3545;
    font-weight: bold;
    font-size: 125%;
}

.bankbook-content ul,
.bankbook-content ol {
    padding-left: 1.75rem;

}

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

.bankbook-content ul li::marker,
.bankbook-content ol li::marker {
    color: #709b13;
    font-family: 'Roboto', sans-serif;
}

.bankbook-content ul {
    list-style: circle;
}

.bankbook-content ol {
    list-style: decimal;
}




/* for credit_card ------------------------------------*/
.credit-card-body > header {
    padding-left: 0;
    padding-right: 0;
    background: repeat-y center url(../images/request/header-bg.svg), #539f62;
}

.credit-card-body > main {
    /* background-color: #e7e7e7; */
    /* background-color: #dff0bb; */
    background-color: #deede1;
}
.credit-card-body.installment > header {
    /* background: repeat-y center url(../images/request/header-bg.svg), #e6b400; */
    background: repeat-y center url(../images/request/header-bg.svg), #9f8853;
}
.credit-card-body.installment > main {
    /* background-color: #fef1bf; */
    background-color: #ede9de;
}

.credit-card-info a {
    color: #709b13;
}

.credit-card-info a:hover,
.credit-card-info a:focus,
.credit-card-info a:active:hover {
    color: #4F7500;
}

.credit-card-company {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));

    column-gap: .5rem;
    row-gap: .75rem;
    margin-bottom: 1.5rem;
}
/* .credit-card-company {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.credit-card-company > a {
    width: 8rem;
} */


.credit-card-company > a, a.go-top{    
    background-color: #539F62;
    border-color: #539F62;
    text-decoration: none;

    display: block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;

    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 5rem;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.credit-card-company > a:hover, a.go-top:hover{
    background-color: #3e7549;
}

.credit-card-body.installment .credit-card-company > a, .credit-card-body.installment a.go-top{    
    background-color: #9f8853;
    border-color: #9f8853;
}
.credit-card-body.installment .credit-card-company > a:hover, .credit-card-body.installment a.go-top:hover{
    background-color: #75643e;
}
a.go-top {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    z-index: 100;
    /* width: 3rem;
    height: 3rem;
    right: 1rem;
    bottom: 1rem; */
    width: 60px;
    height: 60px;
    right: 24px;
    bottom: 15px;

    transform: translateX(0);
    transition: all .3s;
}
a.go-top.hide {
    transform: translateX(150%);
    opacity: 0;
}


/* ------ */
.credit-card-list > .credit-card {
    background-color: #fff;
    box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 2rem;

    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;

    position: relative;
}
.credit-card-list > .credit-card >*{
    width: 100%;
}
/* ------ */
.credit-card > .credit-card-img {
    /* flex: 0 0 180px; */
    flex: 0 0 20%;
    /* width: 180px; */
    max-width: 240px;
}

/* ------ */
.credit-card > .credit-card-info {
    font-size: 1.125rem;
}
.credit-card > .credit-card-info h2{
    font-weight: bold;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}
.credit-card > .credit-card-info h2 > a{
    color: #4F7500;
}
.credit-card > .credit-card-info h2 > a:hover{
    color: #709b13;
    text-decoration: none;
}

.credit-card ul.fixed-feature {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}
.credit-card ul.fixed-feature > li {
    display: flex;
    gap: .5rem;
    margin-bottom: .25rem;
    font-size: 1rem;
}
.credit-card ul.fixed-feature > li > *:first-child {
    border-right: 1px solid #383838;
    max-width: 5.5rem;
    flex: 1 0 5.5rem;
}

/* ------ */
.credit-card ul.other-feature {
    list-style: none;
    padding-left: 0;
    /* position: relative; */
}

.credit-card ul.other-feature > li {
    position: relative;
    margin-left: 2rem;
    margin-bottom: .5rem;
}

.credit-card ul.other-feature > li:before {
    content: 'check'; 
    font-family: 'Material Icons'; 
    color: #709b13;
    font-size: 1.75rem;

    position: absolute;
    left: -2rem;
    top: -.5rem;
}
.credit-card ul.other-feature > li.star:before {
    content: 'stars'; 
    color: #ffc107;
}

.credit-card ul.other-feature > li ul {
    list-style-type: disc;
    padding-inline-start: 1.5rem;
    margin-top: .5rem;
    font-size: 1rem;
}

/* ------ */
.credit-card .credit-card-cta {
    text-align: center;
    flex: 0 0 180px;
}

.credit-card .credit-card-cta >*:not(:last-child) {
    margin-bottom: .5rem;
}

.credit-card .credit-card-cta > .btn {
    border-radius: 5rem;
    font-size: 1.25rem;
}


/* ------ */
.credit-card .highlight-card {
    background-color: rgba(112, 155, 19, .1); /*#709B13*/
    border-radius: .5rem;
    padding: .5rem .75rem;
    text-align: center;
}

.credit-card .highlight-card .highlight {
    color: #709B13;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
    font-size: 1rem;
}
.credit-card .highlight-card .highlight > *:first-child{
    font-size: 4em;
}
.credit-card .highlight-card .highlight > *:last-child{
    font-size: 2em;
}
.credit-card .highlight-card .highlight-descri {
    font-size: 1rem;
}
.credit-card .highlight-card .highlight-descri > span {
    display: inline-block;
}
/* ------ */
.credit-card .highlight-card-on-mobile {
    display: none;
}

/* ------ */
.credit-card >.credit-card-warning {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    line-height: 1;
    color: #9b9b9b;
    border: 1px solid #9b9b9b;
    font-size: .875rem;
    width: fit-content;
    padding: 4px;
    text-align: center;
}



/* ------ */
@media (max-width: 768px){
    .credit-card-list > .credit-card{
        flex-direction: column;
        padding: 2rem 2rem 4rem;
        
        gap: 1rem;
    }
    .credit-card-list > .credit-card >* {
        flex-basis: auto;
        align-self: center;
    }

    .credit-card > .credit-card-img, .credit-card > .credit-card-cta {
        flex: 1 1 auto;
    }

    .credit-card > .credit-card-info h2 {
        text-align: center;
    }
    .credit-card > .credit-card-info {
        border-bottom: 1px solid grey;
    }

    .credit-card-cta > .highlight-card {
        display: none;
    }
    .credit-card .highlight-card-on-mobile {
        display: flex;
        gap: .5rem;
        margin-bottom: 1.25rem;
    }
    .credit-card .highlight-card-on-mobile > * {
        width: 100%;
    }
    .credit-card .highlight-card-on-mobile > .highlight-card {
        padding: .5rem .25rem;
    }
    .credit-card >.credit-card-warning {
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 576px){
    .credit-card-list > .credit-card{
        padding: 2rem 1rem 4rem;
    }
    .credit-card > .credit-card-info {
        font-size: 1rem;
    }
    .credit-card ul.fixed-feature > li {
        font-size: .875rem;
    }
    .credit-card ul.fixed-feature > li > *:first-child {
        max-width: 4.5rem;
        flex: 1 0 4.5rem;
    }
    .credit-card .highlight-card-on-mobile .highlight-card .highlight {
        font-size: .75rem;
    }
    .credit-card .highlight-card .highlight-descri {
        /* font-size: .875rem; */
    }
}