/* My Account Styles - M-Fishing Theme */

/* ---- Navigation ---- */
.mfishing-myaccount .account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mfishing-myaccount .account-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    text-decoration: none;
}

.mfishing-myaccount .account-nav-list li a:hover {
    background: #F8F7F4;
    color: #D4AF37;
}

.mfishing-myaccount .account-nav-list li.is-active a {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-weight: 700;
}

.mfishing-myaccount .account-nav-list li:last-child a {
    color: #9ca3af;
}

.mfishing-myaccount .account-nav-list li:last-child a:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ---- Dashboard Cards ---- */
.mfishing-myaccount .dashboard-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.mfishing-myaccount .dashboard-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ---- Orders Table ---- */
.mfishing-myaccount .woocommerce-orders-table__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mfishing-myaccount .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.mfishing-myaccount .woocommerce-orders-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    padding: 0.75rem 0.75rem 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    font-family: "Manrope", sans-serif;
    white-space: nowrap;
}

.mfishing-myaccount .woocommerce-orders-table tbody td {
    padding: 1rem 0.75rem 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    vertical-align: middle;
    font-family: "Manrope", sans-serif;
    color: #374151;
}

.mfishing-myaccount .woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: #121212;
    text-decoration: none;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    color: #D4AF37;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    white-space: nowrap;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    white-space: nowrap;
    font-weight: 600;
    color: #121212;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button,
.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    background: #F8F7F4;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #121212;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    margin: 0.15rem;
}

.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover,
.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:hover {
    background: #D4AF37;
    color: #fff;
}

/* Mobile: stack orders as cards */
@media (max-width: 640px) {
    .mfishing-myaccount .woocommerce-orders-table {
        min-width: unset;
    }

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

    .mfishing-myaccount .woocommerce-orders-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #f3f4f6;
        border-radius: 1rem;
        padding: 1rem 1.25rem;
        margin-bottom: 0.75rem;
    }

    .mfishing-myaccount .woocommerce-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border-bottom: none;
        font-size: 0.8rem;
    }

    .mfishing-myaccount .woocommerce-orders-table tbody td::before {
        content: attr(data-title);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #9ca3af;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .mfishing-myaccount .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid #f3f4f6;
        justify-content: flex-end;
    }
}

/* ---- Forms (edit account, edit address) ---- */
.mfishing-myaccount .woocommerce-EditAccountForm,
.mfishing-myaccount .woocommerce-address-fields {
    max-width: 600px;
}

.mfishing-myaccount .woocommerce-EditAccountForm .form-row,
.mfishing-myaccount .woocommerce-address-fields .form-row {
    margin-bottom: 1.25rem;
}

.mfishing-myaccount .woocommerce-EditAccountForm label,
.mfishing-myaccount .woocommerce-address-fields label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.4rem;
    font-family: "Manrope", sans-serif;
}

.mfishing-myaccount .woocommerce-EditAccountForm input.input-text,
.mfishing-myaccount .woocommerce-EditAccountForm select,
.mfishing-myaccount .woocommerce-address-fields input.input-text,
.mfishing-myaccount .woocommerce-address-fields select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: "Manrope", sans-serif;
    color: #121212;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mfishing-myaccount .woocommerce-EditAccountForm input.input-text:focus,
.mfishing-myaccount .woocommerce-address-fields input.input-text:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.mfishing-myaccount .woocommerce-EditAccountForm button[type="submit"],
.mfishing-myaccount .woocommerce-address-fields button[type="submit"] {
    background: #1B4D3E;
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Manrope", sans-serif;
}

