#progress {
    width: 800px;
}

/* Step indicator */
.step-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 0 16px;
    position: relative;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 160px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--color-border);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.step.active {
    background-color: transparent;
}

.step.active .step-circle {
    background-color: var(--color-primary);
    color: #fff;
}

.step-label {
    font-size: 14px;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-family: var(--font-body);
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.step.done {
    background-color: transparent;
}

.step.done .step-circle {
    background-color: var(--color-primary-light);
    color: #fff;
}

.step.done .step-label {
    color: var(--color-primary-light);
}

#payment {
    width: 800px;
    text-align: right;
    margin-top: 24px;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

#payment table {
    border-collapse: collapse;
    width: 100%;
}

#payment td {
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    vertical-align: middle;
    color: var(--color-text-body);
}

#payment tr:first-child td {
    border-top: none;
}

#payment tr:last-child td {
    border-bottom: none;
}

#payment td:first-child {
    border-left: none;
    font-weight: 600;
    color: var(--color-text-dark);
    background: var(--color-bg-section);
}

#payment td:last-child {
    border-right: none;
    text-align: left;
}

#payment tr:hover td {
    background-color: var(--color-card-hover);
}

#payment input[type=radio] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

#payment p {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: right;
    padding: 8px 16px;
}

.provider_cart {
    margin-bottom: 30px;
}

.cart_provider_info {
    width: 100%;
    height: 35px;
    background-color: var(--color-primary-dark);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    font-size: 16px;
    line-height: 35px;
    vertical-align: middle;
    padding-left: 50px;
}

.cart_provider_info_td1 {
    width: 85px;
    height: 100%;
}

.cart_provider_info_td2 {
    width: 225px;
    height: 100%;
}

.cart_provider_info_td3 {
    width: 70px;
    height: 100%;
}

.cart_provider_info_td4 {
    width: 190px;
    height: 100%;
}

.cart_provider_info_td5 {
    width: 50px;
    height: 100%;
    text-align: right;
}

.cart_provider_info_td6 {
    width: 100px;
    height: 100%;
    text-align: center;
}

.cart_provider_info .title {
    color: #ffffff;
}

.cart_provider_info .text {
    color: var(--color-gold);
}

.cart_total_info {
    width: 100%;
    height: 105px;
    background-color: var(--color-card-hover);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    line-height: 35px;
    vertical-align: middle;
    padding-left: 50px;
    color: var(--color-text-body);
    border-top: 2px solid var(--color-border);
}

.cart_total_info_td1 {
    width: 550px;
    min-height: 35px;
    font-size: 13px;
}

.cart_total_info_td2 {
    width: 70px;
    height: 35px;
    font-size: 16px;
    text-align: right;
}

.cart_total_info_td3 {
    text-align: center;
    width: 100px;
    height: 35px;
    font-size: 16px;
    color: var(--color-primary);
}

.cart_total_info_td4 {
    text-align: center;
    width: 620px;
    height: 35px;
    font-size: 16px;
    text-align: right;
}

.cart_total_info_td5 {
    text-align: center;
    width: 100px;
    height: 35px;
    font-size: 16px;
    color: var(--color-primary);
}

.cart_total_info .shipment {
    color: var(--color-gold);
}

#cart_ctr_title {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

#cart_ctr {
    margin-top: 30px;
    width: 800px;
    font-size: 15px;
    font-family: var(--font-body);
}

.cart_table_title {
    width: 100%;
    padding-left: 50px;
}

.th1 {
    width: 250px;
    height: 30px;
    line-height: 30px;
    text-align: left;
    vertical-align: middle;
}

