/*
Theme Name: Woodmart Child
Description: Child theme for Woodmart
Template: woodmart
Version: 1.0.0
*/

@import url("../woodmart/style.css");

/* Custom styles for account menu icons */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.woocommerce-page .woocommerce-MyAccount-navigation ul li a,
body .woocommerce-MyAccount-navigation ul li a,
.woocommerce .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 40px !important;
}

/* Font Awesome图标基础样式 */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a .fa,
.woocommerce-page .woocommerce-MyAccount-navigation ul li a .fa,
body .woocommerce-MyAccount-navigation ul li a .fa,
.woocommerce .woocommerce-MyAccount-navigation ul li a .fa {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* Emoji图标备用样式 */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before,
.woocommerce-page .woocommerce-MyAccount-navigation ul li a:before,
body .woocommerce-MyAccount-navigation ul li a:before,
.woocommerce .woocommerce-MyAccount-navigation ul li a:before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 16px !important;
    color: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
}

/* 移除默认的before content，因为我们使用JavaScript添加Font Awesome图标 */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before,
.woocommerce-page .woocommerce-MyAccount-navigation ul li a:before,
body .woocommerce-MyAccount-navigation ul li a:before,
.woocommerce .woocommerce-MyAccount-navigation ul li a:before {
    content: none !important;
}

/* Add separator before logout */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: 1px solid var(--brdcolor-gray-300);
    margin-top: 10px;
    padding-top: 10px;
}

/* Custom Products Page Styles */
.custom-products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.custom-products-page h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

/* Search Section */
.products-search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
}

.product-search-input {
    flex: 1;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.product-search-input:focus {
    border-color: #007cba;
}

.search-button {
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: #005a87;
}

/* Filter Section */
.products-filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.products-filter-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
}

.category-filter-select {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
    outline: none;
    transition: border-color 0.3s ease;
}

.category-filter-select:focus {
    border-color: #007cba;
}

/* Products Grid */
.products-list-section {
    margin-top: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background: #000000;
    border: 1px solid #505050;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image a {
    display: block;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007cba;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 15px;
}

.product-price .woocommerce-Price-amount {
    font-size: 18px;
}

.product-actions {
    text-align: center;
}

/* 统一按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn.btn-color-primary {
    background: #007cba;
    color: white;
}

.btn.btn-color-primary:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.view-product-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-product-btn:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error {
    color: #d63638;
}

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products-found p {
    font-size: 18px;
    margin: 0;
}

/* 分页样式 */
.custom-products-page .pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.custom-products-page .pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-products-page .page-btn {
    background: #fff;
    border: 1px solid #d3d3d3;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-products-page .page-btn:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.custom-products-page .page-btn.active,
.custom-products-page .page-btn.btn-color-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    font-weight: 600;
}

.custom-products-page .page-btn.active:hover,
.custom-products-page .page-btn.btn-color-primary:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.custom-products-page .prev-btn,
.custom-products-page .next-btn {
    padding: 8px 16px;
    font-weight: 600;
}

.custom-products-page .prev-btn.btn-color-primary,
.custom-products-page .next-btn.btn-color-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

.custom-products-page .prev-btn.btn-color-primary:hover,
.custom-products-page .next-btn.btn-color-primary:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.custom-products-page .page-dots {
    color: #666;
    font-weight: bold;
    padding: 0 5px;
    display: flex;
    align-items: center;
    height: 40px;
}

.custom-products-page .pagination-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.custom-products-page .loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.custom-products-page .error {
    text-align: center;
    padding: 40px 20px;
    color: #d63384;
    font-size: 16px;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    margin: 20px 0;
}

