/* ===============================
   Shafa – Navigation Layout
================================ */
.shafa-my-account {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 1em;
    background-color: midnightblue;
    text-align: start;
}


/* Navigation list */
.shafa-my-account-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each item */
.shafa-nav-item {
    margin-bottom: 10px;
}

/* Button style for links */
.shafa-nav-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: tomato;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

/* Active button */
.shafa-nav-item.is-active .shafa-nav-button {
    background: #000;
    color: #fff;
}



/* ===============================
   Shafa – Content Layout
================================ */
.shafa-my-account__content {
    flex: 1;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background-color: lawngreen;
}

/* Forms */
.shafa-my-account__content input,
.shafa-my-account__content select,
.shafa-my-account__content textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.shafa-my-account__content button {
    background: #000;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
}

.shafa-my-account__content button:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .shafa-my-account {
        flex-direction: column;
    }

    .shafa-my-account__nav {
        width: 100%;
    }
}



/* ===============================
   Shafa – My Account Dashboard
================================ */

.shafa-account-dashboard {
    direction: rtl;
}

.shafa-dashboard-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.shafa-dashboard-logout a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.shafa-dashboard-logout a:hover {
    text-decoration: underline;
}

.shafa-dashboard-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 10px;
}

.shafa-dashboard-box ul {
    padding-right: 18px;
    margin-top: 10px;
}

.shafa-dashboard-box li {
    margin-bottom: 8px;
}

.shafa-dashboard-widgets>* {
    margin-bottom: 16px;
}


/* ===============================
   Shafa – Orders
================================ */

.shafa-orders {
    direction: rtl;
}

.shafa-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shafa-orders-table th,
.shafa-orders-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.shafa-orders-table th {
    font-weight: 600;
    color: #666;
}

.shafa-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.shafa-btn:hover {
    opacity: 0.85;
}

.shafa-no-orders {
    padding: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

/* ===============================
   Shafa – View Order
================================ */

.shafa-view-order {
    direction: rtl;
}

.shafa-view-order h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.shafa-order-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Woo default tables cleanup */
.woocommerce-table {
    border: none;
}

.woocommerce-table th,
.woocommerce-table td {
    border-color: #eee;
}


/* ===============================
   Shafa – Edit Address
================================ */

.shafa-my-address .shafa-address-box {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: firebrick;
    text-align: start;
}

.shafa-my-address p {
    text-align: start;
}

.shafa-my-address-title,
.shafa-edit-address-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: start;
}

.shafa-address-edit a {
    color: #0d6efd;
    text-decoration: none;
}

.shafa-address-edit a:hover {
    text-decoration: underline;
}

/* Edit Adress */
.shafa-edit-address-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    background: peru;
    text-align: start;
}

.shafa-edit-address-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.shafa-address-fields__wrapper .form-row {
    margin-bottom: 12px;
}

.shafa-address-submit {
    margin-top: 20px;
}

.shafa-button {
    background: #0d6efd;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.shafa-button:hover {
    background: #0b5ed7;
}