@font-face {
  font-family: NotoSansTC;
  src: url("../fonts/NotoSansTC-Bold.otf"),
    url("../fonts/NotoSansTC-Regular.otf");
}

@font-face {
  font-family: PingFangTC;
  src: url("../fonts/PingFangTC-Regular.otf"),
    url("../fonts/PingFangTC-Thin.otf");
}

* {
  margin: 0;
  padding: 0;
  font-family: NotoSansTC-Regular;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: 3f3a3a;
}

.item-remove:hover {
  content: url("../images/cart-remove-hover.png");
  cursor: pointer;
}

.alert-form {
  border: 1px solid red;
}

input {
  padding: 5px;
}

@media (min-width: 1280px) {
  main {
    margin: 117px auto 148px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 1160px;
  }

  .m-use {
    display: none;
  }

  .cart-list {
    display: flex;
    flex-direction: column;
  }

  .product-column-header {
    display: flex;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 14px;
  }

  .product-title-cart {
    width: 602px;
    height: 19px;
  }

  .product-column-title {
    display: flex;
    justify-content: flex-start;
    /* width: 552px; */
  }

  .title-count {
    margin-right: 145px;
  }

  .title-unit-price {
    margin-right: 137px;
  }

  .title-total-price {
    margin-right: 174px;
  }

  .product-list {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    /* height: 596px; */
    padding: 39px 31px 10px;
    border: solid 1px #979797;
  }

  .product-item {
    display: flex;
    /* justify-content: space-between; */
    margin-bottom: 30px;
    height: 151.5px;
    font-family: NotoSansCJKtc;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
  }

  .item-intro {
    display: flex;
    width: auto;
    flex-direction: row;
    justify-content: flex-start;
  }

  .item-img {
    width: 114px;
    height: 151.5px;
  }

  .item-info {
    display: flex;
    flex-direction: column;
    margin-left: 18px;
    width: 276px;
  }

  .item-name {
    height: 19px;
    margin-bottom: 18px;
    text-align: left;
    white-space: nowrap;
  }

  .item-id {
    height: 19px;
    margin-bottom: 22px;
  }

  .item-color {
    height: 19px;
    margin-bottom: 10px;
    width: 64px;
    display: flex;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .item-size {
    width: 64px;
    display: flex;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .item-price {
    display: flex;
    align-items: center;
    padding-top: 3px;
  }

  .item-count {
    box-sizing: border-box;
    margin-right: 106px;
    width: 80px;
    height: 30px;
    border-radius: 8px;
    background-color: #f3f3f3;
    padding-left: 11px;
    margin-left: 140px;
  }

  .item-unit-price {
    width: 80px;
    margin-right: 95px;
  }

  .item-total-price {
    width: 80px;
    margin-right: 60px;
  }

  .payment {
    width: 100%;
    height: 74px;
    margin: 26px 0 18px;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    font-family: PingFangTC-Regular;
  }
  .payment-country {
    display: flex;
    padding: 0 10px 0 30px;
    align-items: center;
    font-size: 16px;
  }

  .payment-method {
    display: flex;
    padding: 0 0 0 72px;
    font-size: 14px;
    align-items: center;
  }

  .payment label {
    margin-right: 20px;
    font-size: 16px;
  }

  .payment select {
    width: 171px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
    border: solid 1px #979797;
    padding-left: 12px;
    padding-bottom: 2px;
    background-color: #f3f3f3;
  }

  .reminder {
    width: 100%;
    height: 78px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0px;
    margin-bottom: 50px;
  }

  .order-info {
    width: 100%;
    position: relative;
  }

  .order-title-text {
    padding-bottom: 13px;
    margin-bottom: 26px;
    border-bottom: 1px solid black;
    font-weight: bold;
  }

  .form-text {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .form-text input {
    width: 572px;
    height: 28px;
    border: 1px solid black;
    margin-right: 477px;
    border-radius: 8px;
  }

  .form-text-name {
    margin-bottom: 9px;
  }

  .name-required-warn {
    margin-bottom: 27px;
    display: flex;
    justify-content: flex-end;
    margin-right: 477px;
    color: #8b572a;
  }

  .form-radio {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 37px;
    /* margin-bottom: 50px; */
    /* border-bottom: 1px solid black; */
  }

  .form-radio legend {
    white-space: nowrap;
    margin-right: 52px;
  }

  .form-radio div {
    display: flex;
    width: 574px;
    align-items: center;
  }

  .form-radio input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
  }

  .form-radio label {
    margin-right: 30px;
    line-height: 26px;
    font-size: 16px;
    letter-spacing: 0.8px;
  }

  .pay-title-text {
    padding-bottom: 13px;
    margin-bottom: 26px;
    border-bottom: 1px solid black;
    font-weight: bold;
  }

  .order-sum {
    width: 240px;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-left: 925px;
  }

  .order-block {
    height: 36px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .price-set {
    height: 36px;
    display: flex;
    align-items: center;
  }

  .order-block .title {
    font-size: 16px;
    padding-left: 8px;
    padding-top: 8px;
  }

  .order-block .dollar {
    font-size: 16px;
    padding-top: 10px;
    padding-right: 10px;
  }

  .order-block .price {
    height: 100%;
    font-size: 30px;
    padding-top: 15px;
    letter-spacing: 2px;
  }

  .order-total-block {
    border-top: 1px solid black;
    padding-top: 20px;
    margin-bottom: 0;
  }

  .click-to-paid {
    height: 60px;
    background-color: #000000;
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 4px;
    white-space: nowrap;
    padding: 13px 72px 17px;
    margin-top: 50px;
  }
  .tpfield {
    height: 40px;
    width: 300px;
    border: 1px solid gray;
    margin: 5px 0;
    padding: 0 5px;
  }

  .tpfield-wrapper {
    display: flex;
    margin-bottom: 30px;
  }

  .tpfield-wrapper label {
    width: 100px;
    display: flex;
    align-items: center;
  }

  .tpfield {
    width: 572px;
    height: 28px;
    border: 1px solid black;
    margin-right: 477px;
    border-radius: 8px;
  }
}
@media (min-width: 0px) and (max-width: 1279px) {
  /* 手機版用order掉換位置 */
  /* https://webdesign.tutsplus.com/tutorials/a-comprehensive-guide-to-flexbox-ordering-reordering--cms-31564 */

  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100vw - 48px); /*312*/
    margin: 20px 24px 28px;
  }

  .cart-list {
    display: flex;
    flex-direction: column;
  }

  .product-column-header {
    display: flex;
    flex-wrap: wrap;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    /* margin-bottom: 10px; */
    border-bottom: 1px solid #979797;
    padding-bottom: 10px;
  }

  .product-title-cart {
    width: 602px;
    height: 19px;
  }

  .product-column-title {
    display: none;
  }

  .product-list {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    /* border: solid 1px #979797; */
  }

  .product-item {
    /* box-sizing: border-box; */
    display: flex;
    flex-direction: column;
    /* height: 261px; */
    padding: 20px 0 20px;
    /* margin: 20px 0; */
    font-family: NotoSansCJKtc;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
    position: relative;
    border: 0;
    /* border-top: 1px solid #979797; */
    border-bottom: 1px solid #979797;
    overflow: hidden;
  }

  .product-item:first-of-type {
    padding-top: 10px;
  }

  .item-intro {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
  }

  .item-img {
    height: 151.5px;
  }

  .item-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    width: 164px;
    margin-left: 7px;
  }

  .item-name {
    height: 19px;
    text-align: left;
    margin-top: 2px;
    margin-bottom: 18px;
    margin-left: 3px;
  }

  .item-id {
    height: 19px;
    margin-left: 3px;
    margin-bottom: 22px;
    letter-spacing: 0px;
  }

  .item-color {
    height: 19px;
    margin-bottom: 10px;
    width: 64px;
    display: flex;
    justify-content: space-around;
    white-space: nowrap;
    margin-left: 6px;
  }

  .item-size {
    width: 64px;
    display: flex;
    justify-content: space-around;
    white-space: nowrap;
  }

  .m-title {
    display: flex;
    align-items: center;
    margin-top: 20.5px;
  }

  .m-title-count {
    width: 80px;
    text-align: center;
    margin-left: 12px;
  }

  .m-title-unit-price {
    margin-left: 50px;
  }

  .m-title-total-price {
    margin-left: 77px;
  }

  .item-price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 9px;
  }

  .item-count {
    width: 80px;
    height: 30px;
    border-radius: 8px;
    background-color: #f3f3f3;
    padding-left: 13px;
    margin-left: 12px;
    margin-right: 40px;
  }

  .item-unit-price {
    width: 46px;
    padding-top: 5px;
    margin-right: 58px;
  }

  .item-total-price {
    width: 46px;
    padding-top: 5px;
  }

  .web-item-remove {
    display: none;
  }

  .m-item-remove {
    box-sizing: border-box;
    position: absolute;
    top: 0%;
    right: -13px;
    margin-top: 10px;
  }

  .product-item:first-child .m-item-remove {
    box-sizing: border-box;
    position: absolute;
    top: 0%;
    right: -13px;
    margin-top: 0px;
    /* background-color: blue; */
  }

  .payment {
    width: 100%;
    height: 164px;
    margin: 19px 0 10px;
    background-color: #e8e8e8;
    display: flex;
    flex-direction: column;
    /* justify-content: space-around; */
    align-items: flex-start;
    font-family: PingFangTC-Regular;
  }
  .payment-country {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    margin: 10px 0 20px 10px;
  }

  .payment-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    margin: 0 0 20px 10px;
  }

  .payment label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .payment select {
    width: 292px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
    border: solid 1px #979797;
    padding-left: 12px;
    padding-bottom: 2px;
    background-color: #f3f3f3;
  }

  .reminder {
    width: 100%;
    height: 130px;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0px;
    margin-bottom: 20px;
  }

  .reminder-li {
    font-size: 10px;
  }

  .order-info {
    width: 100%;
    position: relative;
  }

  .order-title-text {
    border-bottom: 1px solid black;
    margin-bottom: 19px;
    padding-bottom: 8px;
    font-weight: bold;
  }

  .form-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .form-text input {
    width: 100%;
    height: 28px;
    border: 1px solid black;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .form-text label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .form-text-name input {
    margin-bottom: 7px;
  }

  .name-required-warn {
    font-size: 14px;
    display: flex;
    justify-content: center;
    color: #8b572a;
    margin-bottom: 17px;
  }

  .form-radio {
    display: flex;
    flex-direction: column;
    /* white-space: nowrap; */
    width: 100%;
    font-size: 14px;
    margin-top: 4px;
  }

  .m-form-radio-line {
    width: calc(100vw - 48px);
    /* border-bottom: 1px solid black; */
    margin: 0;
    padding: 0;
  }

  .form-radio legend {
    white-space: nowrap;
    margin-bottom: 15px;
  }

  .form-radio-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 25px;
  }

  .form-radio input {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }

  .form-radio-block-time {
    margin-right: 26px;
  }

  .form-radio-block-nolimit {
    margin-right: 0px;
  }

  .pay-title-text {
    border-bottom: 1px solid black;
    margin-bottom: 19px;
    padding-bottom: 8px;
    font-weight: bold;
  }

  .order-sum {
    /* width: 240px; */
    display: flex;
    flex-direction: column;
    margin-top: 24px;
  }

  .order-sum-info {
    margin-left: calc(100vw - 249px);
    width: 201px;
  }

  .order-block {
    height: 36px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .price-set {
    height: 36px;
    display: flex;
    align-items: center;
  }

  .order-block .title {
    font-size: 14px;
    padding-top: 8px;
  }

  .order-block .dollar {
    font-size: 16px;
    padding-top: 10px;
    padding-right: 10px;
  }

  .order-block .price {
    height: 100%;
    font-size: 30px;
  }

  .order-delivery-block {
    margin-bottom: 4px;
  }

  .order-total-block {
    margin-top: 23px;
    border-top: 1px solid black;
    padding-top: 15px;
    margin-bottom: 0px;
  }

  .click-to-paid {
    height: 44px;
    width: 100%;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 3.2px;
    white-space: nowrap;
    margin-top: 36px;
    /* padding: 13px 72px 17px; */
  }

  .pay-info {
    width: 100%;
  }

  .tpfield {
    height: 40px;
    width: 300px;
    border: 1px solid gray;
    margin: 5px 0;
    padding: 5px;
  }

  .tpfield-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .tpfield-wrapper label {
    width: 100px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .tpfield {
    width: 100%;
    height: 28px;
    border: 1px solid black;
    margin-right: 477px;
    border-radius: 8px;
  }
}
