/* Shared/_WhatsAppButton.cshtml dosyasından taşındı (satır içi blok). */
#hkmo-whatsapp-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    line-height: 1;
    pointer-events: none;
    transition: bottom 0.15s ease-out, transform 0.2s ease, opacity 0.2s ease;
}

.hkmo-wa-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px 7px 10px;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 9999px;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.32), 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1;
    min-height: 34px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.hkmo-wa-btn:hover {
    background: linear-gradient(135deg, #29e26e 0%, #20b859 100%);
    color: #ffffff !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hkmo-wa-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.hkmo-wa-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px #25D366;
}

.hkmo-wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    pointer-events: none;
    animation: hkmoWaPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes hkmoWaPulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.hkmo-wa-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hkmo-wa-btn:hover .hkmo-wa-icon-box {
    transform: scale(1.1) rotate(-8deg);
}

.hkmo-wa-svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

.hkmo-wa-label {
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Mobil görünüm */
@media (max-width: 768px) {
    #hkmo-whatsapp-support {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
    .hkmo-wa-btn {
        padding: 8px 14px 8px 11px;
        font-size: 12.5px;
        gap: 7px;
        min-height: 38px;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35), 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .hkmo-wa-icon-box {
        width: 19px;
        height: 19px;
    }
    .hkmo-wa-svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    body:has(input:focus) #hkmo-whatsapp-support,
    body:has(textarea:focus) #hkmo-whatsapp-support,
    body:has(select:focus) #hkmo-whatsapp-support,
    body:has(.ts-wrapper.focus) #hkmo-whatsapp-support,
    body:has(.ts-wrapper.dropdown-active) #hkmo-whatsapp-support {
        display: none !important;
    }
}

@media print {
    #hkmo-whatsapp-support {
        display: none !important;
    }
}
