﻿#footer {
    padding-bottom: 100px;
    z-index: 15;
}

#footer.show {
    z-index: 2000001;
}

/* #footer .scroll {
    right: 0;
    bottom: 0;
    display: block;
} */

.floatform {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000201;
    display: flex;
    flex-direction: column;
}

.floatform .topbox {
    color: #fff;
    background-color: #FF0000;
    width: 100%;
    height: 60px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.floatform .topbox .list {
    width:auto;
    position: relative;
    list-style: none;
    flex-grow: 1;
    max-width: 100%;
    flex-basis: 0;
    /* display: flex;
        justify-content: center;
        align-items: center;*/
}

.floatform .topbox .list a,
.floatform .topbox .list button {
    z-index: 4;
    font-weight: 600;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floatform .topbox .list::after {
    content: "";
    transform: skew(-15deg, 0deg);
    transform-origin: bottom left;
    border-right: 2px solid #fff;
    /* border-left: 1px solid #FF0000; */
    position: absolute;
    height: 60px;
    right: 0;
    top: 0;
    width: 100%;
    background-color: #FF0000;
    z-index: 1;
    transition: all .3s;
}

.floatform .topbox .list:nth-last-child(2):after {
    border-right: 0;
}

.floatform .topbox .list.active,
.floatform .topbox .list:hover {
    color: #FF0000;
}

.floatform .topbox .list.active::after,
.floatform .topbox .list:hover::after {
    background: #fff;
    /* border-right: 1px solid #FF0000; */
    box-shadow: 5px 2px 5px 0px rgb(0 0 0 / 20%);
    z-index: 3;
}

.floatform .topbox .top {
    width: 15%;
    cursor: default;
    flex: 0 0 15%;

}
.floatform .topbox .top a{
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s;
}

.floatform .topbox .top img {
    margin-left: 0.5em;
    transform: rotate(180deg);
}

.floatform .topbox .top::after {
    content: "";
    /* background-color: #FF6767; */
    border-left: 2px solid #fff;
    border-right: 0;
}

.floatform .topbox .top:hover {
    color: #fff;
}

.floatform .topbox .top:hover::after {
    background-color: #f00;
}
.floatform .topbox .top.show{
    cursor: pointer
}
.floatform .topbox .top.show a{
    visibility: visible;
    opacity: 1;
}
.floatform .topbox .top.show:hover {
    color: #fff;
}

.floatform .topbox .top.show:hover::after {
    background-color: #000;
}

.floatform .tab-content {
    background-image: url(../image/floatform-open-bg.jpg);
    color: #fff;
    max-height: 65vh;
    overflow: auto;
}

.floatform .tab-content .container {
    padding: 2% 1em;
    max-width: 1350px;
    width: 100%;
}

.floatform .tab-content h3 {
    font-weight: 700;
    padding-bottom: 0.2em;
    padding-top: 0.5em;
}

.floatform .tab-pane {
    display: none;
}

.floatform .tab-pane.show {
    display: block;
}

.floatform .form-style .fieldset-row {
    flex-wrap: wrap;
    width: 49%;
    display: inline-block;
}

.floatform .form-style .form-group {
    width: 49%;
    margin-bottom: 1.2em;
    display: inline-flex;
}

.floatform .form-style .form-group .form-group-input .form-control {
    background: #fff;
    border-radius: 5px;
    display: inline-block;
    color: #000;
}

.floatform .form-style .form-group .form-group-label {
    background: transparent;
}

.floatform .form-style .form-group .form-group-input {
    color: #fff;
    border: 1px solid transparent;
}

.floatform .code {
    display: flex;
    align-items: center;
    margin-left: 1em;
}

.floatform .form-style .fieldset-inputs {
    border-top: 1px solid #DCDCDC;
    border-bottom: 1px solid #DCDCDC;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-top: 1em;
    padding-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
}

.form-style .fieldset.fieldset-info {
    width: 100%;
    display: inline-block;
}

.form-style .fieldset.fieldset-info .fieldset-info-section {
    position: relative;
}

.floatform .form-style .fieldset.fieldset-info p {
    padding-left: 30px;
    line-height: 24px;
    margin-bottom: 1em;
}

.floatform .form-style .fieldset.fieldset-info p+p {
    font-weight: 900;
}

.floatform .form-style .fieldset.fieldset-action .fieldset-row .btn {
    width: 200px;
    height: 60px;
}

.floatform .form-style .fieldset.fieldset-action {
    width: 20%;
    display: inline-block;
    vertical-align: top;
    margin-top: 0;
}

.floatform .form-style .fieldset.fieldset-action .fieldset-row {
    justify-content: flex-end;
}

.floatform .form-style .form-group .form-group-input .bootstrap-select.dropup>.dropdown-menu {
    bottom: auto;
}

.floatform .form-style .fieldset.fieldset-info .checkbox {
    margin-top: 3px;
}

.floatform .form-style .fieldset.fieldset-info .checkbox label {
    background-color: #fff;
}

.floatform .form-style .form-group .form-group-input .bootstrap-select .dropdown-toggle::after {
    display: flex;
    content: "";
    font-family: "icomoon";
    font-size: 18px;
    line-height: 1;
    border: none;
    color: #ffffff;
    background: #f00;
    margin-right: 0;
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 0 5px 5px 0;
}

#at4-share,
#at4-soc {
    top: 30% !important;
}

.at-share-dock.atss {
    top: auto;
    left: 0;
    right: 0;
    bottom: -60px;
    width: 100%;
    max-width: 100%;
    z-index: 1000200;
    box-shadow: none;
    display: none;
}

.at-share-dock.atss.show {
    display: block;
    bottom: 60px;
}

.share {
    position: fixed;
    bottom: 60px;
    right: 0;
    z-index: 200000;
    display: none;
    cursor: pointer;
    width: 46px;
    height: 46px;
    transition: all .4s;
    transition-delay: .1s;
}

.share.on {
    bottom: 108px;
    width: 30px;
    height: 30px;
}

.share img {
    width: 46px;
}

.hid480 {
    display: block;
}

.show480 {
    display: none;
}

.close {
    display: none;
    height: 1em;
    width: 100%;
    background: #181E25;
    position: relative;
    bottom: -60px;
    z-index: -1;
}

.close span {
    color: #FF0202;
    position: absolute;
    right: 0;
    bottom: 1em;
    background-color: #181e25;
    padding: 8px 10px;
    font-weight: bold;
    font-family: "Microsoft JhengHei";
    width: 90px;
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close.show {
    display: none;
}

.noscroll {
    position: fixed;
    width: 100%;
}

html.body-fixed,
html.loading {
    overflow: auto;
}

@media screen and (max-width: 1280px) {
    .floatform .topbox .top img {
        display: none;
    }
}

@media screen and (max-width: 1080px) {
    .floatform .topbox .list {
        font-size: 13px;
    }
    .floatform .tab-content .container {
        background: #181E25;
        padding: 0 1em 2em 1em;
    }
    .floatform .form-style .form-group .form-group-label {
        padding-left: 0;
    }
    .floatform .form-box{
        padding-top: 1em;
    }
    .floatform .form-style .fieldset-row {
        width: 100%;
    }
    .floatform .form-style .form-group .form-group-label {
        width: 120px;
        padding: 10px 0;
    }
    .floatform .form-style .form-group {
        width: 100%;
        margin-bottom: 0.5em;
    }
    .floatform .form-style .fieldset-inputs {
        margin-top: 0em;
        margin-bottom: 1em;
        padding-top: 1em;
        padding-bottom: 1em;
    }
    .floatform .form-style .fieldset-row+.fieldset-row {
        margin-top: 0;
    }
    .floatform .form-style .fieldset.fieldset-info {
        width: 100%;
    }
    .floatform .form-style .fieldset.fieldset-action {
        width: 100%;
        display: block;
    }
    .floatform .form-style .fieldset.fieldset-action .fieldset-row .btn {
        margin: auto;
    }
}

/* @media screen and (min-width: 992px) {
    #footer .scroll {
        position: relative;
    }
} */

@media screen and (max-width: 991px) and (min-width: 480px) {
    #footer .scroll {
        position: relative;
    }
}

@media screen and (max-width: 768px) {
    /* #footer {
        z-index: 2000001;
    } */
    .floatform .topbox .top,
    #footer .scroll {
        display: none !important;
    }
    .floatform .tab-content {
        /* padding: 2em 0; */
        order: 1;
        max-height: 60vh;
        /* background-color: #181E25; */
        background-image: none;
    }
    .floatform .topbox {
        order: 2;
    }
    .floatform .tab-content h3 {
        font-size: 20px;
        line-height: 28px;
        padding-top: 0;
    }
    .floatform .tab-content span {
        font-size: 16px;
        line-height: 22px;
    }
    .floatform .form-style .fieldset.fieldset-action .fieldset-row .btn {
        width: 143px;
        height: 37px;
    }
    .close.show {
        display: block;
        bottom: 0px;
        z-index: -1;
    }
    .hid480 {
        display: none;
    }
    .show480 {
        display: block;
        text-align: center;
        padding: 0 0.5em 0 1.5em;
    }
    .share {
        display: block;
    }
    /* #at-share-dock {
        display: none;
    } */
}

@media screen and (max-width: 479px) {
    .floatform .form-style .form-group .form-group-input .bootstrap-select .dropdown-toggle::after {
        width: 43px;
        height: 100%;
    }
    .form-style .form-group .form-group-input .bootstrap-select>.dropdown-menu {
        top: 45px !important;
    }
    .floatform .code {
        margin-top: 0.5em;
        margin-right: 0;
        margin-left: auto;
    }
}


/* .atss .at-share-btn {
        background-color: rgba(36, 41, 63, 0.9);
    }*/

.atss .at-share-btn .at-icon-wrapper,
.atss a .at-icon-wrapper {
    background-color: transparent !important;
}

.addthis-smartlayers .atss .at-share-btn {
    background-color: #FF0000;
}

.addthis-smartlayers-mobile .atss .at-share-btn {
    background-color: rgba(36, 41, 63, 0.9);
}
