.spoki-button-relative * {
    box-sizing: border-box;
}

.spoki-button-relative {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 4px 0;
    overflow: hidden;
}

.spoki-button-relative > .spoki-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #23D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    line-height: 100%;
    text-decoration: none;
    margin-bottom: 0;
}

.spoki-button-relative > .spoki-button .spoki-wa-icon {
    margin: 0 6px 0 0;
}

.spoki-button-relative > .spoki-button:hover {
    opacity: 0.9;
    background-color: #23D366;
}

.spoki-button-relative > .spoki-button svg {
    position: relative;
    min-height: unset;
    height: 12px;
}

.spoki-button-relative > .spoki-button svg + span {
    margin-left: 6px;
}

.spoki-button-relative > .spoki-button span {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 100%;
}

.spoki-button-relative > .spoki-button.size-1 {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.spoki-button-relative > .spoki-button.size-1 svg {
    height: 12px;
}

.spoki-button-relative > .spoki-button.size-2, .spoki-button-relative > .spoki-button.size-4 {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 16px;
}

.spoki-button-relative > .spoki-button.size-2 svg, .spoki-button-relative > .spoki-button.size-4 svg {
    height: 16px;
    width: auto;
}

.spoki-button-relative > .spoki-button.size-3 {
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 24px;
}

.spoki-button-relative > .spoki-button.size-3 svg {
    height: 18px;
}

.spoki-button-relative > .spoki-button.size-4 {
    width: 100%;
}

#spoki-fixed-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    z-index: 9999;
}

#spoki-fixed-btn #spoki-chat-link {
    display: flex;
    background-color: #23D366;
    width: 65%;
    height: 65%;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

#spoki-fixed-btn #spoki-chat-link:hover {
    opacity: 0.9;
}

#spoki-fixed-btn svg {
    width: auto;
    height: auto;
    max-width: 65%;
    max-height: 65%;
}

.spoki-fixed-btn-label {
    position: absolute;
    box-sizing: border-box;
    padding: 6px 12px;
    background-color: white;
    width: max-content;
    max-width: 60vw;
    box-shadow: #00122e2e 0 1px 50px 0;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.spoki-fixed-btn-label img {
    max-height: 16px;
    max-width: 16px;
    object-fit: contain;
}
.spoki-fixed-btn-label.hide-not-hover {
    display: none;
}

#spoki-fixed-btn:active .spoki-fixed-btn-label.hide-not-hover,
#spoki-fixed-btn:focus .spoki-fixed-btn-label.hide-not-hover,
#spoki-fixed-btn:hover .spoki-fixed-btn-label.hide-not-hover {
    display: block;
}

.spoki-fixed-btn-popup {
    position: absolute;
    right: -5px;
    top: -5px;
    background-color: #f44336;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 10px;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    z-index: 1;
}

#spoki-chat-preview {
    position: absolute;
    right: 0;
    bottom: 52px;
    margin-bottom: 12px;
    border-radius: 16px;
    background-color: white;
    width: 300px;
    max-width: 80vw;
    height: auto;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .2);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    z-index: 999999999;
    visibility: visible;
    opacity: 1;
    transition: visibility 0.25s ease, opacity 0.25s;

}

#spoki-chat-preview.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s;
}

#spoki-chat-preview .spoki-chat-preview-chat-message {
    background-color: white;
    border-radius: 0 12px 12px 12px;
    padding: 8px 12px;
    position: relative;
    margin-top: 8px;
    margin-left: 16px;
    margin-bottom: 50px;
    max-width: 80%;
    width: max-content;
    border: 1px solid #EFEFEF;
    font-size: 16px;
    line-height: 20px;
    color: rgba(0, 0, 0, .8);
    text-overflow: ellipsis;
    box-sizing: border-box;
}

#spoki-chat-preview #spoki-chat-preview-footer {
    display: flex;
    flex-direction: row;
    padding: 8px 8px 8px 16px;
    flex: 1;
    width: 100%;
    background-color: #EFEFEF;
    box-sizing: border-box;
}

#spoki-chat-preview #spoki-chat-preview-footer form {
    display: inherit;
    width: 100%;
}

#spoki-chat-preview #spoki-chat-preview-footer #spoki-chat-preview-message {
    width: 100%;
    border: none;
    font-size: 14px;
    line-height: 18px;
    padding: 4px 16px;
    color: rgba(0, 0, 0, .8);
    border-radius: 16px;
    outline: none !important;
    margin-right: 8px;
}

#spoki-chat-preview #spoki-chat-preview-footer #spoki-chat-preview-send {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    color: #7C8083;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    outline: unset !important;
}

#spoki-chat-preview #spoki-chat-preview-footer #spoki-chat-preview-send:hover,
#spoki-chat-preview #spoki-chat-preview-footer #spoki-chat-preview-send:active,
#spoki-chat-preview #spoki-chat-preview-footer #spoki-chat-preview-send:focus {
    opacity: 0.8;
}

#spoki-chat-preview:not(.hidden) ~ #spoki-chat-link svg {
    display: none;
}

#spoki-chat-preview:not(.hidden) ~ .spoki-fixed-btn-label,
#spoki-chat-preview:not(.hidden) ~ .spoki-fixed-btn-popup {
    display: none;
}

#spoki-chat-preview:not(.hidden) ~ #spoki-chat-link:before {
    content: 'X';
    color: white !important;
    font-size: 18px;
}

@media (max-width: 575px) {
    #spoki-fixed-btn.hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    #spoki-fixed-btn.hidden-tablet {
        display: none !important;
    }
}

@media (min-width: 992px) {
    #spoki-fixed-btn.hidden-desktop {
        display: none !important;
    }
}