/*step1 — flex 垂直置中：數字與右側文案對齊 */
.checkout-step-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    max-width: 175px;
    min-height: 120px;
    height: auto;
    color: #808080;
    border: 0.5px solid #666666;
    padding: 12px 10px;
    margin: 5% auto;
}

.checkout-step-wrap-now {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    max-width: 175px;
    min-height: 120px;
    height: auto;
    color: #fff;
    border: 0.5px solid #666666;
    padding: 12px 10px;
    margin: 5% auto;
    background-color: #808080;
}

.checkout-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28%;
    width: 28%;
    max-width: 52px;
    font-size: 4.5rem;
    line-height: 1;
}

.checkout-step-text {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font-size: 1.5rem;
    text-align: left;
    line-height: 1.45;
    font-weight: bolder;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-step-text ul {
    margin: 0;
    padding-left: 1.1em;
    list-style: disc;
}

.checkout-step-text li {
    margin: 0;
    padding: 0;
}

.checkout-step-single {
    display: block;
    line-height: 1.45;
}

.checkout-step-img {
    text-align: center;
    margin: 2% 0 2% 4%;
}

.checkout-step {
    width: 80%;
    padding: 2% 0;
}

.checkout-step img {
    max-width: 100%;
}

.checkout_goods_table {
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
    width: 90%;
    margin: 0 auto;
}

.title_tr {}

.title_tr th {
    padding: 2%;
    text-align: center;
}

.content_tr {
    border-top: 0.5px solid #ccc;
    /*border-bottom: 0.5px solid #ccc;*/
}

.content_tr td {
    padding: 2% 0;
    text-align: center;
    width: 15%;
}

.content_td_img {}

.content_td_img img {
    max-width: 150px;
}

.content_td_name {}

.content_td_price {}

.content_td_num {}

.content_td_total {}

.content_td_del {}

.goods_close {
    /*float: right;*/
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: 1;
}

.goods_close img:hover {
    opacity: 0.5;
}

.checkout_discount {
    border-top: 1px solid;
    border-bottom: 1px solid #ccc;
    padding: 3% 0;
    width: 90%;
    padding-bottom: 6%;
    margin: 5% auto 0;
}

.checkout_title {
    font-size: 2rem;
    font-weight: bolder;
    letter-spacing: 2px;
}

.checkout_delivery {
    padding: 3% 0;
    border-bottom: 1px solid #ccc;
    width: 90%;
    padding-bottom: 5.5%;
    margin: 0 auto;
}

.checkout_delivery.row {
    margin-left: auto;
    margin-right: auto;
}

.checkout_delivery-static {
    margin: 0;
}

.checkout_select--payment {
    position: relative;
    max-width: 100%;
}

.checkout_payment_select {
    max-width: 360px;
    display: inline-block;
    vertical-align: top;
}

.checkout_payment_warn {
    margin-top: 10px;
    margin-bottom: 0;
    clear: both;
}

.us-address-block__field {
    margin-bottom: 12px;
}

.us-address-block__field--detail {
    margin-bottom: 14px;
}

.checkout-ship-option {
    margin-bottom: 16px;
    clear: both;
}

.checkout-ship-option:last-of-type {
    margin-bottom: 0;
}

.checkout-ship-label {
    display: block;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.checkout-ship-label:hover {
    border-color: #bbb;
}

.checkout-ship-label input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.checkout-ship-title {
    display: inline;
    font-weight: 600;
}

.checkout-ship-note {
    display: block;
    margin-top: 6px;
    margin-left: 22px;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.checkout_total {
    width: 90%;
    padding: 2% 0;
    font-size: 1.5rem;
    font-weight: bolder;
    margin: 0 auto;
}

.checkout_total_left {}

.checkout_total_right {
    text-align: right;
}

.checkout_final_total {
    width: 90%;
    padding: 2% 0;
    font-size: 1.5rem;
    font-weight: bolder;
    border-top: 1px solid;
    margin: 3% auto;
}

.checkout_final_total_right {
    font-size: 2.5rem;
    text-align: right;
}

.checkout_next button:hover {
    background-color: #bcb7b3;

}

.checkout_next_btn {
    background-color: #c1b0a4;
    width: 90%;
    border: none;
    margin: 2% 0;
    padding: 0.5% 0;
    font-size: 1.8rem;
    font-weight: bolder;
    text-align: center;
    margin-left: 5%;
}

/*step2*/
.checkout_user {
    border-top: 1px solid;
    margin: 5% auto;
    clear: both;
    width: 90%;
}

/* Buyer info：加寬標籤欄、右對齊、與輸入框垂直對齊；長標題盡量單行 */
.checkout_user .form-group .control-label {
    text-align: right;
}

.checkout_user .form-group .control-label label {
    float: none !important;
    display: inline-block;
    max-width: 100%;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.35;
    padding-top: 7px;
    white-space: normal;
}

.checkout_user .form-group.checkout-form-address .control-label label {
    padding-top: 10px;
}

.checkout_user .order-notice {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.checkout_recipient {
    border-top: 1px solid;
    margin: 5% auto;
    width: 90%;
}

.checkout_invoice {
    border-top: 1px solid;
    margin: 5% auto;
    width: 90%;
}

.checkout_invoice_send {
    border-top: 1px solid;
    margin: 5% auto;
    width: 90%;
}

.checkout_prev_btn {
    background-color: #c3c3c3;
    width: 90%;
    border: none;
    margin: 2% 0;
    padding: 0.5% 0;
    font-size: 1.8rem;
    font-weight: bolder;
    margin-left: 5%;
}

/*step3*/
.checkout_finish {
    text-align: center;
    padding: 3%;
}

.checkout_finish_title {
    font-size: 2.5rem;
    font-weight: bolder;
}

.checkout_finish_text {
    margin: 3% auto;
    font-size: 2rem;
    max-width: 380px;
    line-height: 3.3rem;
}

.checkout_finish_btn {
    color: #fff;
    background-color: #000;
    width: max-content;
    margin: 0 auto;
    padding: 3px 12.5%;
}

.checkout_finish_btn a {
    color: #fff;
}

.checkout_finish_btn a:hover {
    color: #fff;
}




@media only screen and (max-width:1100px) {
    .checkout-step-wrap {
        height: 105px;
    }

    .checkout-step-wrap-now {
        height: 105px;
    }

    .checkout-step-num {
        font-size: 3.5rem;
    }

    .checkout-step-text {
        font-size: 1.3rem;
        line-height: 1.6;
    }
}

@media only screen and (max-width: 992px) {

    /*step1*/
    .checkout-step-wrap {
        display: inline-flex;
        width: 30%;
        max-width: 205px;
        margin: 1.5%;
    }

    .checkout-step-wrap-now {
        display: inline-flex;
        width: 30%;
        max-width: 205px;
        margin: 1.5%;
    }

    .checkout-step-num {
        font-size: 4.5rem;
    }

    .checkout-step-text {
        font-size: 1.5rem;
    }

    .checkout-step {
        display: inline-block;
        width: 30%;
        padding: 0;
    }

    .checkout-step img {
        max-width: 70%;
    }
    .checkout-step-img {
        margin: 2% 0;
    }

    .checkout_goods_table {
        width: 95%;
        margin: 1% auto;
    }

    .checkout_discount {
        margin: 5% auto 0;
        width: 95%;
    }

    .checkout_delivery {
        width: 95%;
        margin: 0 auto;
    }

    .checkout_final_total {
        width: 95%;
        margin: 5% auto;
    }

    .checkout_total {
        padding: 5% 0;
    }

    .checkout_next {
        text-align: center;
    }

    .checkout_final_total_right {
        font-size: 2rem;
    }

    /*step2*/
    .checkout_next_btn {
        margin-left: 0%;
    }
    .checkout_prev_btn {
        margin-left: 0%;
    }

}

@media only screen and (max-width: 768px) {

    /*step1*/
    .checkout-step-wrap {
        width: 30%;
        max-width: 30%;
        margin: 0%;
    }

    .checkout-step-wrap-now {
        width: 30%;
        max-width: 30%;
        margin: 0%;
    }

    .checkout-step-num {
        font-size: 3.5rem;
        width: 20%;
    }

    .checkout-step-text {
        font-size: 1.5rem;
        line-height: 1.6;
        width: 80%;
    }
}

@media only screen and (max-width: 576px) {

    /*step1*/

    .checkout-step-text {
        font-size: 1.3rem;
    }

    .checkout-step img {
        max-width: 90%;
    }

    .content_td_img img {
        max-width: 80px;
    }

    .checkout_goods_table {
        width: 95%;
        margin: 1% auto;
    }

    .checkout_discount {
        margin: 5% auto;
        width: 95%;
    }

    .checkout_delivery {
        width: 95%;
        margin: 0 auto;
    }

    .checkout_title {
        display: inline;
    }

    .checkout_select {
        display: inline;
    }

    .checkout_final_total {
        width: 95%;
        margin: 5% auto;
    }

    .checkout_total {
        padding: 5% 0;
    }

    .checkout_next {
        text-align: center;
    }

    .checkout_final_total_right {
        font-size: 2rem;
    }

    /*step2*/

}

@media only screen and (max-width: 480px) {

    /*step1*/
    .checkout-step-num {
        font-size: 2.5rem;
        width: 15%;
    }

    .checkout-step-text {
        font-size: 1rem;
        line-height: 1.5;
        width: 85%;
        text-align: center;
    }
}

.checkout-duty {
    width: 90%;
    margin: 16px auto 0;
    padding: 14px 16px;
    background: #f7f4f1;
    border: 1px solid #e0d6ce;
    color: #222;
    font-size: 14px;
    line-height: 1.55;
    box-sizing: border-box;
}

.checkout-duty p {
    margin: 0 0 10px;
}

.checkout-duty-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.checkout-duty-ack input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.checkout-duty-error {
    color: #a94442;
    font-weight: 600;
    margin-top: 8px;
}