.ta-floating-phone-root {
    all: initial;
}

.ta-floating-phone-trigger {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999999;

    width: 58px;
    height: 58px;
    min-width: 58px;

    border: 0;
    border-radius: 14px;
    background: #2f2f6f;
    color: #ffffff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    box-sizing: border-box;

    box-shadow:
        0 0 8px rgba(255,255,255,.55),
        0 3px 12px rgba(0,0,0,.18);

    transition: background .2s ease;
}

.ta-floating-phone-trigger--right {
    left: auto;
    right: 20px;
}

.ta-floating-phone-trigger:hover,
.ta-floating-phone-trigger:focus,
.ta-floating-phone-trigger:focus-visible,
.ta-floating-phone-trigger:active,
.ta-floating-phone-trigger.is-open {
    background: var(--e-global-color-secondary, #f5bd32);
    color: #ffffff;
    outline: none;
}

.ta-floating-phone-trigger__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.ta-floating-phone-trigger__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.ta-floating-phone-trigger__icon--close {
    display: none;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
}

.ta-floating-phone-trigger.is-open .ta-floating-phone-trigger__icon--phone {
    display: none;
}

.ta-floating-phone-trigger.is-open .ta-floating-phone-trigger__icon--close {
    display: flex;
}

.ta-floating-phone-panel {
    position: fixed;
    left: 20px;
    bottom: 88px;
    z-index: 999998;

    display: flex;
    flex-direction: column;
    gap: 10px;

    width: max-content;
    max-width: calc(100vw - 40px);

    padding: 0;
    margin: 0;

    box-sizing: border-box;
}

.ta-floating-phone-panel[hidden] {
    display: none !important;
}

.ta-floating-phone-panel--right {
    left: auto;
    right: 20px;
}

.ta-floating-phone-panel__item {
    display: flex;
    align-items: stretch;

    min-height: 58px;
    width: max-content;
    max-width: calc(100vw - 40px);

    padding: 0;
    margin: 0;

    text-decoration: none !important;
    color: inherit;

    box-sizing: border-box;
}

.ta-floating-phone-panel__location {
    width: 58px;
    min-width: 58px;
    height: 58px;

    border-radius: 14px;
    background: #2f2f6f;
    color: #ffffff;

    box-shadow:
        0 0 8px rgba(255,255,255,.55),
        0 3px 12px rgba(0,0,0,.18);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;

    position: relative;
    z-index: 2;

    box-sizing: border-box;
}

.ta-floating-phone-panel__number {
    width: auto;
    min-width: 0;
    min-height: 58px;

    padding: 0 22px 0 28px;
    margin-left: -14px;

    border-radius: 0 14px 14px 0;
    background: #e9e9e9;
    color: #222222;

    display: flex;
    align-items: center;

    font-family: Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;

    box-shadow:
        0 0 8px rgba(255,255,255,.55),
        0 3px 12px rgba(0,0,0,.12);

    box-sizing: border-box;
}

.ta-floating-phone-panel--right .ta-floating-phone-panel__item {
    flex-direction: row-reverse;
}

.ta-floating-phone-panel--right .ta-floating-phone-panel__number {
    margin-left: 0;
    margin-right: -14px;
    padding: 0 28px 0 22px;
    border-radius: 14px 0 0 14px;
}

@media (max-width: 768px) {
    .ta-floating-phone-trigger {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .ta-floating-phone-trigger__icon svg {
        width: 28px;
        height: 28px;
    }

    .ta-floating-phone-panel {
        bottom: 94px;
    }

    .ta-floating-phone-panel__location {
        width: 64px;
        min-width: 64px;
        height: 64px;
        font-size: 0.9rem;
    }

    .ta-floating-phone-panel__number {
        min-height: 64px;
        font-size: 1.1rem;
    }
}