.checkout-container{
    width: 100% !important;
    padding: 0 5%;
}


.checkout-wrapper{
    gap: 70px;
    position: relative;
     min-height: 100vh;
}


  
  .col-2 {
    position: sticky;
    top: 50px; 
    align-self: flex-start;
    height: fit-content; 
    flex-basis: auto;
    z-index: 2;;
  }

.checkout_coupon {
    overflow: hidden;
    transition: all 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

.checkout_coupon.active {
    max-height: 300px;
    opacity: 1;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.cart-list-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    margin-bottom: 12px;
    position: relative;
}

.cart-list-card .cart-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
}

.cart-list-card .cart-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qua-count{
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 0 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    width: 23px;
    height: 23px;
}

.cart-list-card .cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-list-card .cart-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.cart-list-card .cart-subtitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.cart-list-card .cart-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart-list-card .cart-price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-left: 12px;
    white-space: nowrap;
}


.cart-coupon-bar {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 14px 0 10px 0;
}

.cart-coupon-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    margin-right: 8px;
}

.cart-coupon-bar button {
    background: #ffb300;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.cart-coupon-bar button:hover {
    background: #e53900;
    color: #fff;
}

.checkout-table tr,
.checkout-table td {
    border: none;
}
.checkout-promotion-img{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.checkout-promotion-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-total-wrapper{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.checkout-total-wrapper .total-item{
    width: 40%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.big-total-text{
    font-size: 24px;
}

.big-total-price{
    font-size: 24px;
    color: #1d2d56;
}

/* 付款方式 */
.payment-methods {
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
    /* padding: 24px 20px; */
    margin-bottom: 24px;
    font-size: 16px;
  }
  .payment-option {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 500;
  }
  .payment-option:last-child {
    border-bottom: none;
  }
  .payment-option input[type="radio"] {
    display: none;
  }
  .custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #1d2d56;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 2px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
  }
  .payment-option input[type="radio"]:checked + .custom-radio {
    border-color: #1d2d56;
    background: #1d2d56;
  }
  .payment-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
  }
  .pay-title{
    font-size: 37px;
    font-weight: 600;
    margin: 30px 0;
  }

  /* 退換貨 */
  .policy-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 22px 28px 18px 28px;
    margin: 32px auto 0 auto;
    max-width: 900px;
    font-size: 15px;
    color: #222;
    line-height: 1.8;
  }
  .policy-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e53900;
    letter-spacing: 1px;
  }
  .policy-content ol {
    margin: 10px 0 10px 22px;
    padding: 0;
  }
  .policy-content li {
    margin-bottom: 4px;
  }
  .policy-note {
    color: #888;
    font-size: 14px;
    margin-bottom: 6px;
  }
  .policy-tip {
    color: #b8860b;
    font-size: 13px;
    margin-top: 8px;
    background: #fffbe7;
    border-radius: 6px;
    padding: 8px 12px;
  }
 

  #qodef-page-inner{
    padding: 0 !important;
  }
  @media screen and (max-width:768px) {
    #qodef-page-outer{
        margin-top: 110px;
    }

    .qodef-page-title .qodef-m-content, .qodef-page-title .qodef-m-content.qodef-content-full-width{
      padding-left: 3%;
      padding-right: 3%;
    }
  
    .qodef-page-title{
      height: 70px;
    }

    .checkout-container{
      padding: 0 3%;
    }
    #qodef-woo-page.qodef--checkout .woocommerce-form-coupon-toggle .woocommerce-info{
      padding: 20px;
    }
    .woocommerce-info a{
      margin-top: 0 !important;
    }
    input[type=text]{
      font-size: 15px;
    }
    select{
      font-size: 15px;
      overflow: hidden;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    select option{
      font-size: 15px;
      padding: 0 10px;
    }
    /* .country_select ,.state_select {
      width: 95%;
    } */
     .state_select{
      margin-bottom: 15px;
     }

     .pay-title{
      font-size: 32px;
     }
     .policy-card{
      padding: 20px;
     }

     .checkout-wrapper{
      gap: 0px;
     }
     .checkout-wrapper .col-1{
      order: 2;
     }
     .checkout-wrapper .col-2{
      order: 1;
     }

     .cart-list-card .cart-img{
      width: 65px;
      height: 65px;
     }
     
  }