* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-user-select: none;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0 auto;
  padding: 0px;
  min-width: 320px;
  max-width: 640px;
  height: 100%;
  font-family: "微软雅黑", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "华文细黑", "STHeiti", "SimHei", "sans-serif"; 
  font-size: 14px;
  color: #333333;
  line-height: 21px;
}

/* style for topbar */
.topbar {
  background-color: lightgray;
  border-color: #e7e7e7;
  border-width: 0 0 1px 0px;
  border-style: solid;
  border-color: transparent;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  min-height: 50px;
}

.topbar-left {
  float: left;
  padding: 10px 0 0 8px;
}
.topbar-text {
  float: none;
  margin: 0 auto;
  color: #E25252;
  font-weight: bold;
  padding: 15px 15px;
  font-size: 18px;
  line-height: 20px;
  height: 50px;
}

.topbar-text:hover {
  background-color: transparent;
  text-decoration: none;
}

/* a empty block element like div to push the content after topbar */
.topbar-push {
  margin-top: 51px;
}
.topbar-push-more {
  margin-top: 61px;
}

.footer {
  font-size: 16px;
  margin-top: 10px;
}
.footer .copyright {
  font-size: 20px;
}

.container-mobile {
}

.text-content {
  padding: 10px 10px;
  font-size: 18px;
  border: 1px solid lightgray;
  border-radius: 6px 6px 6px 6px;
}
.text-content ul li {
  list-style-type: decimal;
}
.text-content ol li {
  list-style-type: circle;
}

.orderlist {
  background: #f6f6f6;
  border-bottom: 2px dotted #e30;
  line-height: 200%;
  padding: 10px 20px;
}
.orderlist:last-child {
  border-bottom: none;
}
.orderlist > div {
  font-size: 18px;
}
.orderlist > div span {
  width: 100px;
  display: inline-block;
}

/* badges for fb, line and  buy */
.fixed-badges {
  right: 10px !important;
  bottom: 80px;
  z-index: 1000;
  position: fixed;
}

.fixed-badge {
  box-shadow: 0px 6px 13px 0px rgba(0,0,0,0.23);
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  height: 48px;
  width: 48px;
  border: 1px solid #565656;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
}

#fixed-fb {
  font-size: 14px;
  background: #3b5998;
  padding: 4px 0px;
  display: block;
  text-align: center;
  text-decoration: none;
}

#fixed-line {
  background: #00C300;
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 7px;
}

#fixed-cart {
  /*font-size: 16px;*/
  /*padding: 9px;*/
  background: #F35B5B;
  font-size: 14px;
  padding: 4px 0px;
  display: block;
  text-align: center;
  text-decoration: none;
}

/* for sliders */
.newflexslider {
  position:relative;
  height: auto;
  overflow:hidden;
  background:url(loading.gif) 50% no-repeat;
  display:inline-block;
}

.newslides {
  position:relative;
  z-index:1;
  padding: 0px !important;
}

.newslides li {
  height:auto;
  width:100%;
  text-align:center;
}

.newslides li img {
  width:100%;
  /*max-width:640px;*/
  margin:0 auto;
}

.flex-control-nav {
  position:absolute;
  bottom:5%;
  z-index:2;
  width:100%;
  text-align:center;
}

.flex-control-nav li {
  display:inline-block;
  width:10px;
  height:10px;
  margin:0 3px;
}

.flex-control-nav a {
  background:#fe9931;
  color:#fe9931;
  border-radius:8px;
  display:inline-block;
  width:10px;
  height:10px;
  overflow:hidden;
  cursor:pointer;
  border:1px solid #fff;
}

.flex-control-nav .flex-active{
  background:#2b8c00;
  color:#2b8c00;
}

.block-container {
  margin: 10px 0 0 0;
  border-radius: 6px 6px 2px 2px;
  background: #fff;
}

.no-margin {
  margin: 0 !important;
}

/* cart block */
form {
  font-size: 14px;
}
form em {
  color: red;
  vertical-align: middle;
}
form input[name=price] {
  border: none;
  box-shadow: none;
}
form input, form select, form textarea {
  border: 1px solid #ccc !important;
  width: 90%;
  height: 2em;
  line-height: 2em;
  text-indent: 8px;
  border-radius: 2px !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  font-size: inherit;
  padding: 1px 1px !important;
  margin: 0 0 !important;
}
input[type=text]:read-only {
  background: #dddddd;
}

.width-90 {
  width: 90% !important;
}

#cart-block {
  background-color: #f8f8f8;
}

