.elementor-18 .elementor-element.elementor-element-02f92b0{--display:flex;--padding-top:30px;--padding-bottom:30px;--padding-left:0px;--padding-right:0px;overflow:visible;}@media(max-width:767px){.elementor-18 .elementor-element.elementor-element-02f92b0{--padding-top:10px;--padding-bottom:10px;--padding-left:10px;--padding-right:10px;}}/* Start custom CSS for container, class: .elementor-element-02f92b0 *//* =========================================
   夏舞茶 - 結帳頁面極致優化 (完整整合版)
   包含：表單美化、按鈕風格、訂單表格對齊修正
   ========================================= */

/* --- 1. 全域與字體設定 --- */
.woocommerce-checkout {
    font-family: "Noto Sans TC", sans-serif;
    color: #333;
}

.woocommerce-checkout a {
    text-decoration: none !important;
    color: #C5A065;
    transition: 0.3s;
}

.woocommerce-checkout a:hover {
    color: #b08d55;
}

/* 標題樣式 */
.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 25px;
    border-left: 4px solid #C5A065; /* 左側金線 */
    padding-left: 12px;
    line-height: 1.4;
}

/* 必填星號 */
.required {
    color: #d9534f !important;
    text-decoration: none;
}

/* --- 2. 通知與優惠券 (Notices) --- */
.woocommerce-info, .woocommerce-message, .woocommerce-error {
    background-color: #fdfdfd !important;
    border-top: 3px solid #C5A065 !important;
    color: #555 !important;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
}
.woocommerce-info::before, .woocommerce-message::before {
    color: #C5A065 !important;
}

/* 優惠券輸入框 */
.checkout_coupon {
    border: 1px solid #eee !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    border-radius: 6px;
    background: #fff;
}

/* --- 3. 表單輸入框 (Forms) --- */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    border: 1px solid #e5e5e5 !important;
    background-color: #fff !important;
    border-radius: 4px !important;
    padding: 12px 15px !important; /* 舒適的內距 */
    font-size: 15px !important;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 48px; /* 增加高度好點擊 */
}

/* 輸入框 Focus 狀態 */
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus {
    border-color: #C5A065 !important;
    box-shadow: 0 0 0 2px rgba(197, 160, 101, 0.1);
}

/* 標籤文字 */
.woocommerce-checkout label {
    font-weight: 500;
    color: #444;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* 國家下拉選單 (Select2) 修正 */
.select2-container--default .select2-selection--single {
    border: 1px solid #e5e5e5 !important;
    height: 48px !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 15px !important;
    color: #333 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
}

/* --- 4. 訂單摘要表格 (Order Review) - 重點修正區 --- */

/* 外框容器 */
#order_review {
    background: #fafafa; /* 極淡灰底 */
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 30px;
}

/* 表格本體 */
.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
    width: 100%;
    border: none !important;
    margin: 0 0 30px 0 !important;
}

/* 表頭 (Header) */
.woocommerce-checkout-review-order-table thead th {
    background-color: transparent !important;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 15px 10px !important; /* 增加內距 */
    border-bottom: 2px solid #C5A065 !important; /* 金色底線 */
    border-top: none !important;
}

/* 表格內容 (Body) */
.woocommerce-checkout-review-order-table td, 
.woocommerce-checkout-review-order-table th {
    padding: 20px 10px !important; /* 拉大間距，不貼邊 */
    border-top: none !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle;
    line-height: 1.6;
    color: #555;
}

/* 商品名稱 (靠左) */
.woocommerce-checkout-review-order-table .product-name {
    text-align: left;
    color: #333;
    font-weight: 500;
    width: 65%; /* 給名稱多點空間 */
}

/* 數量 (x 1) */
.woocommerce-checkout-review-order-table .product-quantity {
    color: #999;
    font-weight: normal;
    margin-left: 5px;
    font-size: 14px;
}

/* 小計金額 (靠右) */
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    text-align: right;
    font-weight: 500;
    color: #333;
}

