/**
 * Takwid Smart Call Buttons — Front-end floating buttons stylesheet.
 *
 * Dynamic per-site colors are injected via two CSS custom properties
 * (--tscb-call-color / --tscb-whats-color) using wp_add_inline_style(),
 * so this file itself stays fully static and cacheable.
 */

.txt-center {
    text-align: center;
}

.txt-center ul li {
    list-style: none;
}

.clear:after,
.clear:before {
    content: " ";
    display: table;
    table-layout: fixed;
}

.clear:after {
    clear: both;
}

.ms-whats-button,
.ms-call-button {
    display: flex;
    position: fixed;
    bottom: 0.3em;
    right: 6px;
    outline: 0;
    cursor: pointer;
    z-index: 9999;
    text-decoration: none;
}

.ms-call-button {
    bottom: 5.2em;
}

.ms-call-icon {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
    text-align: center;
    border-radius: 20%;
    background-color: var(--tscb-call-color, #146375);
    box-shadow: 1px 1px 6px 0px rgba(68, 68, 68, 0.705);
    animation: call-rotate 2s infinite ease-in-out;
}

.ms-whats-txt,
.ms-call-txt {
    padding: 0 22px 0 33px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    background: var(--tscb-call-color, #146375);
    color: #fff;
    margin-right: -17px;
    line-height: 40px;
    border-radius: 10px;
    height: 42px;
    box-shadow: 0 0 5px rgb(0 0 0 / 10%);
    margin-top: 10px;
    text-align: center;
}

.ms-whats-button .ms-call-icon {
    background: var(--tscb-whats-color, #87c059);
}

.ms-whats-txt {
    padding: 0 31px 0 35px;
    background: var(--tscb-whats-color, #87c059);
}

.ms-call-button.active .ms-call-txt,
.ms-whats-button.active .ms-whats-txt,
.ms-call-button:hover .ms-call-txt,
.ms-whats-button:hover .ms-whats-txt {
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
}

@keyframes call-rotate {

    0%,
    100%,
    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        transform: rotate(0) scale(1) skew(1deg);
    }

    10%,
    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
        transform: rotate(-25deg) scale(1) skew(1deg);
    }

    20%,
    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
        transform: rotate(25deg) scale(1) skew(1deg);
    }
}
