* {
  font-family: "Noto Sans TC", sans-serif;
  text-decoration: none;
  box-sizing: border-box;
}
h2 {
  font-size: 2rem;
}
p {
  margin: 0px;
}

textarea {
  vertical-align: bottom;
  padding: 0.5rem;
}
#output {
  overflow: auto;
}

#output > p {
  overflow-wrap: break-word;
}
.deal-statement {
  background-color: rgb(33, 122, 206);
  color: #fff;
  padding: 5px;
  border: 0px;
  margin-left: 5px;
  border-radius: 3px;
  font-size: 1rem;
}
.statement-modal {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background-color: #fdf9f9;
  border: 1px solid #777777;
  padding: 10px;
  z-index: 1000;
}
#output span {
  color: blue;
}

#output span.error {
  color: red;
}

#tradeInfo td.title {
  background-color: #ffc107;
  letter-spacing: 5px;
  padding: 5px 0;
  font-weight: 900;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  width: 100%;
  background: #ffc107;
  padding: 10px 0;
  cursor: pointer;
  font-size: 20px;
}
#openModal {
  border-bottom: 0.5px solid #000;
  border-left: 0.5px solid #000;
  border-right: 0.5px solid #000;
}
textarea#tradeDetails[disabled] {
  -webkit-text-fill-color: rgba(0, 0, 0, 1);
  -webkit-opacity: 1;
  color: rgba(0, 0, 0, 1);
  font-size: 16px;
}

#tradeInfo table,
#tradeInfo th,
#tradeInfo td {
  border: 0px;
  padding: 0px;
}
.order-title {
  background-color: #ffc107;
  border-top: 0.5px solid #000;
  border-left: 0.5px solid #000;
  border-right: 0.5px solid #000;
  padding: 10px;
  font-size: 20px;
}
#tradeInfo table.order-info-table {
  font-size: 18px;
  border-collapse: collapse;
}
#tradeInfo table.order-info-table td {
  padding: 10px;
  text-align: start;
  border: 0.5px solid #000;
}
/* 合約 */
.contractModal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 20;
  transition: all 0.5s;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

.contract-container {
  height: 80%;
  text-align: start;
  background-color: #fff;
  padding: 50px;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.contract-footer {
  height: 0%;
  text-align: start;
  background-color: #f5f5f5;
  box-shadow: 0px 0px 3px 1px #d6d6d6;
  overflow: auto;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition: all 0.3s;
}
.closeStatementBtn {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 35px;
  height: 35px;
  background-color: #f8f8f8;
  box-shadow: 0px 0px 5px 1px #777777;
  border-radius: 50%;
}

.closeStatementBtn:hover {
  transform: scale(1.1);
  transition: all 0.3s;
}

.closeStatementBtn::after,
.closeStatementBtn::before {
  content: "";
  width: 3px;
  height: 15px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #000;
}

.closeStatementBtn::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.closeStatementBtn::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.closeBtn {
  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 50px;
  height: 50px;
  background-color: #f8f8f8;
  box-shadow: 0px 0px 10px 2px #777777;
  border-radius: 50%;
}

.closeBtn:hover {
  transform: scale(1.1);
  transition: all 0.3s;
}

.closeBtn::after,
.closeBtn::before {
  content: "";
  width: 3px;
  height: 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #000;
}

.closeBtn::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.closeBtn::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.agreement {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.5rem;
}

#agreeContract {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: text-bottom;
}

#btnPayBox a,
#btnContractBox a {
  font-size: 1.5rem;
}

#btnPayBox,
#btnContractBox {
  padding-top: 1rem;
}

.cover {
  position: absolute;
  z-index: -1;
}

@media screen and (max-width: 996px) {
  .order-title {
    font-size: 30px;
  }
  #tradeInfo table.order-info-table {
    font-size: 30px;
  }
  .closeBtn {
    width: 75px;
    height: 75px;
  }

  textarea#tradeDetails[disabled] {
    -webkit-text-fill-color: rgba(0, 0, 0, 1);
    -webkit-opacity: 1;
    color: rgba(0, 0, 0, 1);
    font-size: 2.5rem;
  }

  .contractModal h1 {
    font-size: 50px;
  }

  .contractModal h2 {
    font-size: 45px;
  }

  .contractModal p,
  .contractModal td,
  .contractModal span,
  .contractModal li {
    font-size: 30px;
  }

  .agreement,
  label {
    font-size: 2.5rem;
  }
  .agreement,
  .deal-statement {
    font-size: 2.5rem;
  }

  #agreeContract {
    width: 2.5rem;
    height: 2.5rem;
  }

  #btnPayBox a,
  #btnContractBox a {
    font-size: 2.5rem;
  }
  .contractModal h2.contract-number {
    font-size: 2rem;
  }
  .btn {
    padding: 20px 0;
    font-size: 30px;
  }
  .header {
    font-size: 3rem;
  }
}

.version {
  text-align: right;
}

.logo-version {
  position: relative;
}

.loading-hover {
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  z-index: 1000;
  padding-top: 300px;
  position: fixed;
  top: -10px;
  left: 0;
  right: 0;
}