.th2 {
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.th3 {
    width: 120px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.th4 {
    width: 170px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.th5 {
    width: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.th6 {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
}

.cart_table_tr {
    font-family: var(--font-body);
    width: 100%;
    padding: 12px 0 12px 50px;
}

.provider_cart .cart_table_tr:nth-child(odd) {
    background-color: #eee;
}

.prod_ref {
    width: 800px;
    height: 16px;
    line-height: 16px;
    vertical-align: middle;
    font-size: 13px;
}

.prod_detail {
    width: 800px;
    //height: 23px;
    font-size: 15px;
}

.td1 {
    width: 250px;
    //height: 23px;
    line-height: 23px;
    vertical-align: middle;
    text-align: left;
}

.td1 a:link {
    color: #000000;
    text-decoration: none;
}

.td1 a:visited {
    color: #000000;
    text-decoration: none;
}

.td1 a:hover {
    color: #000000;
    text-decoration: underline;
}

.td1 a:active {
    color: #ff0000;
    text-decoration: underline;
}

.td2 {
    width: 80px;
    //height: 23px;
    line-height: 23px;
    vertical-align: middle;
    text-align: center;
}

.td3 {
    width: 120px;
    //height: 23px;
    line-height: 23px;
    vertical-align: middle;
    text-align: center;
}

.td4 {
    width: 170px;
    //height: 23px;
}

.td5 {
    width: 100px;
    //height: 23px;
    line-height: 23px;
    vertical-align: middle;
    text-align: center;
}

.td6 {
    width: 30px;
    //height: 23px;
    line-height: 23px;
    vertical-align: middle;
    text-align: center;
}

.amount_button {
    width: 30px;
    height: 25px;
    text-align: center;
    vertical-align: middle;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-size: 18px;
    line-height: 21px;
    background-color: var(--color-bg-section);
}

.btn_minus_ctr {
    margin-left: 30px;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
}

.btn_add_ctr {
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
}

.amount_ctr {
    width: 50px;
    height: 25px;
    text-align: center;
    line-height: 21px;
    vertical-align: middle;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

#cart_total_ctr {
    width: 100%;
    font-size: 16px;
    font-family: var(--font-body);
    margin-top: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 8px 0;
    background: var(--color-card);
}

#total_row_1 {
    width: 100%;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}

#total_row_2 {
    width: 100%;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}

#total_row_3 {
    width: 100%;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}

#total_row_4 {
    width: 100%;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}

#total_row_5 {
    width: 100%;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}

#total_row_6 {
    width: 100%;
    padding: 16px 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--color-border-light);
    margin-top: 8px;
}

.coupon_label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    white-space: nowrap;
}

.coupon_input_wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.coupon_input_wrap:focus-within {
    border-color: var(--color-primary);
}

#total_row_7 {
    width: 100%;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}

#coupon_discount {
    color: darkred;
}

.total_td1 {
    width: 670px;
    text-align: right;
}

.total_td2 {
    width: 100px;
    text-align: center;
}

#coupon_code {
    height: 40px;
    width: 200px;
    font-size: 14px;
    font-family: var(--font-body);
    border: none;
    outline: none;
    padding: 0 12px;
    background: transparent;
    color: var(--color-text-body);
}

#coupon_code::placeholder {
    color: var(--color-text-light);
}

#coupon_submit {
    height: 40px;
    padding: 0 18px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

#coupon_submit:hover {
    background-color: var(--color-primary-dark);
}

#cart_total {
    color: var(--color-primary);
}

#cart_amount {
    padding: 0 10px;
    color: var(--color-gold);
}

#payment_ctr {
    margin-top: 20px;
    width: 800px;
}

#payment_creditcard_ctr {
    width: 100%;
    margin: 10px 0 30px 0;
}

.payment_title {
    font-size: 15px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    width: 100%;
    border-bottom: 2px solid #000000;
}

.payment_tr {
    width: 100%;
    height: 30px;
    margin-top: 20px;
    line-height: 30px;
    vertical-align: middle;
    font-family: var(--font-body);
    font-size: 15px;
}

.payment_td1 {
    width: 100px;
    height: 30px;
}

.payment_td2 {
    height: 30px;
}

.creditcard_num {
    width: 60px;
    height: 28px;
    line-height: 28px;
    border: 1px solid #000000;
    padding: 0 10px 0 10px;
    text-align: center;
}

.payment_desc_ctr {
    width: 100%;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    font-family: var(--font-body);
}

#main_btn_ctr {
    margin: 32px auto 40px;
    width: 400px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.main_btn {
    margin: 0;
    width: 160px;
    height: 44px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    line-height: 40px;
    vertical-align: middle;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

#btn_go_to_shop {
    background-color: #fff;
    color: var(--color-primary);
}

#btn_go_to_shop:hover {
    background-color: var(--color-bg-section);
}

#btn_next {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

#btn_next:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

#additional_product_row .amount_button {
    display: none;
}

#quick-send-desc {
    width: 800px;
    display: none;
}

#quick-send-desc table {
    border-collapse: collapse;
}

#quick-send-desc td,
#quick-send-desc th {
    border: 1px solid black;
}

#quick-send-desc th {
    background-color: lightgray;
}

#quick-send-desc li {
    list-style-type: disc;
}

#quick-send-desc div {
    padding: 0.5rem 1rem;
}

