#wa-widget,
#wa-widget * {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

#wa-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999999;
}

/* ==============================
   AÇILIR PENCERE
============================== */

#wa-popup {
    position: absolute;
    right: 0;
    bottom: 84px;

    width: 300px;
    padding: 14px;

    background: #ffffff;
    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.18),
        0 3px 10px rgba(0,0,0,.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(.97);
    transform-origin: bottom right;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

#wa-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Konuşma balonu oku */
#wa-popup:after {
    content: "";
    position: absolute;

    right: 28px;
    bottom: -14px;

    width: 0;
    height: 0;

    border-left: 15px solid transparent;
    border-top: 15px solid #ffffff;
}

/* ==============================
   POPUP ÜST ALAN
============================== */

.wa-popup-top {
    display: flex;
    align-items: center;
    padding-right: 35px;
}

/* Büyük WhatsApp Logo */

.wa-popup-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;

    margin-right: 12px;

    border-radius: 50%;

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

    background: radial-gradient(
        circle at 30% 25%,
        #35e87c,
        #20c865 55%,
        #079842
    );
}

.wa-popup-logo svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Popup Yazıları */

.wa-popup-title {
    font-size: 16px;
    font-weight: 500;
    color: #1f2933;
    line-height: 1.2;
    margin-bottom: 3px;
}

.wa-popup-subtitle {
    font-size: 13px;
    color: #59636d;
    line-height: 1.35;
}

/* ==============================
   KAPAT BUTONU
============================== */

#wa-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf0f2;
    color: #58636e;
    font-size: 20px;
    line-height: 0px;
    cursor: pointer;
    transition: .2s ease;
}

#wa-close:hover {
    background: #e2e6e9;
    transform: rotate(90deg);
}

/* ==============================
   ALT MESAJ KUTUSU
============================== */

.wa-message-box {
    display: flex;
    align-items: center;

    margin-top: 12px;

    padding: 10px 11px;

    border-radius: 13px;

    background: linear-gradient(
        90deg,
        #e0f1e8,
        #cfe9dd
    );
}

.wa-small-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;

    margin-right: 10px;

    border-radius: 50%;

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

    background: radial-gradient(
        circle at 30% 25%,
        #2cdb70,
        #10a94d
    );
}

.wa-small-logo svg {
    width: 21px;
    height: 21px;
    fill: #ffffff;
}

.wa-message-text {
    font-size: 13px;
    line-height: 1.35;
    color: #34434c;
}

/* ==============================
   ANA WHATSAPP BUTONU
============================== */

#wa-button {
    position: relative;
    width: 144px;
    height: 62px;
    padding: 0px 32px 0 8px;
    border: 4px solid #008040;
    border-radius: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #388e3c, #388e3c);
}

#wa-button:hover {
    transform: translateY(0px);
}

/* Sol Logo */

.wa-button-logo {
    width: 50px;
    height: 40px;
    min-width: 40px;
    margin-right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 61, .35);
    border: 2px solid rgba(255, 255, 255, .90);
}

.wa-button-logo svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* Buton Yazıları */

.wa-button-text {
    text-align: left;
    color: #ffffff;
}

.wa-button-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.wa-button-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

/* Sağ Ok */

.wa-arrow {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #ffffff;

    font-size: 22px;
    font-weight: 300;
}

/* ==============================
   MOBİL
============================== */

@media (max-width: 500px) {

    #wa-widget {
        right: 12px;
        bottom: 12px;
    }

    #wa-popup {
        width: calc(100vw - 24px);
        max-width: 300px;
        bottom: 92px;
    }

    #wa-button {
        width: 166px;
        height: 66px;
		top: -8px;
    }

    .wa-button-logo {
        width: 49px;
        height: 49px;
        min-width: 49px;
    }

    .wa-button-logo svg {
        width: 30px;
        height: 30px;
    }

    .wa-button-title {
        font-size: 17px;
    }

    .wa-button-subtitle {
        font-size: 11px;
    }
}