#cart-block .order-title {
  padding: 0 2%;
  background-color: #666;
}
#cart-block .order-title .title {
  display: block;
  color: #fff;
  padding-left: 32px;
  background: url(cart-icon.png) 0 -150px no-repeat;
  background-size: 30px;
  line-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#cart-block .row {
  padding: 5px 0;
  display: -webkit-flex;
  display: flex;
  margin: 0;
}
#cart-block .row .name {
  text-align: right;
  flex-basis: 5em;
  margin-right: 1em;
  flex-shrink: 0;
  line-height: 2.6em;
}
#cart-block .row .buttonlist {
  margin: 0 10%;
  width: 100%;
}
#cart-block .row .buttonlist label {
  width: 100%;
}
#cart-block .row .textlist {
}
#cart-block .row .textlist label {
  font-size: 14px;
  padding: 5px;
  border: 1px solid #ddd;
  margin: 5px 5px 5px 0;
  border-radius: 2px;
  min-width: 40px;
  display: inline-block;
  text-align: center;
}
#cart-block .row .itemlist {
  display: flex;
  flex-wrap: wrap;
}
#cart-block .row .itemlist label {
  font-size: 14px;
  padding: 2px;
  border: 1px solid #ddd;
  margin: 5px 5px 5px 0;
  border-radius: 2px;
  min-width: 40px;
  display: inline-block;
  text-align: center;

  max-width: 100px;
  cursor: pointer;
  position: relative;
}

#cart-block .row .selected {
  background: #ff1433;
  border-color: #ff1433!important;
  color: #fff;
}

#cart-block .row .textbox {
  flex-grow: 2;
}
#cart-block .row .textbox select {
  width: 45%;
}

#cart-block .row .sel-number {
  font-size: 0;
  display: inline-block;
}
.sel-number .minus-number, .sel-number .add-number {
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #222;
  border: 1px solid #ccc;
  font-size: 28px;
  font-family: monospace;
  display: inline-block;
  line-height: 32px;
  vertical-align: middle;
  text-align: center;
}
.minus-number:hover, .add-number:hover {
  background-color: #ff1433;
}
.sel-number input {
  width: 40px;
  font-size: 16px;
  padding: 0 6px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  display: inline-block;
  line-height: 32px;
  vertical-align: middle;
}
#cart-block .payment-type {
  background: url(cart-icon.png) 0 -265px no-repeat;
  background-size: 30px;
  padding-left: 22px;
}
#cart-block .payment-type-0 {
  background: url(payment.png) 0 0 no-repeat;
  padding: 10px 0 10px 32px;
  background-position: 0 0;
}
#cart-block .payment-type-1 {
  background: url(payment.png) 0 0 no-repeat;
  padding: 10px 0 10px 32px;
  background-position: -200px -346px;
}
#cart-block .payment-type-2 {
  background: url(payment.png) 0 0 no-repeat;
  padding: 10px 0 10px 32px;
  background-position: 2px -395px;
}
#delivery-notice {
  padding: 3px 8px;
  margin: 0 auto;
  text-align: center;
  background: #fbeedf;
  border: 1px solid #eed3d7;
  border-radius: 4px;
  color: red;
  width: 90%;
}
#cart-block .payment-info {
  font-size: 14px;
  padding: 6px 8px;
  margin: 0 auto;
  text-align: center;
  background: #fbeedf;
  border: 1px solid #eed3d7;
  border-radius: 4px;
  color: red;
  width: 90%;
}
.submit button {
  width: 90%;
  cursor: pointer;
  font-size: 16px;
  line-height: 42px;
  background: #E30;
  color: #fff;
  border-radius: 4px;
  margin: 10px 0 0 5%;
}

/* ads block */
#ads-block {
}

.ads-item {
  width:48%;
  max-width:48%;
  display:inline-block;
  margin-left:1%;
  border: 1px solid #ccc!important;
}

/* utilities */
.center {
  text-align: center;
}

.clear {
  clear: both;
}
.clearfix {
  overflow: auto;
}
/* a container clear itself */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
.invisible {
  display: none !important;
}

.media-p {
  margin: 0;
  line-height: 0;
}
/* style for specified element */
a {
  color: #337ab7;
  background-color: transparent;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  width: 100%;
  height: auto;
}

h1 {
  font-size: 36px;
  font-weight: normal;
  padding: 5px 0;
  margin: 0;
}

h2 {
  font-size: 30px;
  font-weight: normal;
  padding: 5px 0;
  margin: 0;
}

hr {
  border: none;
  clear: both;
  height: 0;
  background: none;
  margin: 0;
  padding: 0;
  border-bottom: #eee solid 1px;
  margin: 5px 0;
}
em {
  font-style: normal;
  font-weight: 400;
} 

/* color */
.red {
  color: red;
}

.margin-top {
  margin-top: 5px !important;
}
.margin-bottom {
  margin-bottom: 5px !important;
}
