.vips-country-selector {
    position: relative;
    max-width: 600px;
}

.vips-country-search {
    width: 100% !important;
    box-sizing: border-box;
}

/* Container for the selected country badges */
.vips-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 4px;
    min-height: 40px; /* Give it some space */
    background: #fff;
}

/* Individual badge for a selected country */
.vips-country-badge {
    display: inline-flex;
    align-items: center;
    background-color: #007cba; /* WordPress blue */
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* The 'X' remove button on a badge */
.vips-remove-badge {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.vips-remove-badge:hover {
    opacity: 1;
}

/* The autocomplete dropdown list */
.vips-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* A single item in the autocomplete dropdown */
.vips-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.vips-autocomplete-item:last-child {
    border-bottom: none;
}

.vips-autocomplete-item:hover, .vips-autocomplete-item.active {
    background-color: #f0f0f1;
}