
/* Agent Operator help widget */
.agent-info-block {
    position: fixed;
    bottom: 32px;
    right: 32px;
    left: auto;
    z-index: 999999;
    width: 250px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.agent-info-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 4px 4px;
    background-color: #c12017;
    color: #fff;
    border: none;
    border-radius: 50px;
    /* Fixed 50px radius for both states */
    cursor: pointer;
    width: 205px;
    height: 56px;
    position: relative;
    transition: width 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    /* Prevent text overflow */
}

.agent-info-button:hover {
    background-color: #a51b14;
}

.agent-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.agent-button-text {
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
}

.agent-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.agent-close-icon {
    display: none !important;
    font-size: 1.125rem;
    color: white;
    transition: opacity 0.3s ease;
}

.agent-close-button {
    width: 56px;
    /* Circle width matches height */
    height: 56px;
    border-radius: 50px;
    /* Same as pill state */
    padding: 0;
    /* No padding for centered icon */
    background-color: #c12017;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.agent-info-button[aria-expanded="true"] .agent-button-content {
    display: none !important;
    opacity: 0;
}

.agent-info-button[aria-expanded="true"] .agent-button-text {
    opacity: 0;
    transform: translateX(20px);
}

.agent-info-button[aria-expanded="true"] .agent-close-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.agent-info-button[aria-expanded="true"]+.agent-info-content {
    max-height: fit-content;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 10px;
    display: block;
}



.agent-info-content {
    background-color: white;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    display: none;
    transform: translateY(-20px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    max-width: 456px;
    width: 456px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.176) 0px 0.375rem 0.75rem;


    .agent-card-header {
        background-color: #c12017;
        color: #fff;
        padding: 18px 24px 36px;
        display: flex;
        align-items: center;
        gap: 32px;

        .agent-profile-image {
            justify-content: center;
            position: relative;
            width: 64px;
            border-radius: 50%;
            flex: 0 0 auto;
            overflow: hidden;
            height: 64px;
        }

        .agent-name {
            font-size: 1.5rem;
            font-weight: 500;
            letter-spacing: 0px;
            line-height: 32px;
            margin-bottom: 8px;
            font-family: Roboto, sans-serif;
            margin-block: 0;
            text-transform: uppercase;
            color: #fff;
        }
    }

    .agent-card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;

        .agent-contact-box {
            display: flex;
            align-items: center;
            background-color: #fff;
            color: #c12017;
            text-decoration: none;
            transition: background 0.2s ease;
            cursor: pointer;
            display: flex;
            border-width: 2px;
            border-style: solid;
            border-color: rgb(204, 204, 204);
            border-image: initial;
            border-radius: 4px;
            gap: 34px;
            padding: 15px 20px;

            &:hover {
                background-color: #fdf0ef;
                text-decoration: none;
            }

            .icon {
                background-size: cover;
                flex-shrink: 0;
                font-family: "GeneraliIcons" !important;
                font-size: 1.5rem;
                font-weight: 400;
                width: 30px;

                &.phone-icon::before {
                    content: "\e938";
                }

                &.whatsapp-icon::before {
                    content: "\e972";
                }

                &.email-icon::before {
                    content: "\e919";
                }

                &.form-icon::before {
                    content: "\e915";
                }

                &.lock-icon::before {
                    content: "\e983";
                }
            }

            .text {
                display: flex;
                flex-direction: column;
                color: inherit;
                color: rgb(111, 112, 114);
                font-size: 0.75rem;
                font-weight: 700;
                letter-spacing: 1px;
                line-height: 16px;
                text-transform: uppercase;
                text-align: left;
                max-width: 300px;

                .value {
                    color: #c12017;
                    font-size: 1rem;
                    font-weight: 500;
                    letter-spacing: 0px;
                    line-height: 24px;
                    margin-top: 4px;
                    text-overflow: ellipsis;
                    text-transform: none;
                    overflow: hidden;
                }
            }
        }
    }
}

    @media (max-width: 768px) {
        .agent-info-content {

    max-width: 344px;
    width: 344px;
    .text {
        max-width: 200px !important;
    }
        }
    }

        @media (max-width: 400px) {
        .agent-info-content {

    max-width: 300px;
    width: 300px;
    .text {
        max-width: 160px !important;
    }
        }
    }
