/* ================================================================== */
/* WOOCOMMERCE OVERWRITE - OPTIMIZED VERSION */
/* ================================================================== */

/* ================================================================== */
/* ANIMATIONS - Centralized */
/* ================================================================== */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================================== */
/* SIDEBAR ACCOUNT */
/* ================================================================== */
.woocommerce-account-sidebar {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

/* Avatar Section with Gradient Background */
.account-avatar-section {
    background: linear-gradient(135deg, #262994 0%, #FFC107 100%);
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.account-avatar-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.avatar-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.avatar-wrapper img {
    width: 120px !important;
    height: 120px !important;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.avatar-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.account-avatar-section .btn-outline-warning {
    background: white;
    color: #262994;
    border: 2px solid white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.account-avatar-section .btn-outline-warning:hover {
    background: #FFD700;
    color: #333;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.account-avatar-section .btn-outline-warning i {
    margin-right: 5px;
}

/* User Name Display */
.account-user-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Account Sidebar Title */
.account-sidebar-title {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    color: #999;
    text-transform: uppercase;
    padding: 20px 20px 10px 20px;
    margin: 0 !important;
    background: #f8f9fa;
    border-bottom: none;
}

/* ================================================================== */
/* NAVIGATION MENU */
/* ================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
    border-right: none !important;
    position: relative;
    animation: slideInLeft 0.3s ease-out;
    animation-fill-mode: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(1) {
    animation-delay: 0.1s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(2) {
    animation-delay: 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(3) {
    animation-delay: 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(4) {
    animation-delay: 0.25s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(5) {
    animation-delay: 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(6) {
    animation-delay: 0.35s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(7) {
    animation-delay: 0.4s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(8) {
    animation-delay: 0.45s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(9) {
    animation-delay: 0.5s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(10) {
    animation-delay: 0.55s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(11) {
    animation-delay: 0.6s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(12) {
    animation-delay: 0.65s;
}

/* Navigation Links */
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    padding: 16px 20px !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

/* Icon before text */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 16px;
    width: 24px;
    text-align: center;
    transition: all 0.3s;
}

/* Icons for each menu item */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '\f3fd';
}

.woocommerce-MyAccount-navigation-link--dang-tin a::before {
    content: '\f055';
}

.woocommerce-MyAccount-navigation-link--danh-sach-tin-dang a::before {
    content: '\f0ca';
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '\f290';
}

.woocommerce-MyAccount-navigation-link--gio-hang a::before {
    content: '\f07a';
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: '\f019';
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: '\f3c5';
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    content: '\f09d';
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '\f013';
}

.woocommerce-MyAccount-navigation-link--woo-wallet a::before {
    content: '\f555';
}

.woocommerce-MyAccount-navigation-link--huong-dan-nguoi-dung a::before {
    content: '\f059';
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '\f2f5';
}

/* Hover & Active States */
.woocommerce-MyAccount-navigation li a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%) !important;
    color: #262994 !important;
    padding-left: 28px !important;
}

.woocommerce-MyAccount-navigation li a:hover::before {
    transform: scale(1.2);
    color: #262994;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, #262994 0%, #FFC107 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
    color: white;
    transform: scale(1.1);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: white;
    border-radius: 4px 0 0 4px;
}

/* Logout Link Special Style */
.woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: 2px solid #f0f0f0 !important;
    margin-top: 10px !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #f5576c !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.1) 0%, transparent 100%) !important;
    color: #f5576c !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover::before {
    color: #f5576c;
}

/* ================================================================== */
/* ACCOUNT CONTENT & STATS */
/* ================================================================== */
.account-stats-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    margin: 15px;
    border-radius: 12px;
    border-left: 4px solid #262994;
}

.account-stats-badge h5 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.account-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.account-stats-label {
    font-size: 13px;
    color: #666;
}

.account-stats-value {
    font-weight: 600;
    color: #262994;
    font-size: 14px;
}

