/* Banner base อยู่ใน style.css ใต้ PAGE BANNER — ที่นี่เหลือเฉพาะค่าที่ต่างของหน้านี้ */
.how-to-banner {
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.how-to-banner .container {
    width: 100%;
}

.banner-content {
    position: relative;
}

.banner-title {
    line-height: 91%;
}

.banner-boxs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 461px;

    align-content: start;
    align-self: start;

    position: relative;
    right: -50px;
}

.banner-box {
    width: 100%;
    min-height: 105px;
    padding: 20px;
    border-radius: 5px;

    box-sizing: border-box;
    background: #313131;
}

.banner-box h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.banner-box p {
    margin: 0;
    color: #7e7e7e;
}

.how-to-pay-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.how-to-title {
    font-weight: 500;
}

.how-to-subtitle {
    font-size: 20px;
}

.payment-terms-box {
    border: 1px solid #dfded9;
    border-radius: 10px;
    color: #0a0a0a99;
    font-size: 18px;
}

.payment-terms-box .red-text {
    color: #ff6538;
}

.payment-terms-box .underline {
    text-decoration: underline;
}

.bank-box {
    max-width: 508px;
    border-radius: 5px;
    border: 1px solid #dfded9;
    font-size: 18px;
}

.bank-box-head {
    background-color: #4e2a82;
    padding: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.bank-box-head img {
    max-height: 37px;
}

.bank-box-body {
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bank-box-body p {
    color: #0a0a0a99;
    margin: 0;
}

.important-box {
    border: 1px solid #ff6538;
    border-radius: 10px;
    background: #fff8f6;

    margin-top: 30px;
    display: flex;
    padding: 15px;
    gap: 20px;
    align-items: center;
}

.important-text {
    font-size: 18px;
}

.gray-color {
    color: #0a0a0a99;
}

.pay-by-urself {
    width: 50%;
}

.pay-by-urself p i {
    color: #ff2626;
}

.pay-by-urself p {
    font-size: 18px;
    color: #0a0a0a99;
}

.payment-step-boxs {
    display: flex;
    border-radius: 5px;
    border: 1px solid #dfded9;
}

.payment-steps > span {
    display: block;
    color: #0a0a0a;
    margin-bottom: 15px;
}

.payment-step-box {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.payment-step-box:not(:last-child) {
    border-right: 1px solid #dfded9;
}

.payment-step-box:nth-child(odd) {
    background: #f9f9f7;
}

/* ปุ่มลูกศรคั่นระหว่างขั้นตอน (วงกลมขาว ขอบส้ม) */
.payment-step-box:not(:last-child)::after {
    content: "\F285";
    /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 12px;
    line-height: 1;
    color: #ffffff;
    background: #ff3a00;
    border: 0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: -13px;
    transform: translateY(-50%);
    z-index: 1;
}

.payment-step-box .number-box {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #ff3a00;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-step-box p {
    margin: 0;
    font-size: 18px;
}

/* ปุ่มคัดลอกเลขบัญชี — ขยาย width ตามตัวอักษร ไม่ตัดเป็นสองบรรทัด */
.copy-bank-number {
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    min-width: 85px;
    padding: 0 14px;
    height: 30px;
    white-space: nowrap;
    border: 1px solid #dfded9;
    border-radius: 5px;
    background: #f9f9f7;
    color: #0a0a0a;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.copy-bank-number:hover {
    border-color: #00c3a0;
    color: #00c3a0;
}

.copy-bank-number.copied {
    background: #00c3a0;
    border-color: #00c3a0;
    color: #ffffff;
}

/* ตารางระยะเวลาการผลิต และการจัดส่ง */
.spend-time-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

.spend-time-table thead th {
    background: #000;
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 16px 20px;
}

.spend-time-table thead th:nth-child(n + 2),
.spend-time-table tbody td:nth-child(n + 2) {
    text-align: center;
}

.spend-time-table tbody td {
    padding: 16px 20px;
    border-top: 1px solid #dfded9;
    color: #000;
}

.spend-time-table tbody td:first-child {
    color: #ff6d4c;
}

.spend-time-table tbody td:last-child {
    color: #0a0a0a99;
}

.spend-time-table tbody tr:nth-child(odd) {
    background: #f9f9f7;
}

.how-to-shipping {
    background: #fdfcf9;
}

/* การยกเลิกและเปลี่ยนแปลงคำสั่งซื้อ */
.cancel-box {
    border: 1px solid #dfded9;
    border-radius: 10px;
    background: #ffffff;
    padding: 25px;
}

.cancel-step {
    padding: 15px 0;
}

.cancel-step:not(:last-child) {
    border-bottom: 1px solid #dfded9;
    margin-bottom: 15px;
}

.cancel-step-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cancel-step-head p {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    color: #000;
}

/* เลขขั้นตอนเป็นวงกลม */
.cancel-step .number-box.round {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ff3a00;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
}

.cancel-step-body {
    color: #6c6c6c;
    font-size: 18px;
    line-height: 1.8;
    padding-left: 76px;
}

.cancel-step-body .bi-arrow-right {
    margin: 0 5px;
}

.cancel-step-body .red-text {
    color: #f21515;
}

.cancel-terms {
    margin: 8px 0 0;
    padding-left: 20px;
}

.cancel-terms li {
    margin-bottom: 5px;
}

.cancel-terms .highlight {
    background: #fce4d0;
    border-radius: 5px;
    padding: 3px 10px;
    font-weight: 500;
}

.cancel-terms .highlight .red-text {
    color: #7a020a;
}

.cancel-terms li:last-child .red-text {
    color: #620609;
}

.cancel-note {
    border: 0;
    background: #fce1ce;
    justify-content: center;
    margin-top: 30px;
}

.cancel-note .bi-info-circle {
    font-size: 30px;
    color: #79492c;
}

.cancel-note .important-text {
    text-align: center;
    color: #0a0a0a;
}

@media (max-width: 768px) {
    .cancel-step-body {
        font-size: 16px;
        padding-left: 0;
    }

    .cancel-step-head p {
        font-size: 20px;
    }
}

.supported-shipping {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.supported-box {
    max-width: 298px;
    width: 100%;
    background: #fff;
    border: 1px solid #deddd9;
    border-radius: 5px;
    padding: 10px;
}

.supported-box img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.supported-box p {
    margin: 0;
    font-size: 18px;
}

.supported-box small {
    font-size: 16px;
    color: #0a0a0a99;
}

.spend-time-table {
    background: #fff;
    border: 1px solid #dfded9;
    border-radius: 5px;
}

.spend-time-table thead {
    background: #000;
    color: #fff;
}

.how-to-cancel {
    background: #f5f4ef;
}

@media (max-width: 768px) {
    .payment-step-boxs {
        flex-direction: column;
    }

    .payment-step-box {
        width: 100%;
    }

    .payment-step-box:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #dfded9;
    }

    .payment-step-box:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .how-to-banner {
        height: 723px;
    }

    .how-to-banner .container {
        padding: 0 15px 20px;
    }

    .banner-small-title {
        margin-bottom: 50px;
    }

    .banner-title {
        line-height: 110%;
    }

    .banner-boxs {
        margin-top: 30px;
        right: 0;
        gap: 1px;
        align-self: center;
    }

    .banner-box {
        text-align: left;
    }

    .banner-box h1 {
        font-size: 22px;
    }

    .banner-box p {
        font-size: 13px;
    }

    .how-to-title {
        font-weight: 600;
        font-size: 27px;
    }

    .how-to-pay-content {
        grid-template-columns: 1fr;
    }

    .payment-terms p {
        font-size: 18px;
    }

    .payment-terms-box {
        font-size: 16px;
    }

    .payment-terms-box .underline {
        text-decoration: none;
    }

    .how-to-subtitle {
        font-size: 18px;
    }

    .bank-box {
        font-size: 16px;
    }

    .copy-bank-number {
        font-size: 16px;
    }

    .important-text {
        font-size: 16px;
    }

    .pay-by-urself {
        margin-top: 20px;
        width: 100%;
    }

    .pay-by-urself p {
        font-size: 16px;
    }

    .payment-step-box p:last-child {
        font-size: 16px;
    }

    .supported-shipping {
        flex-direction: column;
        gap: 20px;
    }

    .spend-time-table thead th {
        padding: 5px 16px;
        text-align: center;
    }

    .cancel-step .number-box.round {
        width: 29px;
        height: 29px;
        line-height: 29px;
    }

    .cancel-step-head img {
        width: 30px;
        height: 30px;
    }
}
