.crm-record-select {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.crm-record-select-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.crm-record-select-btn {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 34px 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: inherit;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.crm-record-select-btn::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
    pointer-events: none;
}

.crm-record-select-btn:focus {
    outline: 2px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.crm-record-select.is-disabled .crm-record-select-btn {
    cursor: not-allowed;
    opacity: 0.64;
    background: #f8fafc;
}

.crm-record-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-record-select-panel {
    position: fixed;
    z-index: 10050;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.crm-record-select-option {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 0;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.crm-record-select-option:hover,
.crm-record-select-option.is-active {
    background: #eef4ff;
}

.crm-record-select-option.is-selected {
    background: #1d4ed8;
    color: #fff;
}

.crm-record-select-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 640px) {
    .crm-record-select-panel {
        max-height: 220px;
    }
}
