/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .license-category-title {
    margin-top: 0;
}

.license-category-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 45px;
}

.license-category-wrapper label {
    margin-bottom: 0;
    text-align: right;
}

/* General Dropdown Styles */
.state-select-box {
    margin: 0;
    position: relative;
    cursor: pointer;
    width: 100%;
    min-width: 300px;
}

.state-select-box .selected {
    border: 1px solid #ccc;
    padding: 10px 15px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    white-space: nowrap;
}

.state-select-box .selected span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.state-select-box .options-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    display: none; /* Handled by jQuery slideDown/Up */
}

.state-select-box .state-options {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.state-select-box .state-options label {
    cursor: pointer;
    white-space: nowrap;
}

.state-select-box .state-options:last-child {
    border-bottom: none;
}

.state-select-box .state-options:hover {
    background-color: #f9f9f9;
}

.license-category-wrapper .state-select-box {
    margin: 0;
}

.license-category-wrapper .dropdown-states,
.license-category-wrapper .category-select-box,
.license-category-wrapper .state-select-box.dropdown-states.state-listing-in-responsive {
    margin: 0;
}

.license-category-wrapper .state-select-box.dropdown-states.state-listing-in-responsive,
.cs-table-dropdown-wrapper .state-select-box.dropdown-states.state-listing-in-responsive {
    width: 75%;
    margin-bottom: 0;
}

.cs-table-custom-select.state-select-box {
    margin: 0;
}

.cs-table-dropdown-wrapper {
    margin: 50px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.cs-table-custom-select {
    margin: 0;
}

@media screen and (max-width: 640px) {
    .cs-table-dropdown-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cs-table-dropdown-wrapper label {
        margin-top: 0;
    }

    .state-select-box {
        width: 100%;
        min-width: unset;
    }

    .license-category-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .license-category-wrapper label {
        text-align: center;
        flex: none;
    }

    .license-category-wrapper .state-select-box {
        flex: none;
        width: 100%;
    }

    .license-category-wrapper .state-select-box .selected {
        max-width: 100%;
        margin: 0 auto;
    }
}
