/* General table styles */
.frating-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.frating-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: auto;
    min-width: 800px;
}

.frating-table th, .frating-table td {
    padding: 15px;
    font-size: 16px;
    word-wrap: break-word;
    direction: rtl;
    white-space: normal;
    min-width: 180px;
}

/* Table header styles */
.frating-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Rating summary */
.frating-summary {
    text-align: center;
    margin-bottom: 10px;
}

/* Rating filter styles */
.frating-categories {
    text-align: center;
    margin-bottom: 15px;
}

.frating-category-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row; /* Ensure horizontal layout */
}

.frating-rating-filter {
    cursor: pointer;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.frating-rating-filter:hover {
    background-color: #e0e0e0;
}

.frating-rating-filter.selected {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.dropdown-wrapper {
  width: 500px; 
  justify-content: center;
  align-items: center;     
}

@media (max-width: 768px) {
    .frating-category-container {
        flex-wrap: nowrap; /* Prevents wrapping to the next line */
        overflow-x: auto; /* Enables horizontal scrolling if needed */
        justify-content: flex-start; /* Align items to the start */
        padding-bottom: 5px; /* Add some spacing below */
        scrollbar-width: thin; /* For better scrolling visibility */
    }

    .frating-rating-filter {
        min-width: 45px; /* Reduce the minimum width */
        padding: 5px; /* Adjust padding for better spacing */
    }
}

@media (max-width: 480px) {
    .frating-category-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .frating-rating-filter {
        min-width: 40px;
        padding: 4px;
        font-size: 12px;
    }
}