/* 總計 (Total) */
.order-total th {
    padding-top: 25px !important;
    border-bottom: none !important;
    font-size: 16px;
    color: #333;
}

.order-total td {
    padding-top: 25px !important;
    border-bottom: none !important;
    text-align: right;
}

.order-total td strong {
    font-size: 24px;
    color: #C5A065 !important; /* 金色強調 */
    font-weight: 700;
}

/* --- 5. 付款與按鈕 (Payment & CTA) --- */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.wc_payment_methods {
    border-bottom: 1px solid #eee !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

/* 下單按鈕 */
#place_order {
    background-color: #C5A065 !important;
    color: #fff !important;
    font-size: 18px !important;
    padding: 16px 30px !important;
    border-radius: 4px !important; /* 微圓角 */
    width: 100%;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: 0 5px 15px rgba(197, 160, 101, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
}

#place_order:hover {
    background-color: #b08d55 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 101, 0.4);
}

/* --- 6. 手機版優化 (Mobile) --- */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        width: 100%;
        float: none;
    }
    
    /* 訂單摘要框內距縮小 */
    #order_review {
        padding: 20px;
    }
    
    /* 表格左右內距微調，避免手機太擠 */
    .woocommerce-checkout-review-order-table td, 
    .woocommerce-checkout-review-order-table th {
        padding: 15px 5px !important; 
    }
    
    .woocommerce-checkout-review-order-table .product-name {
        font-size: 14px;
    }
    
    .order-total td strong {
        font-size: 20px;
    }
}
/* =========================================
   夏舞茶 - 結帳頁面強制修正 (最高權重版)
   修正：表格擠壓、文字貼邊、對齊錯亂
   ========================================= */

/* 1. 強制重置表格結構 - 解決線條混亂 */
#order_review table.shop_table,
table.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
    margin: 0 0 20px 0 !important;
    background: transparent !important;
}

/* 2. 解決文字貼邊問題 - 核心修正 */
/* 針對標題 (th) 和 內容 (td) 強制增加內距 */
#order_review table.shop_table th,
#order_review table.shop_table td,
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
    padding: 18px 12px !important; /* 上下18px, 左右12px，拉開空間 */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #eaeaea !important; /* 只留底線，清爽 */
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

/* 3. 表頭專屬設定 (商品 & 小計) */
#order_review table.shop_table thead th,
table.woocommerce-checkout-review-order-table thead th {
    background-color: transparent !important;
    color: #555 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #C5A065 !important; /* 金色粗線區隔 */
}

/* 4. 嚴格執行對齊策略 */

/* 左邊：商品名稱與標籤 (例如：小計、運送方式) */
#order_review table.shop_table th,
#order_review table.shop_table td.product-name,
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td.product-name {
    text-align: left !important;
}

/* 右邊：金額與數值 */
#order_review table.shop_table td.product-total,
#order_review table.shop_table tfoot td,
table.woocommerce-checkout-review-order-table td.product-total,
table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
}

/* 5. 總計 (Total) 特別放大 */
#order_review table.shop_table tr.order-total th,
#order_review table.shop_table tr.order-total td {
    border-bottom: none !important; /* 最後一行不要底線 */
    padding-top: 25px !important;
    font-size: 16px !important;
    color: #222 !important;
}

#order_review table.shop_table tr.order-total td strong {
    font-size: 22px !important;
    color: #C5A065 !important;
}

/* 6. 手機版特別防呆 (防止跑版) */
@media (max-width: 768px) {
    #order_review {
        padding: 15px !important; /* 外框縮小 */
    }
    
    #order_review table.shop_table th,
    #order_review table.shop_table td {
        padding: 15px 8px !important; /* 手機版內距微調，但仍保持空間 */
        font-size: 14px !important;
    }
    
    /* 強制商品名稱不換行過度 */
    #order_review table.shop_table td.product-name {
        word-break: break-word; 
    }
}/* End custom CSS */