/**
 * 支付网关样式
 * 版本: 1.0.0
 */

/* 货币选择器容器 */
.payment-gateway-currency-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.payment-gateway-currency-selector h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.currency-selector-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

/* 货币选项 */
.currency-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.currency-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-option:hover {
    border-color: #0071a1;
    box-shadow: 0 2px 8px rgba(0, 113, 161, 0.1);
}

.currency-option.selected {
    border-color: #0071a1;
    background: #e7f3ff;
    box-shadow: 0 2px 12px rgba(0, 113, 161, 0.2);
}

.currency-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.currency-icon {
    font-size: 32px;
    font-weight: 700;
    color: #0071a1;
    min-width: 40px;
    text-align: center;
}

.currency-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-info strong {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.currency-info small {
    font-size: 12px;
    color: #666;
}

/* 货币提示 */
.currency-notice {
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.currency-notice p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.currency-notice strong {
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .currency-options {
        flex-direction: column;
    }
}

/* 加载状态 */
.currency-option.loading {
    opacity: 0.6;
    pointer-events: none;
}

.currency-option.loading::after {
    content: "⏳";
    margin-left: auto;
}

/* 隐藏结账页面的 Subtotal 行 */
tr.cart-subtotal {
    display: none !important;
}

/* ========================================
   价格显示增强 - 三种货币同时显示
   ======================================== */

/* Cart 页面：商品价格列 - 左对齐 */
.woocommerce-cart-form td.product-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

/* Cart 页面：Subtotal 列和总计区域 - 右对齐 */
.woocommerce-cart-form .product-subtotal,
.cart_totals .woocommerce-Price-amount {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
}

/* Checkout 页面：所有价格 - 右对齐 */
.woocommerce-checkout .product-total .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
}

/* order-pay 页面（form-pay.php）：价格同样右对齐 */
.woocommerce-checkout table.shop_table .woocommerce-Price-amount {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
}

/* CNY 价格（主价格） */
.price-cny-main {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111 !important;
    line-height: 1.4 !important;
}

/* 约等价格容器（Total 专用） */
.price-approx-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* 约等于符号 - 黑色加粗 */
.price-approx-wrapper .approx-symbol {
    font-size: 14px !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* 商品列表价格容器（无约等号） */
.price-list-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* 商品列表 USD 和 EUR 价格 - 普通黑色 */
.price-list-wrapper .price-usd,
.price-list-wrapper .price-eur {
    color: #000 !important;
    font-weight: normal !important;
}

/* Total 的 USD 和 EUR 价格 - 红色加粗加大 */
.price-total-red {
    color: #dc3545 !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}

/* 分隔符 - 黑色 */
.price-separator {
    color: #000 !important;
    font-weight: normal !important;
    margin: 0 2px !important;
}

/* Total 区域的 CNY 价格 - 黑色，加大加粗 */
.order-total .price-cny-main {
    color: #111 !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}

/* Total 区域的约等号和分隔符 - 保持黑色 */
.order-total .price-approx-wrapper .approx-symbol,
.order-total .price-approx-wrapper .price-separator {
    color: #000 !important;
    font-weight: normal !important;
}
