@charset "utf-8";

/*------------------form effect-------------------*/

input,
textarea,
body select {
    font-family: "Roboto", "微軟正黑體", sans-serif;
    font-size: 14px;
    padding: 0;
    margin: 0;
    color: #333;
    /*避免select長度不一*/
    box-sizing: border-box;
    display: inline-block;
    outline: none;
}

input:focus {
    outline: none;
}

::-webkit-input-placeholder {
    /* WebKit browsers */
    color: #777;
}

:-ms-input-placeholder {
    /* WebKit browsers */
    color: #777;
}


/*Change text in autofill textbox*/

input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

.textStyle {
    border: 1px solid #ddd;
    width: inherit;
    padding: 9px;
    transition: all 0.2s ease-out;
    border-radius: 3px;
}

.textStyle:focus {
    border-top: 1px solid #f1f1f1;
    border-left: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #3F51B5;
    background: #f1f1f1;
    transition: all 0.2s ease-out;
    border-radius: 0;
}

label.error {
    color: #E42212;
    font-size: 13px;
    display: block;
}

.validcode {
    margin: 0 5px;
}

.refresh {
    display: inline-block;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
    background-image: url(../images/refresh.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.formTitle {
    font-weight: bold;
    margin-bottom: 5px;
}


/*.largeItem {
	width: 1.1em;
	height: 1.1em;
	vertical-align: text-bottom;
	margin-right: 3px;
}*/


/*------取得驗證碼---------*/

.formFloat {
    overflow: auto;
}

.formFloat li {
    width: 49%;
    margin-right: 2%;
    float: left;
}
.formFloat li.ml {
    width: 49%;
    margin-right: 2%;
    float: left;
}

.formFloat li:nth-child(even) {
    margin: 0;
}

.formFloat li.FBpart {
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
    height: 200px;
}


/*-----------------------upload filse-----------------------*/

.upload div {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #eee;
    cursor: pointer;
    position: relative;
    outline: 3px dashed #ccc;
    outline-offset: -3px;
    background-image: url(../images/member/upload.svg);
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center center;
}

.upload div.bgRemove {
    background-image: none;
}

.upload div p {
    width: 100%;
    position: absolute;
    top: 50%;
    text-align: center;
    color: #666;
    padding: 0 10px;
    margin-top: -10px;
}

.upload input[type=file],
#productPic input[type=file] {
    display: none;
}

.imgBorder {
    border: 1px solid #e0e0e0;
}


/*-----------------------upload filse-----------------------*/

.update div {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #eee;
    cursor: pointer;
    position: relative;
    outline: 5px dashed #ccc;
    outline-offset: -5px;
    background-image: url(../images/member/update.svg);
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center center;
}

.update div.bgRemove {
    background-image: none;
}

.update div p {
    width: 100%;
    position: absolute;
    top: 50%;
    text-align: center;
    color: #666;
    padding: 0 10px;
    margin-top: -10px;
}

.update input[type=file],
#productPic input[type=file] {
    display: none;
}

.imgBorder {
    border: 1px solid #e0e0e0;
}

.hide {
    display: none;
}

.picLabel {
    width: 170px;
    height: 170px;
    display: block;
    cursor: pointer;
}


/*-----------------------for PC-----------------------*/

@media screen and (min-width:801px) {
    .maxText {
        width: 100%;
    }
    .largeText {
        width: 80%;
    }
    .midText {
        width: 45%;
    }
    .smallText {
        width: 120px;
    }
    .priceSort {
        width: 115px;
    }
    /*------------- checkbox ---------------*/
    .categoryAll li {
        width: 33%;
        display: inline-block;
    }
    /*------storeKeyword---------*/
    .storeKeyword li {
        width: 19.2%;
        margin: 0 1% 1% 0;
        float: left;
    }
    .storeKeyword li:nth-child(5n) {
        margin-right: 0;
    }
    /*----------------add product-----------------*/
    #productPic {
        text-align: center;
    }
    #productPic li {
        width: 18%;
        margin-right: 2%;
        display: inline-block;
        text-align: center;
    }
    #productPic li:nth-child(5n) {
        margin-right: 0;
    }
    .uploadWrapper {
        width: 20%;
    }
}


/*------------------for mobile------------------------*/

@media screen and (max-width:800px) {
    .maxText,
    .largeText,
    .midText {
        width: 100%;
    }
    .smallText {
        width: 120px;
    }
    /*------------- checkbox ---------------*/
    .categoryAll li {
        width: 49%;
        display: inline-block;
    }
    /*------storeKeyword---------*/
    .storeKeyword li {
        width: 49%;
        margin: 0 1% 1% 0;
        float: left;
    }
    .storeKeyword li:nth-child(even) {
        margin-right: 0;
    }
    /*----------------add product-----------------*/
    #productPic {
        overflow: auto;
        text-align: center;
    }
    #productPic li {
        width: 48%;
        margin: 0 3% 20px 0;
        display: inline-block;
        text-align: center;
    }
    #productPic li:nth-child(even) {
        margin-right: 0;
    }
    .uploadWrapper {
        width: 60%;
        margin: 0 auto;
    }
}