@media (max-width: 768px) {
    .whatsapp-main {
        right: 0 !important;
        left: auto !important;
    }
}

.whatsapp-main {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    position: fixed;
    bottom: 0px;
    z-index: 9999999;
    left: auto;
    right: 0px;
}

.whatsapp-wrapper {
    box-shadow: rgb(0 0 0 / 10%) 0px 12px 24px 0px;
    flex-direction: column;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.3s ease 0s, margin 0.3s ease 0s, visibility 0.3s ease 0s;
    background-color: rgb(255, 255, 255);
    transform: translate3d(0px, 0px, 0px);
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    touch-action: auto;
    margin-bottom: 136px;
    position: fixed;
    bottom: 0px;
    left: auto;
    right: 0px;
    margin-left: 12px;
    margin-right: 12px;
    box-sizing: border-box;
    z-index: 10000001;
}

.close_whatsapp {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    opacity: 0.55;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    outline: transparent;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    z-index: 2;
}

.close_whatsapp::before {
    transform: rotate(45deg);
}

.close_whatsapp::after {
    transform: rotate(-45deg);
}

.close_whatsapp::before,
.close_whatsapp::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: rgb(29, 33, 41);
    display: block;
    border-radius: 2px;
}

.whatsapp-header {
    background: #0a5654;
    color: #ffffff;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    padding: 24px 20px;
}

.whatsapp-reply-time {
    font-size: 13px;
    line-height: 18px;
    margin-top: 4px;
}

.whatsapp-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.header-info {
    margin-left: 16px;
    margin-right: 16px;
}

.support-avatar {
    width: 52px;
    height: 52px;
    display: block;
    position: relative;
    flex-shrink: 0;
}

.support-avatar::before {
    content: "";
    bottom: 0px;
    right: 0px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    background-color: rgb(74, 213, 4);
    display: block;
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    border: 2px solid rgb(255, 255, 255);
}

.avatar-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
}

.avatar-img {
    background: white;
    background-size: cover !important;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-position: center center;
    background-repeat: no-repeat;
}

.avatar-img::after {
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    inset: 0px;
    position: absolute;
    content: "";
    overflow: hidden;
}

.whatsapp-background {
    padding: 20px 20px 20px 10px;
    background-color: rgb(230, 221, 212);
    position: relative;
    overflow: auto;
    max-height: 382px;
}

.whatsapp-background::before {
    display: block;
    position: absolute;
    content: "";
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    z-index: 0;
    opacity: 0.08;
    background-image: url(https://elfsight.com/assets/chats/patterns/whatsapp.png);
}

.whatsapp-message-container {
    display: flex;
    z-index: 1;
}

.loading-animation {
    background-color: rgb(255, 255, 255);
    width: 52.5px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    margin-left: 10px;
    /*   opacity: 0; */
    transition: all 0.1s ease 0s;
    z-index: 1;
    box-shadow: rgb(0 0 0 / 13%) 0px 1px 0.5px;
}

.dot-pulse {
    position: relative;
    left: -9999px;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #cbcbcb;
    color: #cbcbcb;
    box-shadow: 9999px 0 0 -5px #cbcbcb;
    animation: dotPulse 1.5s infinite linear;
    animation-delay: .25s;
}

.dot-pulse::before, .dot-pulse::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #cbcbcb;
    color: #cbcbcb;
}

.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px #cbcbcb;
    animation: dotPulseBefore 1.5s infinite linear;
    animation-delay: 0s;
}

.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px #cbcbcb;
    animation: dotPulseAfter 1.5s infinite linear;
    animation-delay: .5s;
}

@keyframes dotPulseBefore {
    0% {
        box-shadow: 9984px 0 0 -5px #cbcbcb;
    }
    30% {
        box-shadow: 9984px 0 0 2px #cbcbcb;
    }
    60%,
    100% {
        box-shadow: 9984px 0 0 -5px #cbcbcb;
    }
}

@keyframes dotPulse {
    0% {
        box-shadow: 9999px 0 0 -5px #cbcbcb;
    }
    30% {
        box-shadow: 9999px 0 0 2px #cbcbcb;
    }
    60%,
    100% {
        box-shadow: 9999px 0 0 -5px #cbcbcb;
    }
}