/* Content Area */
.woocommerce-account-content {
    background: white;
    padding: 8px !important;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: fit-content;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content>* {
    width: 100%;
    max-width: 100%;
}

/* Billing Address */
.woocommerce-MyAccount-content .u-column1,
.woocommerce-MyAccount-content .u-column2,
.woocommerce-MyAccount-content .woocommerce-Address {
    width: 100% !important;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
    width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ================================================================== */
/* AVATAR UPLOAD MODAL */
/* ================================================================== */
.woocommerce-account-content .woocommerce-Button,
.woocommerce-account-content button[type="submit"],
.woocommerce-account-content input[type="submit"] {
    background-color: var(--button-color, #FFD700) !important;
    border-color: var(--button-color, #FFD700) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce-account-content .woocommerce-Button:hover,
.woocommerce-account-content button[type="submit"]:hover,
.woocommerce-account-content input[type="submit"]:hover {
    background-color: var(--primary-color, #FF5722) !important;
    border-color: var(--primary-color, #FF5722) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#avatar-preview-container {
    margin-top: 15px;
    text-align: center;
}

#avatar-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--button-color, #FFD700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    margin: 0 auto;
}

#avatar-preview.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.avatar-upload-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid var(--button-color, #FFD700);
    border-radius: 4px;
}

.avatar-option-card {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.avatar-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
    border-color: var(--button-color, #FFD700) !important;
}

.avatar-option-card:hover i {
    transform: scale(1.1);
}

/* ================================================================== */
/* DASHBOARD */
/* ================================================================== */
.woocommerce-account-dashboard-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-account-dashboard-intro .welcome-message {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.woocommerce-account-dashboard-intro .dashboard-description {
    color: #666;
    line-height: 1.6;
}

.woocommerce-account-dashboard-intro a {
    text-decoration: none;
    color: #FF5722 !important;
}

.woocommerce-account-dashboard-intro a:hover {
    text-decoration: underline;
}

/* Dashboard Statistics Cards */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    padding: 8px;
}

.stat-card {
    background: linear-gradient(135deg, #0E0687 0%, #FFC107 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

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

.stat-card:hover::before {
    right: -40%;
}

/* Card Variations */
.stat-card-posts {
    background: linear-gradient(135deg, #0E0687 0%, #FFC107 100%);
}

.stat-card-refresh {
    background: linear-gradient(135deg, #FFC107 0%, #f5576c 100%);
}

.stat-card-expiring {
    background: linear-gradient(135deg, #7579E5 0%, #00f2fe 100%);
}

.stat-card-wallet {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-meta {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.95;
}

.stat-label {
    font-weight: 500;
}

.stat-number {
    font-weight: 600;
}

.stat-highlight {
    font-size: 1.1rem;
    font-weight: bold;
}

.stat-warning {
    color: #ffe66d;
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: #fff;
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-top: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    padding: 8px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.quick-action-card:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.quick-action-card.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.95;
    min-width: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quick-action-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.quick-action-meta {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.quick-action-arrow {
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-action-card:hover .quick-action-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* ================================================================== */
/* ORDERS PAGE */
/* ================================================================== */
.orders-header {
    padding: 20px;
    background: linear-gradient(135deg, #0E0687 0%, #FFC107 100%);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
}

.orders-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.orders-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

.woocommerce-orders-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-orders-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
    color: #495057;
}

.woocommerce-orders-table tbody tr {
    transition: all 0.3s ease;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-orders-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Order Cells */
.order-number-cell {
    font-weight: 600;
}

.order-number-link {
    color: #484CBC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-number-link:hover {
    color: #764ba2;
}

.order-number-link i {
    margin-right: 5px;
}

.order-date-cell i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Order Status Badge - Unified Definition */
.order-status-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-status-badge i {
    font-size: 0.9rem;
}

.order-total-cell {
    text-align: left;
}

.order-total-amount {
    color: #28a745;
    font-size: 1.1rem;
}

/* Order Actions */
.order-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.order-actions-cell .btn {
    white-space: nowrap;
    transition: all 0.3s ease;
}

.order-actions-cell .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    gap: 15px;
}

.woocommerce-pagination .btn {
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-pagination .btn:hover {
    background: var(--button-color, #FFD700);
    border-color: var(--button-color, #FFD700);
    color: #fff;
}

/* Empty State */
.woocommerce-info {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.woocommerce-info::before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    color: #6c757d;
}

.empty-orders-state {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-orders-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-orders-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-orders-content .btn-primary {
    background: linear-gradient(135deg, #484CBC 0%, #FFC107 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-orders-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ================================================================== */
/* VIEW ORDER PAGE */
/* ================================================================== */
.view-order-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.order-header-card {
    background: linear-gradient(135deg, #484CBC 0%, #FFC107 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.order-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-number-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.order-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-title i {
    font-size: 1.5rem;
}

.order-actions-section .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-actions-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateX(-5px);
}

/* Order Header Info */
.order-header-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item>i {
    font-size: 2rem;
    opacity: 0.8;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 3px;
}

.info-value.total-amount {
    font-size: 1.4rem;
    color: #ffe66d;
}

/* Order Updates Card */
.order-updates-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #667eea;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 40px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #484CBC 0%, #FFC107 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker i {
    font-size: 0.5rem;
    color: #667eea;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    border-left: 3px solid #667eea;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-date i {
    font-size: 0.8rem;
}

.timeline-description {
    color: #495057;
    line-height: 1.6;
}

.timeline-description p {
    margin: 0;
}

/* Order Details Section */
.order-details-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-details-section .woocommerce-table {
    border-radius: 8px;
    overflow: hidden;
}

.order-details-section .woocommerce-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
    padding: 15px;
}

.order-details-section .woocommerce-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.order-details-section .woocommerce-table tfoot th,
.order-details-section .woocommerce-table tfoot td {
    padding: 15px;
    font-weight: 600;
}

.order-details-section .woocommerce-table tfoot .order-total th,
.order-details-section .woocommerce-table tfoot .order-total td {
    background: #f8f9fa;
    font-size: 1.2rem;
    color: #28a745;
}

/* ================================================================== */
/* RESPONSIVE - CONSOLIDATED */
/* ================================================================== */
@media (max-width: 819px) {
    .woocommerce-account-sidebar {
        display: none;
    }

    .col-md-9.account-content-responsive {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .woocommerce-Addresses .u-columns {
        display: block !important;
    }

    .woocommerce-Addresses .u-column1,
    .woocommerce-Addresses .u-column2 {
        width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 768px) {

    /* Sidebar */
    .account-avatar-section {
        padding: 25px 15px;
    }

    .avatar-wrapper img {
        width: 100px !important;
        height: 100px !important;
    }

    .account-sidebar-title {
        font-size: 12px;
        padding: 15px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 14px 15px !important;
        font-size: 14px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
        padding-left: 23px !important;
    }

    /* Dashboard */
    .dashboard-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Quick Actions */
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .quick-action-card {
        padding: 15px;
    }

    .quick-action-icon {
        font-size: 2rem;
        margin-right: 15px;
        min-width: 40px;
    }

    .quick-action-title {
        font-size: 1rem;
    }

    .quick-action-meta {
        font-size: 0.8rem;
    }

    /* Orders */
    .orders-header {
        padding: 15px;
    }

    .orders-title {
        font-size: 1.2rem;
    }

    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
    }

    .woocommerce-orders-table tbody td,
    .woocommerce-orders-table tbody th {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .woocommerce-orders-table tbody td:last-child,
    .woocommerce-orders-table tbody th:last-child {
        border-bottom: none;
    }

    .woocommerce-orders-table tbody td::before,
    .woocommerce-orders-table tbody th::before {
        content: attr(data-title);
        font-weight: 600;
        color: #495057;
    }

    .order-actions-cell {
        flex-direction: column;
        width: 100%;
    }

    .order-actions-cell .btn {
        width: 100%;
    }

    .woocommerce-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .woocommerce-pagination .btn {
        width: 100%;
    }

    /* View Order */
    .order-header-card {
        padding: 20px;
    }

    .order-header-top {
        flex-direction: column;
    }

    .order-title {
        font-size: 1.4rem;
    }

    .order-number-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-header-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .order-updates-card,
    .order-details-section {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .order-timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -28px;
        width: 22px;
        height: 22px;
    }

    .timeline-content {
        padding: 12px 15px;
    }

    .order-details-section .woocommerce-table {
        font-size: 0.9rem;
    }

    .order-details-section .woocommerce-table thead {
        display: none;
    }

    .order-details-section .woocommerce-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
    }

    .order-details-section .woocommerce-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .order-details-section .woocommerce-table tbody td:last-child {
        border-bottom: none;
    }

    .order-details-section .woocommerce-table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #495057;
    }

    .order-details-section .woocommerce-table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-top: 1px solid #dee2e6;
    }
}

@media (max-width: 480px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .order-title {
        font-size: 1.2rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .info-value.total-amount {
        font-size: 1.2rem;
    }
}

/* ================================================================== */
/* Edit account - css tùy chỉnh form thông tin người dùng */
/* ================================================================== */

.woocommerce-page form .form-row-first {
    padding: 0 8px;
}

.woocommerce-page form .form-row-last {
    padding: 0 8px;
}

.woocommerce-page form .form-row-wide {
    padding: 0 8px;
}

/* ================================================================== */
/* POST LIMIT ERROR ALERT */
/* ================================================================== */
.post-limit-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #f5576c;
    border-left: 6px solid #f5576c;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.2);
    animation: slideInLeft 0.5s ease-out;
}

.post-limit-alert .alert-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-limit-alert>.alert-content>i {
    font-size: 3rem;
    color: #f5576c;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.post-limit-alert .alert-text {
    flex: 1;
}

.post-limit-alert h4 {
    color: #f5576c;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.post-limit-alert p {
    color: #721c24;
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.post-limit-alert .alert-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-limit-alert .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.post-limit-alert .btn-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.post-limit-alert .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5);
    color: #fff;
}

.post-limit-alert .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.post-limit-alert .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: #fff;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .post-limit-alert .alert-content {
        flex-direction: column;
    }

    .post-limit-alert>.alert-content>i {
        font-size: 2.5rem;
    }

    .post-limit-alert .alert-actions {
        flex-direction: column;
    }

    .post-limit-alert .btn {
        width: 100%;
        justify-content: center;
    }
}

/*  Css cho button place order trong trang checkout */
/* =================================================== */
/* Match checkout block Place Order button (block editor markup) */
.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button.contained,
.woocommerce-checkout button.wc-block-components-button.wc-block-components-checkout-place-order-button.contained,
.wc-block-components-checkout-place-order-button.contained.wp-element-button {
    display: inline-block !important;
    width: auto !important;
    margin-top: 15px !important;
    padding: 8px 30px !important;
    background: #FF5722 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
}

/* Hover state */
.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button.contained:hover,
.woocommerce-checkout button.wc-block-components-button.wc-block-components-checkout-place-order-button.contained:hover,
.wc-block-components-checkout-place-order-button.contained.wp-element-button:hover {
    background: #FFC107 !important;
    transform: scale(1.03) !important;
    color: #fff !important;
}