/* ================= PAGE ================= */
main {
  padding: 10px 0;
  text-align: center;
}

.checkout {
  padding: 50px 0 0;
}

h1 {
  margin: 0 0 10px;
  padding: 0;
  text-align: center;
  font-size: clamp(20px, 6vw, 40px);
  font-weight: 900;
}

/* ================= TABLE ================= */
.payment-table {
  padding: 50px 0;
}

.table {
  width: 60%;
  margin: auto;
}

.table table {
  border-collapse: collapse;
}

.table table td {
  padding: 20px 40px !important;
  text-align: left;
}

.table table td:last-child {
  text-align: right;
}

.table table td.product-detail-cell {
  text-align: left;
}

.checkout-products {
  display: grid;
  gap: 10px;
  min-width: 280px;
}

.checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--text), 0.12);
}

.checkout-product:last-child {
  border-bottom: 0;
}

.checkout-product strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.product-prices {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
  font-weight: 800;
}

.product-prices del {
  color: rgba(var(--text), 0.52);
  font-weight: 600;
}

.offer-price {
  color: rgba(var(--green), 1);
}

.table table td svg {
  margin-right: 10px;
  color: rgba(var(--text), 0.5);
}
table td:first-child{
  width: 190px;
}
table tr:nth-child(odd) td {
  background: rgba(var(--theme), 0.06);
}

table tr:nth-child(even) td {
  background: none;
}

table tr:nth-child(odd) td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

table tr:nth-child(odd) td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ================= PAYMENT METHODS ================= */
.payment-methods {
  margin: 50px;
  text-align: center;
}

.payment-methods h3 {
  font-size: 20px;
}

.payment-methods label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(var(--theme), 0.3);
}

.payment-methods input[type="radio"] {
  display: none;
  margin: 0;
}

.payment-methods label:has(input[type="radio"]:checked) {
  color: rgba(var(--op-theme), 1);
  background-color: rgba(var(--theme), 1);
}

.payment-methods label img {
  width: 80px;
  padding: 5px 10px;
  border-radius: 5px;
  vertical-align: middle;
  background: rgba(var(--op-theme), 0.7);
}

/* ================= ACTIONS ================= */
.btns {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: auto;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: rgba(var(--theme), 0.7);
}

.btns:hover {
  background: rgba(var(--theme), 1);
}

#btns:disabled {
  opacity: 0.6;
  filter: grayscale(100%);
  pointer-events: none;
}

.tcp {
  font-size: 18px;
  text-align: center;
}

.tcp input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  cursor: pointer;
}

.tcp span a {
  color: rgba(var(--theme), 1);
  text-decoration: underline;
}

.tcp span a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .table {
    width: 85%;
  }

  .table table td {
    padding: 16px 20px !important;
  }

  .payment-methods {
    margin: 30px 20px;
  }
}

@media (max-width: 768px) {
  .payment-table {
    padding: 30px 0;
  }

  .table {
    width: 100%;
    overflow-x: auto;
  }

  .table table {
    min-width: 520px;
  }

  .payment-methods {
    margin: 24px 0;
  }

  .payment-methods label {
    width: 100%;
    margin: 10px 0;
    padding: 10px 14px;
    justify-content: flex-start;
  }

  .payment-methods label img {
    width: 64px;
  }

  .checkout-product {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }

  .checkout-product strong {
    max-width: calc(100% - 76px);
  }

  .product-prices {
    justify-content: flex-end;
    min-width: 66px;
    text-align: right;
  }

  .btns {
    max-width: 100%;
  }

  .tcp {
    font-size: 16px;
  }
}
