#waf-live-chat-widget {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.waf-chat-right {
    right: 20px;
    align-items: flex-end;
}

.waf-chat-left {
    left: 20px;
    align-items: flex-start;
}

.waf-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--waf-chat-button-bg, linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)) !important;
    border: 2px solid #ffffff;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35), 0 0 0 4px rgba(244, 63, 94, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none !important;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.waf-chat-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waf-chat-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.45), 0 0 0 6px rgba(244, 63, 94, 0.15);
}

.waf-chat-button:hover::before {
    opacity: 1;
}

.waf-chat-button svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.waf-chat-button .dashicons {
    display: none;
    color: #fff;
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.waf-chat-button img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50% !important;
    display: block;
    transition: transform 0.3s ease;
}

.waf-chat-button:hover img {
    transform: scale(1.1);
}

.waf-panel {
    display: none;
}

#waf-live-chat-widget.open .waf-panel {
    display: block;
}

.waf-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.waf-socials .waf-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.15);
    text-decoration: none;
    font-size: 13px;
    color: #111827;
    max-width: 260px;
}

.waf-chat-right .waf-socials .waf-social {
    border-bottom-right-radius: 4px;
}

.waf-chat-left .waf-socials .waf-social {
    border-bottom-left-radius: 4px;
}

.waf-socials .waf-social svg,
.waf-socials .waf-social .dashicons {
    flex-shrink: 0;
}

.waf-socials .waf-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,23,42,0.2);
}

.waf-composer {
    display: none;
    margin-bottom: 8px;
}

#waf-live-chat-widget.open .waf-composer {
    display: flex;
    gap: 8px;
}

.waf-composer input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 13px;
}

.waf-composer button {
    padding: 8px 14px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.waf-chat-notice {
    position: relative;
    max-width: 300px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 18px 22px 18px 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transform-origin: bottom right;
    animation: wafPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wafPopIn {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.waf-chat-right .waf-chat-notice {
    margin-right: 75px;
}

.waf-chat-left .waf-chat-notice {
    margin-left: 75px;
}

.waf-chat-notice::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 0;
    height: 0;
    border-style: solid;
}

.waf-chat-right .waf-chat-notice::after {
    right: 24px;
    border-width: 8px 8px 0 0;
    border-color: #ffffff transparent transparent transparent;
}

.waf-chat-left .waf-chat-notice::after {
    left: 24px;
    border-width: 8px 0 0 8px;
    border-color: #ffffff transparent transparent transparent;
}

.waf-chat-notice-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
}

.waf-chat-notice-close:hover {
    color: #111827;
}

.waf-chat-notice-content {
    padding-right: 16px;
}

.waf-issue-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.waf-issue-modal.open {
    display: flex;
}

.waf-issue-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.4);
}

.waf-issue-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.45);
    width: 320px;
    max-width: 90%;
    overflow: hidden;
}

.waf-issue-header {
    background: #1d4ed8;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.waf-issue-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: lowercase;
}

.waf-issue-close {
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 16px;
    cursor: pointer;
}

.waf-issue-body {
    padding: 12px 14px 16px;
}

.waf-issue-field {
    margin-bottom: 8px;
}

.waf-issue-field input,
.waf-issue-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 13px;
}

.waf-issue-field textarea {
    resize: vertical;
}

.waf-issue-actions {
    margin: 8px 0;
}

.waf-issue-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.waf-issue-file input {
    display: none;
}

.waf-issue-file-name {
    font-size: 11px;
    color: #6b7280;
}

.waf-issue-submit {
    margin-top: 6px;
}

.waf-issue-submit button {
    width: 100%;
    background: #1d4ed8;
    border: none;
    border-radius: 999px;
    padding: 9px 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

@media only screen and (max-width: 600px) {
    #waf-live-chat-widget {
        bottom: 15px;
    }
    .waf-chat-right {
        right: 15px;
    }
    .waf-chat-left {
        left: 15px;
    }
    .waf-chat-button {
        width: 56px;
        height: 56px;
    }
    .waf-chat-button svg {
        width: 28px;
        height: 28px;
    }
}