.ship_threshod_desc {
    padding-left: 0.5rem;
    color: var(--color-text-muted);
}

/* ── Free-shipping banners ─────────────────────── */
.ship_main_desc_free,
.ship_main_desc_not_free {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* ✅ 已達免運 — 綠色成功 */
.ship_main_desc_free {
    background: #edf7f2;
    border: 1px solid #b2dfcc;
    color: var(--color-primary);
}

.ship_main_desc_free::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 🛒 未達免運 — 琥珀色提示 */
.ship_main_desc_not_free {
    background: #fff8ed;
    border: 1px solid #f5d9a0;
    color: #8a5f10;
    flex-wrap: wrap;
}

.ship_main_desc_not_free::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.ship_main_desc_not_free .shipment {
    color: var(--color-primary);
    font-weight: 700;
}

.ship_main_desc_not_free .ship_threshod_desc {
    width: 100%;
    padding-left: 26px;
    font-size: 12px;
    color: #a06820;
}

.ship_main_desc_not_free .diff-amount {
    color: #c0392b;
    font-weight: 700;
}

/* ===== Auth modal — registration step indicator ===== */
.reg-steps { display: flex; align-items: center; margin-bottom: 18px; }
.reg-step-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reg-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--color-border); color: var(--color-text-light); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.reg-step-dot.active { background: var(--color-primary); color: #fff; }
.reg-step-label { font-size: 12px; color: var(--color-text-light); white-space: nowrap; }
.reg-step-label.active { color: var(--color-primary); font-weight: 600; }
.reg-step-line { flex: 1; height: 2px; background: var(--color-border); margin: 0 8px; margin-bottom: 20px; }
.reg-step-line.done { background: var(--color-primary); }

/* ===== Auth modal — login / register dialog ===== */
.auth-modal-body { padding: 32px 36px; width: 480px; max-width: 94vw; position: relative; font-family: var(--font-body); }
.auth-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--color-text-light); padding: 4px 8px; line-height: 1; }
.auth-modal-title { text-align: center; margin: 0 0 8px; color: var(--color-primary); font-size: 22px; font-family: var(--font-display); }
.auth-modal-subtitle { text-align: center; color: var(--color-text-light); font-size: 14px; margin: 0 0 20px; }
.auth-btn-line { display: flex; align-items: center; justify-content: center; gap: 10px; background: #00C300; color: #fff; padding: 13px 20px; border-radius: var(--radius-md); text-decoration: none; margin-bottom: 10px; font-weight: bold; font-size: 16px; font-family: var(--font-body); }
.auth-btn-line:hover { background: #00a800; color: #fff; text-decoration: none; }
.auth-btn-fb { display: flex; align-items: center; justify-content: center; gap: 10px; background: #1877F2; color: #fff; padding: 13px 20px; border-radius: var(--radius-md); text-decoration: none; font-weight: bold; font-size: 16px; font-family: var(--font-body); }
.auth-btn-fb:hover { background: #1464d0; color: #fff; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--color-border); }
.auth-divider-text { font-size: 13px; color: var(--color-text-light); white-space: nowrap; }
.auth-field { margin-bottom: 12px; }
.auth-input { width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-sizing: border-box; font-size: 15px; font-family: var(--font-body); }
.auth-input:focus { outline: none; border-color: var(--color-primary); }
.auth-input-confirm { border-width: 2px; border-color: var(--color-primary); background: #edf7f0; }
.auth-captcha-row { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.auth-captcha-row .auth-input { flex: 1; width: auto; }
.auth-captcha-img { cursor: pointer; border-radius: var(--radius-sm); height: 44px; object-fit: contain; }
.auth-error { margin-bottom: 8px; color: var(--color-danger); font-size: 14px; text-align: center; display: none; }
.auth-submit { width: 100%; padding: 12px; background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-md); font-size: 16px; font-family: var(--font-body); cursor: pointer; margin-bottom: 14px; transition: background-color var(--dur-short) var(--ease-out); }
.auth-submit:hover { background: var(--color-primary-dark); }
.auth-footer-links { text-align: center; font-size: 13px; color: var(--color-text-light); }
.auth-footer-links a { text-decoration: none; }
.auth-footer-links a.primary { color: var(--color-primary); margin-right: 16px; }
.auth-footer-links a.muted { color: var(--color-text-light); }
.auth-zipcode-row { display: flex; gap: 10px; margin-bottom: 12px; }
.auth-zipcode-row > div { flex: 1; }
