.blinds-toolbar-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl; /* Explicitly set RTL */
}

/* Base styles for toolbar boxes */
.blinds-toolbar-box {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 5px 0px;
	gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    cursor: pointer;
}

/* Style specifically for linked boxes */
.blinds-toolbar-box a.blinds-pdf-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* Left border for all boxes except last child */
.blinds-toolbar-box:not(:last-child) {
    border-left: 1px solid #c9c9c9;
}

/* Text styles */
.blinds-box-text {
    text-align: right;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

/* Image container styles */
.blinds-box-image {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blinds-box-image svg {
    width: 46px;
    height: 46px;
    display: block;
}

/* Hover effect */
.blinds-toolbar-box:hover .blinds-box-text {
    font-weight: 500;
}

/* Tablet Layout (1000px - 1367px) */
@media (min-width: 1000px) and (max-width: 1367px) {
    .blinds-toolbar-wrapper {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .blinds-toolbar-box {
        flex: 0 0 calc(33.333% - 14px);
        padding: 10px 15px;
		justify-content: space-between;
    }

	.blinds-toolbar-box a.blinds-pdf-button {
		justify-content: space-between;
    }

    /* Maintain left border except for every third item and last child */
    .blinds-toolbar-box:not(:last-child):not(:nth-child(3n)) {
        border-left: 1px solid #c9c9c9;
    }
}

/* Mobile Layout (under 1000px) */
@media (max-width: 999px) {
    .blinds-toolbar-wrapper{
        flex-wrap: wrap;
        gap: 15px;
    }

    .blinds-toolbar-box{
		justify-content: space-between;
        flex: 0 0 calc(50% - 8px);
        padding: 10px;
    }

    /* Maintain left border for odd items except the last child */
    .blinds-toolbar-box:not(:last-child):nth-child(odd) {
        border-left: 1px solid #c9c9c9;
    }

    /* Add bottom border for all items except last row */
    .blinds-toolbar-box{
        border-bottom: 1px solid #c9c9c9;
		border-left: none !important;
    }

    /* Adjust spacing between icon and text */
    .blinds-toolbar-box a.blinds-pdf-button {
		justify-content: space-between;
    }
}