@keyframes dotPulseAfter {
    0% {
        box-shadow: 10014px 0 0 -5px #cbcbcb;
    }
    30% {
        box-shadow: 10014px 0 0 2px #cbcbcb;
    }
    60%,
    100% {
        box-shadow: 10014px 0 0 -5px #cbcbcb;
    }
}

.wloader {
    height: 5px;
    width: 5px;
    margin: 0px 2px;
    background-color: rgb(182, 181, 186);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    top: 0px;
}

.whatsapp-message-wrapper {
    display: none;
    padding: 7px 14px 6px;
    background-color: rgb(255, 255, 255);
    border-radius: 0px 8px 8px;
    position: relative;
    transition: all 0.3s ease 0s;
    /*   opacity: 1; */
    transform-origin: center top;
    z-index: 2;
    box-shadow: rgb(0 0 0 / 13%) 0px 1px 0.5px;
    margin-top: 4px;
    /*   margin-left: -54px; */
    max-width: calc(100% - 66px);
}

.whatsapp-message-wrapper::before {
    content: "";
    position: absolute;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    top: 0px;
    left: -12px;
    width: 12px;
    height: 19px;
}

.chat-body-wrapper {
    width: 100% !important;
}

.whatsapp-chat-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.4);
}

.whatsapp-chat-message {
    font-size: 14px;
    line-height: 19px;

    margin-top: 4px;
    color: rgb(17, 17, 17);
}

.whatsapp-chat-message p {
    margin: 0px;
}

.whatsapp-message-container {
    box-sizing: border-box !important;
    outline: none !important;
}

.whatsapp-chat-time {
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    color: rgba(17, 17, 17, 0.5);
    margin-right: -8px;
    margin-bottom: -4px;
}

.whatsapp-btn {
    padding: 8px 12px;
    border-radius: 24px;
    border: none;
    background: rgb(14, 193, 47);
    color: rgb(255, 255, 255);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    margin: 20px;
    overflow: hidden;
    appearance: none;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    display: block;
    opacity: 0;
    transform: scale(1);
    background-color: rgb(0, 0, 0);
    z-index: 0;
    transition: all 0.2s ease 0s;
    border-radius: 20px;
    width: 10px;
    height: 10px;
    bottom: -5px;
}

.whatsapp-send-icon-small {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: rgb(255, 255, 255);
    z-index: 1;
}

.chat-button-text {
    margin-left: 8px;
    margin-right: 8px;
    z-index: 1;
    color: rgb(255, 255, 255);
}

.whatsapp-popup-button {
    box-shadow: rgb(0 0 0 / 15%) 0px 3px 12px;
    display: inline-flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
    outline: transparent;
    background-color: rgb(14, 193, 47);
    border: none;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: #fff;
    margin: 0 20px 20px;
    border-radius: 5px;
    padding: 10px 20px;
    min-height: 44px;
    width: auto;
    max-width: 100%;
}

.whatsapp-popup-button::before,
.whatsapp-popup-button::after {
    content: "";
    position: absolute;
    border: 1px solid rgb(14, 193, 47);
    inset: -2px;
    border-radius: 500px;
    opacity: 0;
    z-index: 0;
}

.whatsapp-notify {
    width: 10px;
    height: 10px;
    background-color: rgb(255, 0, 0);
    display: block;
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    right: 4px;
    top: 4px;
}

@keyframes showhide {
    from {
        transition: visibility 0s linear 0.7s, opacity 0.7s ease-in-out;
    }
}

@keyframes showchat {
    from {
        transform: scale(0);
        opacity: 0;
    }
}

.hide-whatsapp {
    display: none;
    animation-name: showhide;
    animation-duration: 0.5s;
    transform: scale(1);
    opacity: 1;
}

.show-whatsapp {
    display: flex;
    animation-name: showchat;
    animation-duration: 0.5s;
    transform: scale(1);
    opacity: 1;
}

