@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

.roaming-components{
    --header1: 38px;
    --header2: 24px;
    --header3: 20px;
    --body:16px;
    --mainColor:#FD1500;
    --titleFontFamily:"titling-gothic-fb-condensed","Noto Sans TC","Noto Sans","MHei","微軟正黑體","Microsoft JhengHei",sans-serif;
    --bodyFontFmaily:"titling-gothic-fb-narrow","Noto Sans TC","Noto Sans","MHei", "微軟正黑體", "Microsoft JhengHei", sans-serif;
}

/*loader*/
.roaming-components .loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--mainColor);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

/*icon*/
.roaming-components .icon{
    display:inline-block;
    margin:0;
    padding:0;
    vertical-align: middle;
}
.roaming-components .icon img{
    display:block;
}

/*search-box*/
.roaming-components .search-box{
    position: relative;
}
.roaming-components .search-box input{
    border-radius: 10px;
    border: 1px solid #d3d3d3;
    background:#FFF;
    padding:15px;
    width:100%;
}
.roaming-components .search-box input:focus-visible{
    outline: 1px solid #333;
}
.roaming-components .search-box input[disabled]{
    background:#ededed;
}
.roaming-components .search-box.icon-prefix input{
    padding-left:45px;
}
.roaming-components .search-box .icon{
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(0px, -50%);
}
.roaming-components .search-box .loader{
    display:none;
    width: 20px;
    height: 20px;
    border-width: 2px;
    position: absolute;
    top: 50%;
    right: 20px;
    margin-top: -10px;
}
.roaming-components .search-box .btn-reset{
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translate(0px, -50%);
    cursor:pointer;
    display:none;
}
.roaming-components .search-box .dropdown-list{
    position: absolute;
    z-index: 1;
    background: #FFF;
    width: 100%;
    height: auto;
    max-height:200px;
    overflow: auto;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    top: 95%;
    display:none;
}
.roaming-components .search-box .dropdown-list .item{
    padding:20px;
    position:relative
}
.roaming-components .search-box .dropdown-list .item:before{
    font-family: 'Material Icons';
    content: "chevron_right";
    position: absolute;
    right: 20px;
    font-size: var(--header3);
    color: #333;
}
.roaming-components .search-box .dropdown-list .item:after{
    content:"";
    width:calc(100% - 40px);
    height:1px;
    background: #EBECEE;
    position:absolute;
    bottom:0;
    left:20px;
}
.roaming-components .search-box .dropdown-list .item:hover{
    background:#EBECEE
}
.roaming-components .search-box .dropdown-list .item.no-result:before{
    display:none;
}
.roaming-components .search-box .dropdown-list .item.no-result:hover{
    background: #FFF;
}

/*tab*/
.roaming-components .tab-container{
    width:100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.roaming-components .tabs{
    display:flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    /* background:#FFF; */
}
.roaming-components .tabs .tab{
    display:flex;
    justify-content: center;
    align-items: stretch;
    position:relative;
    cursor:pointer;
    width: 100%;
    padding-top:10px;
}
.roaming-components .tabs .tab .content{
    font-size:var(--header3);
    font-family: var(--titleFontFamily);
    font-weight:500;
    color:#9C9C9C;
    width:100%;
    text-align: center;
    line-height: 1.2;
    display:flex;
    justify-content: center;
    align-items: center;
    background:#EBECEE;
    padding: 18px;
}
.roaming-components .tabs .tab:first-child .content{
    border-top-left-radius: 10px;
}
.roaming-components .tabs .tab:last-child .content{
    border-top-right-radius: 10px;
}
.roaming-components .tabs .tab .content:after{
    content:"";
    width:2px;
    height:50%;
    background:#CCC;
    position:absolute;
    right:0;
    top:calc(25% + 5px);
}
.roaming-components .tabs .tab:last-child .content:after{
    display:none;
}
.roaming-components .tabs .tab.selected{
    box-shadow: 0 0 8px 0 rgb(0 0 0 / 5%);
    filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.05));
    border-bottom:none;
    bottom: -1px;
    z-index: 1;
    padding-top:0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}
