#tjb-book-grid {
    margin: 20px;
}

#tjb-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#tjb-filters button {
    padding: 10px 20px;
    background: #026881;
    color: #fff;
    border: none;
    cursor: pointer;
    text-wrap: nowrap;
}

#tjb-filters button:hover {
    background: #004455;
}

#tjb-reset-filters:disabled {
    background-color: #ccc; /* Disabled state color */
    color: #666;
    cursor: not-allowed;
}

#tjb-reset-filters:disabled:hover {
    background-color: #ccc; /* Disabled state color */
    color: #666;
    cursor: not-allowed;
}

#tjb-page-info p {
    text-align: center;
}

.tjb-book img {
    max-width: 100%;
    height: auto;
}

.tjb-book a {
    text-decoration: none !important;
}

.book-page a {
    text-decoration: none !important;
}

.tjb-book h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

.cart-details p {
    margin-bottom: 10px;
    text-align: center;
}

.tjb-download {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #026881;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.tjb-download:hover {
    background: #004455;
    color: #fff;
}

#tjb-pagination {
    text-align: center;
    margin: 20px 0;
}

#tjb-pagination .page-numbers {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #026881;
}

#tjb-pagination .page-numbers.current {
    background: #026881;
    color: #fff;
}

.book-details {
    margin: 20px;
}

.book-thumbnail img {
    max-width: 100%;
    height: auto;
}

.book-meta p {
    margin: 10px 0;
}

.book-download {
    margin-top: 20px;
}

.book-download .button {
    background: #026881;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none !important;
    border-radius: 5px;
}

.book-download .button:hover {
    background: #004455;
}

.author {
    color: #026881;;
}

/* Bold style for selected filter options */
#tjb-filters select option[style="font-weight: bold;"] {
    font-weight: bold;
}

.download-button.disabled {
    pointer-events: none; /* Prevent clicks */
    opacity: 0.5; /* Visual indication */
}

.tjb-download.disabled {
    pointer-events: none; /* Prevent clicks */
    opacity: 0.5; /* Visual indication */
}


/* Responsive styles */
@media (min-width: 768px) {
    #tjb-books {
        display: flex;
        flex-wrap: wrap;
    }

    .tjb-book {
        margin: 10px;
        padding: 10px;
        border: 1px solid #ddd;
        width: calc(25% - 40px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #tjb-filters {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #tjb-search,
    #tjb-filters select,
    #tjb-filters button,
    #tjb-filters input[type="text"] {
        flex: 1 1 auto;
        margin-right: 10px;
    }

    #tjb-filters select:last-child,
    #tjb-filters button:last-child,
    #tjb-filters input[type="text"]:last-child {
        margin-right: 0;
    }

    .book-page {
        display: flex;
        gap: 10px;
    }

    .book-thumbnail img {
        max-height: 400px;
        width: auto;
    }

    .book-meta {
        padding-left: 25px;
    }
}

@media (max-width: 767px) {
    #tjb-filters {
        flex-wrap: wrap;
    }

    .tjb-book {
        padding-bottom: 20px;
    }

    .tjb-book h3 {
        margin-top: 10px;
    }
}