.whatsapp-send-icon-big {
    height: 20px;
    width: 20px;
    flex: 0 0 20px;
}

.whatsapp-button-main {
    color: white;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 700;
    width: auto;
    height: auto;
    padding: 0;
}

.play-btn:before {
    content: "";
    position: absolute;
    inset: -3px;
    -webkit-animation: pulsate1 2.4s ease-out infinite;
    animation: pulsate1 2.4s ease-out infinite;
    border-radius: 8px;
    border: 2px solid rgba(14, 193, 47, 0.55);
    pointer-events: none;
}

@-webkit-keyframes pulsate1 {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        -webkit-transform: scale(1.08);
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes pulsate1 {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        -webkit-transform: scale(1.08);
        transform: scale(1.08);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-main {
        z-index: 10000000;
    }

    .whatsapp-popup-button {
        bottom: 0;
        left: auto;
        margin: 0;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 6px;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .whatsapp-button-main {
        font-size: 16px;
    }

    .whatsapp-wrapper {
        width: min(360px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-background {
        max-height: min(280px, 40vh);
    }

    .whatsapp-background::before {
        height: 100%;
    }

    .whatsapp-btn {
        min-height: 44px;
        margin: 16px;
    }
}

@media (min-width: 769px) {
    headers .callnow {
        display: none;
    }

    /* Desktop: WhatsApp sağ alt (Part 2 / madde 5) */
    headers .whatsappx {
        bottom: 20px;
        left: auto;
        right: 20px;
        z-index: 10000000;
        position: fixed;
        width: auto;
        max-width: min(320px, calc(100vw - 24px));
        overflow: visible;
    }

    .whatsapp-main {
        left: auto;
        right: 0;
    }

    .whatsapp-wrapper {
        left: auto;
        right: 12px;
        margin-left: 12px;
        margin-right: 12px;
    }

    headers.dl-sticky-cta {
        background: transparent;
        border: 0;
        padding: 0;
        pointer-events: none;
    }

    headers.dl-sticky-cta .whatsappx,
    headers.dl-sticky-cta .whatsapp-popup-button {
        pointer-events: auto;
    }

    /* Masaüstü: klasik yuvarlak WhatsApp ikonu (metin etiketi gizli) */
    .whatsapp-popup-button {
        width: 60px;
        height: 60px;
        min-height: 60px;
        padding: 0;
        margin: 0;
        gap: 0;
        border-radius: 50%;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .whatsapp-popup-button .whatsapp-button-main {
        display: none;
    }

    .whatsapp-popup-button .whatsapp-send-icon-big {
        height: 32px;
        width: 32px;
        flex: 0 0 32px;
    }

    /* Yanıp sönen halka da yuvarlak olmalı (mobilde buton dikdörtgen, orada 8px kalıyor) */
    .whatsapp-popup-button.play-btn::before,
    .whatsapp-popup-button::after {
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    headers.dl-sticky-cta,
    headers {
        display: flex;
        align-items: stretch;
        gap: 8px;
        box-sizing: border-box;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        width: 100% !important;
        max-width: 100%;
        z-index: 10000000;
        background-color: #f5f5f5;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #e0e0e0;
        overflow: visible;
    }

    headers .whatsappx {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        margin: 0;
        display: flex;
    }

    headers .callnow,
    headers a.callnow {
        flex: 1 1 0;
        float: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        width: auto;
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        color: #fff;
        margin: 0;
        border-radius: 6px;
        padding: 12px 10px;
    }

    headers .callnow .fa {
        padding-right: 0;
    }
}

headers, headers a {
    font-family: 'Roboto', sans-serif;
}

/* Inline price CTA — responsive (replaces fixed 349px width) */
.dl-whatsapp-price-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dl-whatsapp-price-cta__btn {
    background: #0ec12f;
    padding: 12px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 349px;
    min-height: 48px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
}

.dl-whatsapp-price-cta__btn:hover {
    background: #0aa828;
    color: #fff;
}

@media (max-width: 480px) {
    .dl-whatsapp-price-cta__btn {
        font-size: 16px;
        max-width: 100%;
    }
}