.migo-profile-presence {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 12;
}

.migo-profile-presence__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    box-shadow: none;
    cursor: pointer;
}

.migo-profile-presence__trigger:hover,
.migo-profile-presence__trigger:focus,
.migo-profile-presence__trigger:active {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    transform: none;
}

.migo-profile-presence--readonly .migo-profile-presence__trigger {
    cursor: help;
    pointer-events: auto;
}

.migo-presence-tooltip-portal {
    position: fixed;
    z-index: 2147483000;
    display: none;
    width: max-content;
    max-width: min(240px, calc(100vw - 16px));
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(31, 35, 42, .97);
    color: #fff;
    box-shadow: 0 6px 20px rgba(18, 24, 33, .2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity .12s ease, transform .12s ease;
}

.migo-presence-tooltip-portal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.migo-profile-presence__dot,
.migo-profile-presence__option-dot {
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #38b66a;
}

.migo-profile-presence__dot {
    width: 13px;
    height: 13px;
    box-shadow: 0 0 0 2px #fff;
}

.migo-profile-presence[data-presence="away"] .migo-profile-presence__dot,
.migo-profile-presence__option[data-presence-value="away"] .migo-profile-presence__option-dot {
    background: #f2a329;
}

.migo-profile-presence[data-presence="busy"] .migo-profile-presence__dot,
.migo-profile-presence__option[data-presence-value="busy"] .migo-profile-presence__option-dot {
    background: #df515b;
}

.migo-profile-presence[data-presence="offline"] .migo-profile-presence__dot,
.migo-profile-presence__option[data-presence-value="offline"] .migo-profile-presence__option-dot {
    background: #9ba3ad;
}

.migo-profile-presence.is-saving .migo-profile-presence__dot {
    opacity: .55;
}

.migo-profile-presence__menu,
.tag_create_menu.migo-profile-presence__menu {
    left: -3px;
    right: auto;
    width: 184px;
    min-width: 184px;
    margin-top: 3px;
    padding: 2px;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.migo-profile-presence__menu > li {
    padding: 0;
    margin: 0;
}

.migo-profile-presence__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.migo-profile-presence__option:hover,
.migo-profile-presence__option:focus,
.migo-profile-presence__option.is-selected {
    background: rgba(198, 77, 83, .08);
    box-shadow: none;
    outline: none;
    transform: none;
}

.migo-profile-presence__option-dot {
    width: 8px;
    height: 8px;
    margin: 0 6px 0 0;
}

.migo-profile-presence__copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.migo-profile-presence__copy strong {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.migo-profile-presence__copy small {
    margin-top: 2px;
    color: #8a929d;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.migo-profile-presence__check {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin-left: 2px;
    color: var(--main, #c64d53);
    opacity: 0;
}

.migo-profile-presence__option.is-selected .migo-profile-presence__check {
    opacity: 1;
}

@media (max-width: 767px) {
    .migo-profile-presence {
        left: 6px;
        bottom: 6px;
    }

    .migo-profile-presence__menu,
    .tag_create_menu.migo-profile-presence__menu {
        left: -2px;
        width: 184px;
        min-width: 184px;
    }

}
