/* My Account Page Styles */

.my-account-wrapper {
    background: #f9f9f9;
    padding: 60px 0 80px;
    min-height: 100vh;
}

.my-account-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

/* Account Content Layout */
.account-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation li a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #f5f7ff;
    color: #5865F2;
}

.woocommerce-MyAccount-navigation li a:hover svg {
    opacity: 1;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #5865F2;
    color: #fff;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a svg {
    opacity: 1;
}

/* Main Content */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

/* Orders Table */
.account-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.account-orders-table thead {
    background: #f9f9f9;
}

.account-orders-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.account-orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.account-orders-table tbody tr:hover {
    background: #fafafa;
}

.account-orders-table tbody td {
    padding: 18px 20px;
    font-size: 15px;
    color: #333;
}

.account-orders-table tbody td a {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.account-orders-table tbody td a:hover {
    opacity: 0.7;
}

/* Order Status Badges */
.order-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status-badge.status-processing {
    background: #fff3e0;
    color: #e65100;
}

.order-status-badge.status-on-hold {
    background: #fff8e1;
    color: #f57c00;
}

.order-status-badge.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.order-status-badge.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.order-status-badge.status-refunded {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status-badge.status-failed {
    background: #ffebee;
    color: #c62828;
}

/* Order Actions */
.order-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-order-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-order-action svg {
    flex-shrink: 0;
}

.btn-view {
    background: #f0f0f0;
    color: #333;
}

.btn-view:hover {
    background: #e0e0e0;
}

.btn-pay {
    background: #FFD700;
    color: #000;
}

.btn-pay:hover {
    background: #FFC700;
}

.btn-cancel {
    background: #ffebee;
    color: #c62828;
}

.btn-cancel:hover {
    background: #ffcdd2;
}

/* Dashboard */
.woocommerce-MyAccount-content > p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.woocommerce-MyAccount-content > p a {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-MyAccount-content > p a:hover {
    text-decoration: underline;
}

/* Forms */
.woocommerce-MyAccount-content .woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.woocommerce-MyAccount-content .woocommerce-Button {
    display: inline-block;
    padding: 12px 30px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: #4752d9;
    transform: translateY(-2px);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.woocommerce-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.woocommerce-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-content {
        grid-template-columns: 1fr;
    }

    .woocommerce-MyAccount-navigation {
        position: relative;
        top: 0;
    }

    .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .woocommerce-MyAccount-navigation li {
        border: 1px solid #f0f0f0;
        border-radius: 8px;
    }

    .woocommerce-MyAccount-navigation li a {
        padding: 12px 16px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .my-account-wrapper {
        padding: 40px 0 60px;
    }

    .my-account-title {
        font-size: 32px;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }

    .account-orders-table {
        display: block;
        overflow-x: auto;
    }

    .account-orders-table thead {
        display: none;
    }

    .account-orders-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
    }

    .account-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .account-orders-table tbody td:last-child {
        border-bottom: none;
    }

    .account-orders-table tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        color: #666;
        font-size: 13px;
        text-transform: uppercase;
    }

    .order-actions-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-order-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .my-account-title {
        font-size: 28px;
    }

    .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
    }
}