/* Wallet页面样式 */
.custom-wallet-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wallet-title {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.wallet-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 余额卡片样式 */
.wallet-balance-section {
    display: flex;
    flex-direction: column;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 320px;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.balance-title {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.balance-note {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* KYC卡片样式 */
.wallet-kyc-section {
    display: flex;
    flex-direction: column;
}

.kyc-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    height: 320px;
}

.kyc-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.kyc-status-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.kyc-status-icon.approved {
    color: #28a745;
}

.kyc-status-icon.rejected {
    color: #dc3545;
}

.kyc-status-icon.pending {
    color: #ffc107;
}

.kyc-pending,
.kyc-approved,
.kyc-rejected {
    text-align: center;
}

.kyc-pending p,
.kyc-approved p,
.kyc-rejected p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* 按钮样式 */
.complete-kyc-btn,
.resubmit-kyc-btn,
.topup-btn,
.submit-kyc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.complete-kyc-btn:hover,
.resubmit-kyc-btn:hover,
.topup-btn:hover,
.submit-kyc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cancel-kyc-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.cancel-kyc-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* KYC表单样式 */
.kyc-form-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.kyc-form h5 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.form-actions {
    text-align: center;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .custom-products-page {
        padding: 15px;
    }
    
    .products-search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-search-input {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .custom-products-page .pagination {
        gap: 5px;
    }
    
    .custom-products-page .page-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
        height: 35px;
    }
    
    .custom-products-page .prev-btn,
    .custom-products-page .next-btn {
        padding: 6px 12px;
    }
    
    .custom-products-page .pagination-info {
        font-size: 13px;
    }
    
    .wallet-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-wallet-page {
        padding: 15px;
    }
    
    .wallet-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .balance-card,
    .kyc-card {
        padding: 20px;
    }
    
    .balance-amount {
        font-size: 18px;
    }
    
    .kyc-status-icon {
        font-size: 36px;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-kyc-btn {
         margin-left: 0;
     }
 }

/* 控制台页面样式 */
.custom-dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.balance-stat .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.orders-stat .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.kyc-stat .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.orders-list {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    flex: 1;
}

.order-number {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.order-date {
    font-size: 12px;
    color: #666;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-on-hold {
    background: #f8d7da;
    color: #721c24;
}

.order-total {
    font-weight: 600;
    color: #333;
    margin-left: 15px;
}

.section-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.view-all-btn,
.shop-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.view-all-btn:hover,
.shop-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #667eea;
}

.action-item i {
    font-size: 24px;
    margin-bottom: 10px;
}

.action-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-dashboard-page {
        padding: 15px;
    }
    
    .dashboard-welcome {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-subtitle {
        font-size: 14px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-total {
        margin-left: 0;
    }
    
    .actions-grid {
         grid-template-columns: 1fr;
     }
 }

/* My Profile页面样式 */
.my-profile-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.my-profile-page h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.profile-info-section,
.profile-edit-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.profile-info-section h3,
.profile-edit-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
    min-width: 120px;
}

.info-item span {
    color: #333;
    font-weight: 500;
}

.balance-amount {
    font-size: 58px;
    font-weight: bold;
    color: #ffffff;
}

.kyc-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.kyc-status.approved {
    background: #d4edda;
    color: #155724;
}

.kyc-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.kyc-status.pending {
    background: #fff3cd;
    color: #856404;
}

.kyc-status.unverified {
    background: #e2e3e5;
    color: #6c757d;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.password-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.password-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 密码强度检查样式 */
.password-strength-result {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

/* WordPress默认密码强度容器样式修复 */
.password_strength {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    margin-top: 5px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-height: auto !important;
    width: auto !important;
    display: block !important;
}

/* 确保密码输入框容器有相对定位 */
.woocommerce-form-row:has(.password_strength),
.form-row:has(.password_strength) {
    position: relative !important;
}

/* 为新密码输入框添加底部间距，为强度提示留出空间 */
#new_password {
    margin-bottom: 35px !important;
}

.password-strength-result.very-weak {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.password-strength-result.weak {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.password-strength-result.medium {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffeb3b;
}

.password-strength-result.strong {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.password-strength-result.very-strong {
    background-color: #e8f5e8;
    color: #1b5e20;
    border: 1px solid #388e3c;
}

.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: none;
}

.password-hint {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.password-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-checklist li {
    padding: 4px 0;
    font-size: 12px;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.password-checklist li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.password-checklist li.valid {
    color: #28a745;
}

.password-checklist li.valid:before {
    content: "✓";
    color: #28a745;
}

.password-match-result {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.password-match-result.match {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.password-match-result.no-match {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.update-profile-btn,
.cancel-profile-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.update-profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.update-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.update-profile-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cancel-profile-btn {
    background: #6c757d;
    color: white;
}

.cancel-profile-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-profile-page {
        padding: 15px;
    }
    
    .my-profile-page h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .profile-info-section,
    .profile-edit-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .info-item label {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .update-profile-btn,
    .cancel-profile-btn {
        width: 100%;
    }
}

.payment_methods .payment_box{
    color: #000000 !important;
}

.show-password-input{
    background-color: #666 !important;
}

/* Invoice页面样式 - 深色主题 */
.invoice-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
}

.invoice-title {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.invoice-orders-section {
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.invoice-orders-table {
    margin: 0;
    border: none;
    width: 100%;
    border-collapse: collapse;
}

.invoice-orders-table th,
.invoice-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #404040;
    color: #e0e0e0;
}

.invoice-orders-table th {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #555;
}

.invoice-orders-table tr:hover {
    background-color: #3a3a3a;
}

.view-invoice {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
    color: white !important;
    border: 1px solid #4a90e2 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.view-invoice:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.invoice-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #404040;
}

.invoice-empty-state p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 20px;
}

/* Invoice详情页面样式 - 深色主题 */
.invoice-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #404040;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4a90e2;
}

.back-to-invoices {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-invoices:hover {
    color: #357abd;
    transform: translateX(-3px);
}

.invoice-title-section {
    text-align: right;
}

.invoice-main-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.invoice-number {
    font-size: 18px;
    color: #4a90e2;
    font-weight: 600;
    background: #3a3a3a;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

.invoice-content {
    margin-top: 30px;
}

.invoice-info-section {
    margin-bottom: 40px;
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.company-info,
.customer-info,
.invoice-details {
    padding: 20px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.company-info h4,
.customer-info h4,
.invoice-details h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-details,
.customer-details {
    line-height: 1.6;
    color: #e0e0e0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-label {
    font-weight: 500;
    color: #b0b0b0;
}

.detail-value {
    font-weight: 600;
    color: #e0e0e0;
}

/* Invoice项目表格样式 - 深色主题 */
.invoice-items-section {
    margin-bottom: 30px;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #555;
}

.invoice-items-table th {
    background: #4a4a4a;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border-bottom: 2px solid #555;
}

.invoice-items-table td {
    padding: 15px;
    border-bottom: 1px solid #555;
    vertical-align: top;
    color: #e0e0e0;
}

.invoice-items-table tbody tr:hover {
    background: #404040;
}

.item-description {
    width: 40%;
}

.item-quantity {
    width: 15%;
    text-align: center;
}

.item-price,
.item-total {
    width: 22.5%;
    text-align: right;
}

.item-description strong {
    color: #333;
    font-size: 16px;
}

.item-description small {
    color: #666;
    font-style: italic;
}

/* Invoice总计样式 - 深色主题 */
.invoice-totals-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.totals-table {
    min-width: 300px;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #555;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #555;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row.grand-total {
    border-top: 2px solid #4a90e2;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.total-label {
    font-weight: 500;
    color: #b0b0b0;
}

.total-value {
    font-weight: 600;
    color: #e0e0e0;
}

.grand-total .total-label,
.grand-total .total-value {
    color: #4a90e2;
    font-size: 20px;
}

/* Invoice操作按钮样式 - 深色主题 */
.invoice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px 0;
    border-top: 2px solid #555;
}

.download-invoice-btn,
.back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.download-invoice-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 1px solid #28a745;
}

.download-invoice-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.back-to-list-btn {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.back-to-list-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

/* Invoice错误页面样式 */
.invoice-error {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.invoice-error p {
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 20px;
}

/* 打印样式 */
@media print {
    .invoice-header .back-to-invoices,
    .invoice-actions {
        display: none !important;
    }
    
    .invoice-detail-page {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .invoice-header {
        border-bottom: 2px solid #000;
    }
    
    .invoice-main-title {
        color: #000 !important;
    }
    
    .invoice-items-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .invoice-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .invoice-title-section {
        text-align: center;
    }
    
    .invoice-main-title {
        font-size: 28px;
    }
    
    .invoice-items-table {
        font-size: 14px;
    }
    
    .invoice-items-table th,
    .invoice-items-table td {
        padding: 10px 8px;
    }
    
    .item-description {
        width: 50%;
    }
    
    .item-quantity,
    .item-price,
    .item-total {
        width: 16.67%;
        font-size: 12px;
    }
    
    .totals-table {
        min-width: 250px;
    }
    
    .invoice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .print-invoice-btn,
    .back-to-list-btn {
        width: 200px;
        justify-content: center;
    }
}