/**
 * Global css 
 * CSS classes for all website, like header or footer.
 * Author: Ben
 * Lasted Update Date: 20170517
 */

/* Useful Class */
/* Clearfix, cf */
.cf::after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
/* 為何要 inline block?
.cf { display: inline-block; }
*/
* html .cf { height: 1%; }

/* reset mobile added element */
@media screen and (min-width: 481px) {
    .search_b input {
        text-indent: -999em;
    }
    .app_download .close {
        display: none;
    }
}

/*** commom style ***/
.hide {
    display: none !important;
}

.main {
    min-height: calc(100vh - 394px);
}

.left {
    float: left;
}

.left + .left {
    margin-left: 5px;
}

.right {
    float: right;
}

.right + .right {
    margin-right: 16px;
}

.link {
    color: #005F95;
    cursor: pointer;
}

.link,
.underline,
.taogo-all a.underline span {
    text-decoration: underline;
}

.taogo-all a:hover img {
    text-decoration: none;
}

.green {
    color: #009999;
}

.warn,
.error .error_mesg {
    color: #FF3366;
}

.i-content {
    font-size: 16px;
}

.error .label input,
.error .tgo-select {
    border-color: #FF3366;
}

.i-content + .text {
    margin-left: 3px;
}

/*** Checkbox ***/
.label {
    cursor: pointer;
    padding-left: 0;
}

.label span,
.label a {
    display: inline-block;
    vertical-align: middle;
}

.label input[type="checkbox"],
.label input[type="radio"],
.checkbox .icon {
    display: none;
}

.label .checkbox {
    font-size: 13px;
    width: 16px;
    height: 16px;
    border: 1px solid #707070;
    border-radius: 3px;
    box-sizing: border-box;
    margin-right: 2px;
}

.label .checkbox .icon {
    line-height: 16px;
}

.label .checkbox + .text {
    margin-left: 4px;
}

.label [type="checkbox"]:checked + .checkbox {
    background-color: #FF89B4;
    border: 0;
}

.label [type="checkbox"]:checked + .checkbox .icon {
    display: block;
    color: #FFF;
    text-align: center;
}

/* disabled */
.label [type="checkbox"] + .checkbox.disabled {
    background-color: #d7d7d7;
    border: 0;
    cursor: not-allowed;
}

/*** Radiobox ***/
.label [type="radio"]:checked + .radio-box {
    color: #FF89B4;
}

.label [type="radio"]:checked + .radio-box .tgo-radio {
    border-width: 4px;
}

.label [type="radio"]:checked + .radio-box .text {
    color: #000;
}

.label [type="radio"][disabled] {
    color: #999;
}

/*** Grid ***/
.row + .row {
    margin-top: 24px;
}

.row:after {
    content: '';
    display: block;
    clear: both;
}

.row [class*="col"] {
    float: left;
}

.row > [class*="col"] + [class*="col"] {
    padding-left: 15px;
}

.col-11 {
    width: calc(100% / 12 * 11);
}

.col-10 {
    width: calc(100% / 12 * 10);
}

.col-9 {
    width: calc(100% / 12 * 9);
}

.col-8 {
    width: calc(100% / 12 * 8);
}

.col-7 {
    width: calc(100% / 12 * 7);
}

.col-6 {
    width: calc(100% / 12 * 6);
}

.col-5 {
    width: calc(100% / 12 * 5);
}

.col-4 {
    width: calc(100% / 12 * 4);
}

.col-3 {
    width: calc(100% / 12 * 3);
}

.col-2 {
    width: calc(100% / 12 * 2);
}

.col-1 {
    width: calc(100% / 12 * 1);
}

/*** Title ***/
.tgo-tl {
    line-height: 25px;
    font-size: 18px;
    color: #000;
}

.tgo-tl span {
    display: inline-block;
    vertical-align: middle;
}

.tgo-tl span + span {
    margin-left: 3px;
}

.tgo-tl .i-content {
    background-color: #45C7C7;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
}

.tgo-tl .icon {
    color: #fff;
    font-size: 15px;
}

.tgo-p {
    font-size: 15px;
    margin: 20px 0;
}

/*** Input ***/
.tgo-input {
    font-size: 15px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.tgo-input input {
    padding: 5px 9px;
    border-radius: 4px;
    border: 1px solid #DFDFDF;
}

.tgo-input input:focus {
    border-color: #0099FF;
}

.tgo-input .text {
    border-right: 1px solid #DFDFDF;
    padding-right: 14px;
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
}

/*** Select ***/
.tgo-select {
    min-height: 32px;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    box-sizing: border-box;
}

.tgo-select * {
    display: inline-block;
    vertical-align: middle;
}

.tgo-select label {
    min-width: 120px;
    height: 100%;
}

.tgo-select select {
    width: 100%;
    height: 100%;
    font-size: .75rem;
    text-align: left;
    border: 0;
    border-radius: 4px;
    padding: 7px 10px;
    position: relative;
    z-index: 5;
    outline: 0;
    cursor: pointer;
}

.select-icon-content {
    width: 30px;
    height: 100%;
    background-color: #FFF;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.tgo-select .icon {
    color: #C0C6C8;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

/*** btn ***/
.tgo-btn {
    min-width: 120px;
    padding: 10px 0;
    line-height: 1;
    padding: 17px 13px;
    font-size: 15px;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: background-color .25s linear;
    display: inline-block;
}

.tgo-btn span {
    display: inline-block;
    vertical-align: middle;
}

.tgo-btn:hover {
    text-decoration: none;
}

.tgo-btn + .tgo-btn {
    margin-left: 16px;
}

.tgo-btn-sm {
    min-width: 68px;
    padding: 8px;
}

.tgo-btn-lg {
    padding-left: 34px;
    padding-right: 34px;
}

.tgo-default {
    background-color: #FF89B4;
}

.tgo-default:hover {
    background-color: #CC6E90;
}

.tgo-white {
    background-color: #FFF;
    color: #FF89B4;
    border: 1px solid #FF89B4;
}

.tgo-white-with-hover:hover {
    border-width: 2px;
}

.btn-primary {
    background-color: #45C7C7;
}

.btn-primary:hover {
    background-color: #379F9F;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-normal {
    background-color: #fff;
    border: 1px solid #DFDFDF;
    color: #666;
}

/*** Bubble ***/
.bubble {
    min-width: 20px;
    height: 20px;
    text-align: center;
    color: #FFF;
    background-color: #FF89B4;
    border-radius: 4px;
    padding: 0 5px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.active .bubble {
    color: #45C7C7;
    background-color: #FFF;
}
