@charset "UTF-8";

/* Large and Medium devices (desktops, tablets less than 1199px) */
@media (max-width: 1024px) {

  /*
  html,
  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
*/
  .container-fluid {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.Inside-page .container-fluid {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}

/* Medium devices (desktops, tablets less than 991px) */
@media (max-width: 768px) {

  /*navbar*/
  .w3-sidebar {
    width: 100% !important;
  }

  .w3-sidebar .item .introbox i.fa-times-circle {
    font-size: 27px;
    float: none;
    position: absolute;
    right: 14px;
  }

  .pdlist .pdlist-body {
    min-height: 240px;
  }

  .pdlist .pdlist-body .pd-img img {
    width: 90%;
  }

  .pdlist .pdlist-body .pd-text .pd-text-right {
    width: 100%;
  }

  .pdlist .pdlist-body .pd-text .pd-text-left {
    width: 100%;
  }

  /*paymentInfo*/
  .databox-bg .databox-list {
    padding: 10px;
    margin: 10px 0;
  }

  .databox-bg .databox-list.purchaser {
    padding: 10px 15px;
    margin: 15px 0;
  }

  .databox-bg .databox-list.purchaser .p_title {
    width: 100%;
  }

  .databox-bg .databox-list.purchaser .p_border {
    width: 100%;
  }

  .searchbar input {
    width: 68%;
  }

  /*result*/
  .cartlistbox {
    margin-top: 30px;
  }

  .cartlist--checkbox .cartlist--checkbody .pd-text .pd-name {
    width: 70%;
    height: 30px;
  }

  /*record*/
  body.record .panel-heading table td {
    font-size: 17px;
  }

  body.record .table-selectable tr.tablesorter-ignoreRow .btn.btn-filter,
  body.record .table-selectable tr.tablesorter-ignoreRow .btn.btn-clear {
    padding: 10px 8px;
  }
}

/* Small devices (tablets, phones less than 767px) */
@media (max-width: 767px) {
  body.Inside-page .container-fluid {
    padding-right: 10px;
    padding-left: 10px;
  }

  .discount-container .discount-left {
    margin-left: 44%;
  }

  .cartlist .cart-body .pd-detail-img {
    width: 100px;
  }

  /*record*/
  body.record .panel-collapse {
    padding-top: 15px;
  }

  body.record .table.table-selectable tr.tablesorter-ignoreRow td {
    width: 100%;
    display: block;
    padding: 10px 15px;
  }

  tr.tablesorter-ignoreRow td:last-child:before {
    content: attr(data-th) " ";
    width: unset;
  }

  tr.tablesorter-ignoreRow td .btn-filter {
    width: 44%;
    display: inline-block;
    margin-right: 10px;
  }

  tr.tablesorter-ignoreRow td .btn-clear {
    width: 44%;
    display: inline-block;
  }

  .table.table-selectable th {
    display: none;
  }

  .rwd-table {
    min-width: 100%;
  }

  .rwd-table th {
    display: none;
  }

  .panel-heading table td {
    width: 100%;
    text-align: left;
    display: block;
  }

  .rwd-table td span {
    width: 76%;
    display: inline-block;
    vertical-align: top;
  }

  .rwd-table td:before {
    content: attr(data-th) " : ";
    font-weight: bold;
    width: 22%;
    display: inline-block;
  }

  .rwd-table tr:nth-of-type(2n) {
    background: #eee;
  }

  .rwd-table td {
    width: 100%;
    display: block;
    border: 0;
  }

  .table-myorder.rwd-table td:first-child {
    border-top: 2px solid #6d0f0c;
  }

  .panelList .table-info td {
    width: 100%;
    display: block;
    border: 0;
  }

  .panelList .table-info td.heading {
    width: 100%;
    font-size: 16px;
    text-align: left;
    color: #a6a6a6;
  }

  /*member*/
  body.member .panel-collapse {
    padding-top: 15px;
  }

  body.member .btn-tracking {
    -webkit-box-shadow: unset;
    box-shadow: unset;
  }

  body.member table.module--body-content_table {
    margin-top: 15px;
  }

  body.member .table.table-selectable tr.tablesorter-ignoreRow td {
    width: 100%;
    display: block;
    padding: 10px 15px;
  }

  tbody.sortable td .btn-edit {
    width: 100%;
  }

  tbody.sortable td:last-child:before {
    content: attr(data-th) " ";
    width: unset;
  }

  .panel-default>.panel-heading {
    padding: 5px 10px;
  }

  .panel-default>.panel-heading table td {
    word-break: break-all;
  }

  .detail-number.flex {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .loginbox .loginbox-logo {
    margin-top: 40px;
    margin-bottom: 0;
  }
}

/* iphone6 plus , iphone6 , iphone5, other phones….*/
@media (max-width: 540px) {

  /*navbar*/
  .navbar .navbar-tool {
    float: none;
  }

  .w3-sidebar {
    width: 100% !important;
  }

  /*paymentInfo*/
  .cartlist {
    padding: 20px 10px;
  }

  .cartlist .cart-body .pd-detail {
    width: 15%;
  }

  .purchaser .p_border p {
    width: 100%;
    margin: 12px 0 0 0;
  }

  .searchbar input {
    width: 78%;
  }

  .searchbar .btn.btn-search {
    min-width: inherit;
  }

  .modal-body {
    padding: 15px 15px;
  }

  .discount-container .discount-left {
    margin-left: 0;
  }

  .twzipcode span {
    display: inline-block;
    width: 100%;
    margin-bottom: 9px;
    margin-right: 0;
  }

  /*result*/
  .cartlist--checkbox .cartlist--checkbody .pd-text .pd-name {
    width: 52%;
    height: 30px;
  }

  /*record*/
  .rwd-table td:before {
    width: 30%;
  }

  .rwd-table td span {
    width: 68%;
  }
}

@media (max-width: 480px) {

  .pd-name,
  .cartlist .pd-name {
    height: 50px;
  }

  /*record*/
  .rwd-table td:before {
    width: 100%;
    margin-bottom: 15px;
  }

  .rwd-table td span {
    width: 100%;
  }

  .btn.btn-primary {
    width: 100%;
    margin-bottom: 5px;
  }

  body.record .panel-heading table td {
    border-bottom: 1px solid #888;
  }

  /*order*/

  .cartlist .pdlist {
    padding: 0;
  }

  .btn.btn-default {
    padding: 8px 7px;
  }
}

@media (max-width: 575px) {
  .stock.flex {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .cartlist .stock-headquarters:before {
    content: "";
  }

  .cartlist .cart-body .number-item,
  .cartlist .cart-body .number-item.number-item2 {
    width: 100%;
  }
}

@media (max-width: 414px) {

  /*
  .pdlist .pd-img {
    width: 80px;
  }
  .pdlist .pd-text .pd-name {
    height: 47px;
  }
  .pdlist .pd-text .pd-text-area .pd-text-right {
    width: 100%;
  }
  .pdlist .pd-text .pd-text-area .pd-text-left {
    width: 100%;
  }
*/
  /*order*/
  nav.stepbox>span.step:before,
  nav.stepbox>span.step.step2:before {
    content: "";
  }


  .cartlist .cart-body .number-item .title {
    font-size: 15px;
  }

  .databox-bg {
    margin-left: -10px;
    margin-right: -10px;
  }

  .databox-bg .data-title {
    margin: 20px 10px 15px;
  }

  .databox-bg .databox-list .datalist .input-list {
    padding: 4px 10px;
  }

  .databox-bg .databox-list .datalist .my-message {
    padding: 4px 10px;
  }

  .btn {
    min-width: inherit;
    width: 100%;
  }

  .btn.btn-edit {
    width: 100%;
  }

  .searchbar input {
    width: 100%;
  }

  .searchbar .btn.btn-search {
    margin-left: 0;
    margin-top: 10px;
  }

  .btn.btn-choose {
    position: relative;
    top: 0;
  }

  .btn.btn-gray {
    margin: 15px 0;
  }

  .btnbox.line {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  body.order .btnbox.line {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }

  .btnbox.line .m-r-10 {
    margin-right: 0;
  }

  body.order .btnbox.line .m-r-10 {
    margin-top: 15px;
  }

  .discount-container .discount-left input.discount-input {
    width: 120px;
  }

  .discount-container .discount-left input.discount-input {
    width: 100px;
  }

  /*result*/
  .cartlist--checkbox .cartlist--checkbody .pd-text .price-right {
    position: relative;
    right: 0;
    top: 0;
  }

  .cartlist--checkbox .cartlist--checkbody .pd-text {
    margin-left: 78px;
  }

  .cartlist--checkbox .cartlist--checkbody .pd-text .pd-name {
    width: 100%;
    height: 52px;
  }

  /*member*/
  .module--head .btn.btn-plus {
    width: inherit;
  }
}

/* iphone5 額外微調*/
@media (max-width: 320px) {
  .discount-container .discount-left input.discount-input {
    width: 78px
  }

  .cartlist .pd-name {
    height: 54px;
  }

}