.mfishing-myaccount .woocommerce-EditAccountForm button[type="submit"]:hover,
.mfishing-myaccount .woocommerce-address-fields button[type="submit"]:hover {
    background: #D4AF37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ---- Auth Forms (Login/Register) ---- */
.mfishing-auth .auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: "Manrope", sans-serif;
    color: #121212;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mfishing-auth .auth-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ---- Notices inside My Account ---- */
.mfishing-myaccount .woocommerce-error,
.mfishing-myaccount .woocommerce-message,
.mfishing-myaccount .woocommerce-info {
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    list-style: none;
    font-family: "Manrope", sans-serif;
}

.mfishing-myaccount .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.mfishing-myaccount .woocommerce-message {
    background: rgba(27, 77, 62, 0.05);
    border: 1px solid rgba(27, 77, 62, 0.2);
    color: #1B4D3E;
}

/* ---- Status Badges ---- */
.mfishing-myaccount .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mfishing-myaccount .status-processing {
    background: #eff6ff;
    color: #1e40af;
}

.mfishing-myaccount .status-completed {
    background: rgba(27, 77, 62, 0.1);
    color: #1B4D3E;
}

.mfishing-myaccount .status-on-hold {
    background: #fefce8;
    color: #854d0e;
}

.mfishing-myaccount .status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.mfishing-myaccount .status-cancelled,
.mfishing-myaccount .status-failed {
    background: #fef2f2;
    color: #991b1b;
}

.mfishing-myaccount .status-refunded {
    background: #f3f4f6;
    color: #6b7280;
}

/* ---- Addresses Grid ---- */
.mfishing-myaccount .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .mfishing-myaccount .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.mfishing-myaccount .woocommerce-Addresses .woocommerce-Address {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.mfishing-myaccount .woocommerce-Addresses .woocommerce-Address-title h3 {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.mfishing-myaccount .woocommerce-Addresses .woocommerce-Address-title a {
    font-size: 0.75rem;
    color: #D4AF37;
    font-weight: 700;
    text-decoration: none;
}

.mfishing-myaccount .woocommerce-Addresses address {
    font-style: normal;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ---- Select2 in My Account ---- */
.mfishing-myaccount .select2-container--default .select2-selection--single {
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    height: auto;
    padding: 0.6rem 1rem;
    font-family: "Manrope", sans-serif;
    font-size: 0.875rem;
}

/* ---- WooCommerce default button overrides ---- */
.mfishing-myaccount .woocommerce-Button,
.mfishing-myaccount .woocommerce-button,
.mfishing-myaccount .button:not(.add-to-cart-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: #1B4D3E;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Manrope", sans-serif;
    text-decoration: none;
}

.mfishing-myaccount .woocommerce-Button:hover,
.mfishing-myaccount .woocommerce-button:hover,
.mfishing-myaccount .button:not(.add-to-cart-btn):hover {
    background: #D4AF37;
    color: #fff;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ---- Order Details (view-order) ---- */
.mfishing-myaccount .woocommerce-order-details {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mfishing-myaccount .woocommerce-order-details h2,
.mfishing-myaccount .woocommerce-column__title {
    font-family: "Cinzel", serif;
    font-size: 1.125rem;
    color: #121212;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.mfishing-myaccount .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.mfishing-myaccount .woocommerce-table--order-details th,
.mfishing-myaccount .woocommerce-table--order-details td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    font-family: "Manrope", sans-serif;
    vertical-align: middle;
}

.mfishing-myaccount .woocommerce-table--order-details thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.mfishing-myaccount .woocommerce-table--order-details tfoot th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
}

.mfishing-myaccount .woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 600;
    color: #121212;
}

/* ---- Empty state ---- */
.mfishing-myaccount .woocommerce-info {
    background: #F8F7F4;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-family: "Manrope", sans-serif;
}

/* ---- Pagination ---- */
.mfishing-myaccount .woocommerce-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.mfishing-myaccount .woocommerce-pagination a,
.mfishing-myaccount .woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.mfishing-myaccount .woocommerce-pagination a {
    background: #F8F7F4;
    color: #374151;
}

.mfishing-myaccount .woocommerce-pagination a:hover {
    background: #D4AF37;
    color: #fff;
}

.mfishing-myaccount .woocommerce-pagination span.current {
    background: #1B4D3E;
    color: #fff;
}
