/* /Styles/referrals.css */

.referral-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.referral-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
    color: #444;
}

/* Style for the custom dropdown */
.referral-dropdown-container {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

#referrer-select-button {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#referrer-select-button .selected-referrer-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

#referrer-select-button img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

#referrer-select-button .placeholder {
    color: #757575;
}

#referrer-options-list {
    display: none; /* Hidden by default, JS will show it */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1010; /* Above modal content */
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 5px 0;
    margin: 2px 0 0 0;
}

.referrer-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.referrer-option:hover {
    background-color: #f5f5f5;
}

.referrer-option img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}