body {
  background-color: #f8f8f9;
}

main {
  width: 100%;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  position: relative;
  clear: both;
}

/* ==============================================================
common
================================================================*/
.pic {
  text-align: center;
  position: relative;
}

.pic img {
  max-width: 100%;
  height: auto;
  margin: auto;
  position: relative;
}

.pic.auto {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== mian-section ===== */
.mian-section {
  background-color: #fafafa;
  display: block;
  -webkit-box-shadow: -15px 0px 30px -13px rgba(87, 87, 87, 0.5);
  box-shadow: -15px 0px 30px -13px rgba(87, 87, 87, 0.5);
  z-index: 1;
}

@media (min-width: 768px) {
  .mian-section {
    max-width: 1300px;
    width: 100%;
    min-height: 100vh;
    height: auto;
    top: 0;
    right: 0;
    position: absolute;
  }
}

@media (max-width: 767px) {
  .mian-section {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== cart-close ===== */
.cart-close {
  top: 30px;
  right: 30px;
  z-index: 9;
}

@media (max-width: 767px) {
  .cart-close {
    top: -55px;
    right: 20px;
    background-color: #fff;
  }
  .cart-close .icon {
    font-weight: bold;
    color: #383838;
  }
}

/* ======= cart-aside ======= */
.cart-aside {
  background-color: #262626;
  position: relative;
  float: left;
}

.cart-aside .cart-num-box {
  width: 50px;
  height: 50px;
  border-radius: 99em;
  background-color: transparent;
  display: block;
  text-align: center;
  border: 1px solid #fff;
  position: relative;
}

.cart-aside .cart-num-box span {
  color: #fff;
  display: inline-block;
}

.cart-aside .cart-num-box .icon {
  font-size: 15px;
  line-height: 50px;
}

.cart-aside .cart-num-box .num {
  background-color: #262626;
  font-size: 13px;
  width: 25px;
  height: 15px;
  text-align: center;
  position: absolute;
  top: -2px;
  right: -3px;
}

.cart-aside .cart-main-title {
  font-size: 40px;
  color: #939393;
  white-space: nowrap;
}

.cart-aside .cart-main-title span {
  color: #465477;
}

@media (min-width: 768px) {
  .cart-aside {
    width: 90px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: calc( 1300px - 90px);
    z-index: 2;
  }
  .cart-aside .cart-num-box {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
  }
  .cart-aside .cart-main-title {
    width: 45px;
    position: absolute;
    bottom: 150px;
    left: 20px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
  }
}

@media (min-width: 768px) and (max-width: 1399px) {
  .cart-aside {
    right: auto;
    left: 0;
  }
}

@media (max-width: 767px) {
  .cart-aside {
    width: 100%;
    height: 70px;
    float: none;
    overflow: hidden;
    z-index: 0;
  }
  .cart-aside .cart-num-box {
    display: inline-block;
    top: 0;
    margin-left: 20px;
    position: relative;
  }
  .cart-aside .cart-main-title {
    font-size: 25px;
    display: inline-block;
    position: relative;
    margin-left: 15px;
    top: 4px;
  }
}

/* ======= cart-content ======= */
.cart-content {
  width: calc(100% - 90px);
  padding: 60px 100px;
  float: right;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .cart-content {
    padding: 40px 40px;
  }
}

@media (max-width: 767px) {
  .cart-content {
    width: 100%;
    min-height: 400px;
    padding: 20px 15px;
    background-color: #fafafa;
  }
}

/* ======= cart-nav ======= */
.cart-nav-wrapper {
  width: 100%;
  position: relative;
  border-bottom: 2px solid #f1f1f1;
}

.cart-nav-wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-nav-wrapper ul:after {
  content: "";
  clear: both;
  width: 0;
  height: 0;
  display: block;
  overflow: hidden;
  visibility: hidden;
}

.cart-nav-wrapper ul li {
  margin: 0;
  float: left;
}

.cart-nav-wrapper * {
  position: relative;
}

.cart-nav-box {
  width: 170px;
  padding-bottom: 25px;
}

.cart-nav-box:before {
  content: "";
  width: 98%;
  height: 2px;
  position: absolute;
  display: block;
  left: 0;
  bottom: -2px;
  background-color: transparent;
}

.cart-nav-box span {
  display: block;
  letter-spacing: 1px;
}

.cart-nav-box .step-num {
  font-size: 20px;
  color: #262626;
  text-transform: uppercase;
}

.cart-nav-box .step-name {
  font-size: 14px;
  color: #747474;
}

.cart-nav-box.is-active:before {
  background-color: #828282;
}

@media (min-width: 768px) and (max-width: 991px) {
  .cart-nav-box {
    width: 140px;
  }
}

@media (max-width: 767px) {
  .cart-nav-box {
    display: none;
    padding-bottom: 15px;
  }
  .cart-nav-box.is-active {
    display: block;
  }
}

/* ======= cart-title ======= */
.cart-title {
  color: #262626;
  text-transform: uppercase;
  margin-top: 60px;
  margin-bottom: 30px;
}

.cart-title span {
  display: inline-block;
}

.cart-title .title-en {
  font-size: 40px;
  letter-spacing: 1px;
  position: relative;
}

.cart-title .title-en span {
  color: #465477;
}

.cart-title .title-tw {
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 1px;
  padding-left: 0;
  position: relative;
  vertical-align: top;
}

@media (max-width: 767px) {
  .cart-title {
    margin-top: 30px;
    margin-bottom: 0;
  }
}

/* ======= cart_form ======= */
@media (max-width: 767px) {
  .cart_form {
    margin-top: 20px !important;
    margin-left: 0;
    margin-right: 0;
  }
}

.c_border_bottom {
  border-bottom: 1px solid #e5e5e5;
}

.c_border_top {
  border-top: 1px solid #e5e5e5;
}

/* ======= .cart_table ======= */
.cart_table .cart-tr-end td {
  font-size: 15px;
}

.cart_table .cart-tr-end td .order_pro_sum {
  font-size: 21px;
  font-weight: normal;
}

.cart_table .order_subtotal {
  font-size: 25px !important;
}

.cart_table .order_subtotal .order_pro_sum {
  font-size: 25px !important;
}

@media (min-width: 768px) {
  .cart_table .order_pro_total {
    font-weight: normal;
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .cart_table tr {
    padding: 10px 5px;
  }
  .cart_table tr.has-border-xs {
    background-color: #fff;
    padding: 30px 15px 25px 15px;
    border: 1px solid #dfdfdf;
    margin-bottom: 15px;
  }
  .cart_table .c_table_function2 {
    top: 5px;
  }
}

.btn-group a {
  font-size: 13px;
}

.btn-group a .icon {
  top: 1px;
}

.cart-order-title {
  margin: 0;
  font-size: 15px;
  color: #1b1b1b;
  font-weight: bold;
  padding: 13px 0 13px 0;
  letter-spacing: 1.5px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 1;
}

.cart-order-title .icon-icon_title {
  font-size: 18px;
  margin-right: 15px;
  vertical-align: text-top;
}

/* ==============================================================
	cart.php cart_step1
================================================================*/
.cart-count-wrapper {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cart-count-wrapper input {
  color: #262626;
  text-align: center;
  width: 40px;
  padding: 5px 5px 4px 5px;
  border: none;
  background-color: transparent;
}

.cart-count-wrapper .num-dec {
  width: 25px;
  height: 25px;
  border-radius: 99em;
  background-color: #e1e2e8;
  display: inline-block;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  margin-left: 2px;
  margin-right: 2px;
  -webkit-transition: background 0.35s;
  -o-transition: background 0.35s;
  transition: background 0.35s;
}

.cart-count-wrapper .num-dec:hover {
  background-color: #ccc;
}

@media (min-width: 768px) {
  .cart-count-wrapper {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .cart-count-wrapper {
    padding-top: 15px;
    border-top: 1px dashed #e5e5e5;
    margin-top: 15px;
  }
  .cart-count-wrapper .num-dec {
    width: 35px;
    height: 35px;
    line-height: 34px;
  }
  .cart-count-wrapper .num-dec-decrease {
    float: left;
  }
  .cart-count-wrapper .num-dec-increase {
    float: right;
  }
}

.c_table_num {
  min-width: 115px;
}

.cart_step1 {
  margin-top: 55px;
}

.cart_step1 .order_subtotal {
  font-size: 25px;
}

.cart_step1 .btn-group {
  width: 100%;
  margin-top: 60px;
}

@media (max-width: 767px) {
  .cart_step1 .btn-group {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

/* ==============================================================
	information.php cart_step2
================================================================*/
.cart_step2 .btn-group {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 767px) {
  .cart_step2 .btn-group {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

.infor-wrapper {
  padding: 35px 35px;
}

.infor-wrapper .c_form_box {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 5px;
}

.infor-wrapper label {
  background-color: #fff;
}

.infor-wrapper .icon-chevron-thin-down {
  background-color: #fff;
}

@media (max-width: 991px) {
  .infor-wrapper {
    padding: 25px 0;
  }
}

.check-row, .radio-row {
  z-index: 2;
}

.check-row label, .radio-row label {
  cursor: pointer;
  position: relative;
}

.check-row label:before, .check-row label:after, .radio-row label:before, .radio-row label:after {
  content: "";
  display: block;
  position: absolute;
  pointer-events: none;
}

.check-row label:before, .radio-row label:before {
  width: 16px;
  height: 16px;
  top: 2px;
  left: -24px;
  border: 1px solid #cfcfcf;
  background-color: #fff;
  z-index: 2;
}

.check-row label:after, .radio-row label:after {
  background-color: #fff;
  width: 10px;
  height: 10px;
  top: 5px;
  left: -21px;
  z-index: 3;
  -webkit-transition: background 0.25s;
  -o-transition: background 0.25s;
  transition: background 0.25s;
}

.check-row input[type=checkbox],
.check-row input[type=radio], .radio-row input[type=checkbox],
.radio-row input[type=radio] {
  width: 12px;
  height: 12px;
  top: 2px;
  margin-left: 0;
  margin-right: 5px;
  position: relative;
  outline: none !important;
  opacity: 0;
}

.check-row input:checked ~ label:after, .radio-row input:checked ~ label:after {
  background-color: #a0a0a0;
}

.check-row {
  width: 100%;
  position: absolute;
  top: 10px;
}

.radio-row label:before, .radio-row label:after {
  border-radius: 99em;
}

@media (min-width: 768px) {
  .radio-row {
    width: 100%;
    position: absolute;
    top: 10px;
  }
}

@media (max-width: 767px) {
  .radio-row {
    top: 15px;
    margin-right: -10px;
    margin-left: -10px;
    position: relative;
  }
}

.cart2_table {
  margin-top: 40px;
  border-top: 8px solid #e5e5e5;
}

.cart2_table tr:first-child td {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cart2_table tr:last-child td {
  padding-top: 20px;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .cart2_table {
    margin-top: 30px;
  }
}

/* ==============================================================
	payment.php
================================================================*/
.cart3-section .cart-title {
  margin-bottom: 0;
}

.cart3-section .btn-group {
  width: 100%;
  margin-top: 40px;
}

@media (max-width: 767px) {
  .cart3-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .cart3-section .btn-group {
    margin-top: 10px;
  }
}

@media (min-width: 768px) {
  .cart3-order-row {
    margin-right: -25px;
    margin-left: -25px;
  }
}

.cart3-order-wrapper,
.cart3-payment-wrapper {
  position: relative;
}

@media (min-width: 768px) {
  .cart3-order-wrapper,
  .cart3-payment-wrapper {
    padding: 30px 25px 50px 25px;
  }
}

@media (max-width: 767px) {
  .cart3-order-wrapper,
  .cart3-payment-wrapper {
    padding: 25px 0;
  }
}

.cart3-pro-table tr.bB-dash {
  border-bottom: 1px dashed #e5e5e5;
}

.cart3-pro-table td {
  font-size: 15px;
  color: #262626;
}

.cart-pro-num {
  width: 25px;
  height: 25px;
  border-radius: 99em;
  background-color: #e5e5e5;
  display: inline-block;
  text-align: center;
  line-height: 25px;
  font-size: 13px;
  color: #9c9c9c;
  margin-right: 8px;
}

.cart3-payment-wrapper:before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  background-color: #f4f4f4;
  z-index: 0;
  top: 0;
  left: 0;
}

@media (max-width: 767px) {
  .cart3-payment-wrapper:before {
    width: 120%;
    left: -10%;
  }
}

.payment-radio-wrapper {
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  background-color: #fff;
}

.payment-radio-wrapper .radio-row {
  width: 100%;
  float: none;
  border-bottom: 1px solid #dfdfdf;
  padding: 14px 15px 15px 18px;
  top: 0;
  margin: 0;
  position: relative;
}

.payment-radio-wrapper .radio-row:last-child {
  border-bottom: none;
}

.payment-radio-wrapper .radio-row input {
  margin-left: 20px;
}

.payment-radio-wrapper .radio-row label {
  width: calc(100% - 60px);
  padding-left: 0;
}

.payment-radio-wrapper span {
  display: inline-block;
  position: relative;
}

.payment-radio-wrapper .text {
  font-size: 13px;
  color: #747474;
}

.payment-radio-wrapper .pay-icon {
  float: right;
}

.payment-radio-wrapper .pay-icon .pic {
  width: 30px;
  margin-left: 5px;
}

/* ==============================================================
	complete.php
================================================================*/
.cart4-section .btn-group {
  width: 100%;
}

.complete-title {
  text-align: center;
}

.complete-title .title-en {
  font-size: 45px;
  padding-bottom: 8px;
  border-bottom: 1px solid;
}

@media (max-width: 767px) {
  .complete-title {
    margin-bottom: 20px;
  }
}

.complete-intro {
  width: 100%;
  font-size: 13px;
  line-height: 20px;
  color: #535353;
  text-align: center;
}

.complete-intro strong {
  display: inline-block;
  font-size: 25px;
  color: #465477;
  margin-top: 10px;
}

.complete-atm-intro {
  max-width: 540px;
  width: 100%;
  font-size: 13px;
  line-height: 22px;
  color: #535353;
  background-color: #fff;
  padding: 20px 25px;
  margin: 30px auto;
}

.complete-atm-intro span {
  display: inline-block;
  background-color: #eceef1;
}

.complete-atm-intro strong {
  color: #262626;
}

@media (max-width: 767px) {
  .complete-atm-intro {
    margin-bottom: 0;
  }
}

.complete-table {
  margin-top: 70px;
  margin-bottom: 40px;
}

.complete-table .total_price {
  color: #262626;
  padding-right: 15px;
}

.complete-table .table_pro_num {
  color: #262626;
}

@media (min-width: 768px) {
  .complete-table .complete-tr-total {
    border-top: 8px solid #e5e5e5;
    border-bottom: none;
  }
  .complete-table .complete-tr-total td {
    padding-top: 20px;
    padding-bottom: 0;
  }
  .complete-table .complete-tr-freight td {
    padding-top: 5px;
    padding-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .complete-table {
    margin-top: 20px;
  }
  .complete-table .original_price, .complete-table .special_price {
    width: 49%;
    display: inline-block;
  }
  .complete-table .table_pro_num {
    border-bottom: 1px dashed #e5e5e5;
    padding-bottom: 13px;
    margin-bottom: 0;
  }
  .complete-table .complete-tr-total, .complete-table .complete-tr-freight {
    padding-top: 0;
    padding-bottom: 0;
  }
  .complete-table .complete-tr-freight {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
  }
  .complete-table .cart-tr-end td {
    display: table-cell;
  }
  .complete-table .total-text {
    width: 70%;
  }
  .complete-table .total-num {
    width: 100px;
  }
}

.complete-order-wrapper {
  background-color: #fff;
  padding: 40px;
}

.complete-order-wrapper .order_info_group a {
  color: inherit;
}

.complete-order-wrapper .a-decLine {
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .complete-order-wrapper {
    padding: 30px 20px 0 20px;
  }
}
