.contact-picker-select {
    max-width: 420px;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 14px;
    background: #f9f8f6;
    border: 1px solid #e0dcd4;
    border-radius: 999px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.06);
}

.contact-chip[hidden] {
    display: none;
}

.contact-chip-name {
    font-weight: 600;
    color: #3e3f3a;
}

.contact-chip-address {
    color: #8a867e;
    font-size: 0.85em;
}

.contact-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a6a29a;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.contact-chip-remove:hover,
.contact-chip-remove:focus-visible {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.contact-picker-hint {
    margin: 10px 0 0;
    color: #8a867e;
    font-size: 0.875rem;
}

.contact-picker-hint[hidden] {
    display: none;
}

.contact-picker-toggle {
    margin-top: 8px;
}

.contact-picker-toggle[hidden] {
    display: none;
}

.contact-picker-form {
    margin-top: 10px;
    padding: 12px;
    background: #f9f8f6;
    border: 1px solid #e0dcd4;
    border-radius: 8px;
}

.contact-picker-form[hidden] {
    display: none;
}

.contact-picker-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.contact-picker-error {
    margin: 10px 0 0;
    color: #dc3545;
    font-size: 0.875rem;
}

.contact-picker-error[hidden] {
    display: none;
}