.roaming-components .tabs .tab.selected:before, .roaming-components .tabs .tab.selected:after{
    position: absolute;
    top:auto;
    bottom: 0;
    width: 20px;
    height: 20px;
    background:none;
    content: " ";
    z-index: 1;
}
.roaming-components .tabs .tab.selected:before{
    left: -20px;
    border-bottom-right-radius: 18px;
    box-shadow: 6px 6px 0 #FFF;
}
.roaming-components .tabs .tab.selected:after{
    right: -20px;
    border-bottom-left-radius: 18px;
    box-shadow: -6px 6px 0 #FFF;
}
.roaming-components .tabs .tab.selected:first-child:before,.roaming-components .tabs .tab.selected:last-child:after{
    display:none;
}
.roaming-components .tabs .tab.selected .content{
    background:#FFF;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    font-size:var(--header2);
    color:#000;
    position: relative;
}
.roaming-components .tabs .tab.selected .content:before{
    content:'';
    width:32px;
    height:3px;
    background:var(--mainColor);
    position:absolute;
    bottom:2px;
    left:50%;
    transform:translate(-50%,0px);
    border-radius: 25px;
}
.roaming-components .tabs .tab.selected .content:after{
    display:none;
}
.roaming-components .tabs .tab:has(+ .selected) .content:after{
    display:none;
}
.roaming-components .tab-pages{
    width:100%;
    background:#EBECEE;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.roaming-components .tab-pages .tab-page{
    background:#FFF;
    width:100%;
    border-radius: 20px;
    padding: 20px 0px;
    z-index: 2;
    position: relative;
    box-shadow: 0 6px 8px 0 rgb(0 0 0 / 5%);
    display:none;
}
.roaming-components .tab-pages .tab-page:first-child{
    border-top-left-radius:0;
}
.roaming-components .tab-pages .tab-page:last-child{
    border-top-right-radius:0;
}
.roaming-components .tab-pages .tab-page.selected{
    display:block;
}

/*button*/
.roaming-components .button{
    border-radius: 13px;
    padding:18px;
    background:#FFF;
    border:1px solid #9c9c9c;
    color:#333;
    display:flex;
    justify-content: center;
    align-items: center;
    cursor:pointer;
}
.roaming-components .button .icon{
    margin-right:5px;
}
.roaming-components .button.selected{
    background:var(--mainColor);
    border:1px solid var(--mainColor);
    color:#FFF;
}

.roaming-components .button-group{
    display:flex;
    /* gap: 20px; */
    padding: 0px 10px;
}
.roaming-components .button-group .button{
    width:100%;
    min-width: 100px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 10px;
}
.roaming-components .button:hover{
    background: var(--mainColor);
    border: 1px solid var(--mainColor);
    color: #FFF;
}
.roaming-components .tab-page-container .button-group .button:hover .icon img {
    filter: none;
    opacity: 1;
}


/*popup*/
.roaming-components .modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

.roaming-components .modal-content{
    width:100%;
    border-radius: 20px;
}

.roaming-components .modal-header{
    border-bottom:none;
    padding-bottom:0;
}
.roaming-components .modal-body{
    padding:40px;
    padding-top:0;
}

@media only screen and (max-width: 768px) {
    .roaming-components{
        --header1: 28px;
        --header2: 20px;
        --header3: 16px;
        --body:14px;
        --remark:12px;
    }
}

@media only screen and (max-width: 640px) {
    .roaming-components .button{
        padding: 10px;
        flex-direction: column;
        justify-content: flex-start;
    }

    .roaming-components .button .icon{
        margin-right:0;
        margin-bottom:5px;
    }

    .roaming-components .tabs .tab:first-child .content{
        border-top-left-radius: 0px;
    }
    .roaming-components .tabs .tab:last-child .content{
        border-top-right-radius: 0px;
    }

    .roaming-components .tab-pages{
        background: none;
    }
    .roaming-components .tab-pages .tab-page{
        border-radius: 0px;
        box-shadow: none;
    }
}

@media only screen and (max-width: 480px) {
    .roaming-components .tabs .tab .content{
        padding:10px;
        font-size:var(--remark);
    }
    .roaming-components .tabs .tab.selected .content{
        font-size:var(--body);
    }
    .roaming-components .tab-pages .tab-page{
        padding: 15px 0px;
    }
    .roaming-components .button-group{
        /* gap: 10px; */
        padding: 0px 11px;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .roaming-components .button-group::-webkit-scrollbar { 
        display: none;
    }
    .roaming-components .button-group .button{
        margin: 0px 4px;
    }
}



@media (min-width: 576px){
    .roaming-components .modal-dialog-centered {
        min-height: calc(100% - (30px * 2));
    }
}