#openOffcanvas {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.offcanvas-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    justify-content: flex-end; /* Align to the right */
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
    pointer-events: none;
    display: flex; /* Ensure it's a flex container */
    align-items: flex-start; /* Align to the top */
}

.offcanvas-container.open {
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.offcanvas {
    background-color: white;
    width: 300px;
    height: 100%;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.offcanvas.open {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

#offcanvasHeaderTitle {
    flex-grow: 1;
    text-align: center;
    margin-left: 20px;
}

.close-offcanvas-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.offcanvas-body {
    padding: 20px;
}

.seller_dashboard {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
}

.seller_detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.seller_logo {
    width: 50px;
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
}

.seller_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller_name {
    flex-grow: 1;
}

.seller_name-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller_name-header h1 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.seller_last_active {
    font-size: 0.9rem;
    color: #777;
}

.seller_name-details {
    margin-top: 5px;
}

.seller_since,
.seller_orders {
    font-size: 0.9rem;
}

.seller_since {
    margin-right: 12px;
}

.seller_action_list {
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    align-items: flex-start;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
}

.seller_action_list::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome, Safari, and Opera */
}

.seller_action_list_item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.seller_action_list_item_button {
    margin-left: 12px;
    padding: 4px 12px;
    outline: 0;
    border: 1px solid transparent;
    font-size: 0.9rem;
    background: #e8e8f3;
    border-color: #e8e8f3;
    color: #01011b;
    -webkit-tap-highlight-color: transparent;
    border-radius: 20px;
    align-items: center;
    white-space: nowrap; /* Prevent button text wrapping */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .offcanvas {
        width: 70%; /* Reduce width for mobile */
    }
    
    .seller_detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .seller_logo {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .seller_name-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .seller_name-details {
        margin-top: 10px;
    }
}

