/* Casino Directory Filter Styles */

/* Break out of WordPress block container */
.cdf-wrapper {
    width: 80vw !important;
    max-width: 80vw !important;
    margin-left: calc(-40vw + 50%) !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif;
}

.cdf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background-color: #003366;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cdf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cdf-filter-group label {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.cdf-select {
    padding: 8px 12px;
    border: 2px solid #5599cc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #ffffff;
    color: #003366;
    min-width: 180px;
    cursor: pointer;
}

.cdf-select:focus {
    outline: none;
    border-color: #99ccff;
}

.cdf-reset-btn {
    padding: 8px 20px;
    background-color: #5599cc;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

.cdf-reset-btn:hover {
    background-color: #99ccff;
    color: #003366;
}

#cdf-no-results {
    background-color: #f0f4f8;
    border: 1px solid #5599cc;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    color: #003366;
    font-size: 15px;
}

#cdf-table-wrap {
    width: 100%;
    overflow-x: auto;
}

/* Make Ninja Table full width */
#cdf-table-wrap .ninja-table-wrapper,
#cdf-table-wrap table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Results count */
#cdf-results-count {
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #555555;
    font-style: italic;
}

/* Casino name link */
.cdf-name-link {
    color: #0066cc !important;
    text-decoration: underline !important;
    font-weight: normal !important;
}

.cdf-name-link:hover {
    color: #003366 !important;
}

/* Allow text to wrap in cells */
#cdf-table-wrap table td {
    word-wrap: break-word !important;
    white-space: normal !important;
}

@media (max-width: 600px) {
    .cdf-filters {
        flex-direction: column;
    }
    .cdf-select {
        min-width: 100%;
    }
}
