/* Reset styles to prevent conflicts */
.csn-wrapper,
.csn-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.csn-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 999;
}

.csn-select-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.csn-checkmark {
    margin-right: 8px;
    color: #666;
}

.csn-label {
    flex: 1;
    color: #666;
    font-size: 15px;
}

.csn-toggle {
    color: #666;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.csn-select-header.active .csn-toggle {
    transform: rotate(0);
}

.csn-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    overflow: hidden;
}

.csn-search {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.csn-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
}

.csn-search-input:focus {
    border-color: #0073aa;
}

.csn-cities {
    max-height: 300px;
    overflow-y: auto;
}

.csn-city {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.csn-city:last-child {
    border-bottom: none;
}

.csn-city:hover {
    background-color: #f8f9fa;
    color: #0073aa;
}

/* Scrollbar styling */
.csn-cities::-webkit-scrollbar {
    width: 6px;
}

.csn-cities::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.csn-cities::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.csn-cities::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Highlight matched text */
.csn-highlight {
    background-color: #fff3cd;
    padding: 0 2px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .csn-wrapper {
        max-width: 100%;
    }
    
    .csn-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .csn-cities {
        max-height: calc(80vh - 65px);
    }
} 