
/* =========================================
   WEBFLOW BY KHALID - LIVE CHAT
   BLACK & GREEN WEBSITE THEME
   ========================================= */

#wk-chat-widget,
#wk-chat-widget * {
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif !important;
}

/* =========================================
   FLOATING WIDGET POSITION
   ========================================= */

#wk-chat-widget {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 999999;
    margin: 0;
    padding: 0;
}

/* Fallback when floating-actions is missing */
body > #wk-chat-widget {
    position: fixed;
    left: 25px;
    bottom: 25px;
}

/* =========================================
   FLOATING CHAT BUTTON
   ========================================= */

#wk-chat-button {
    position: relative;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;

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

    padding: 0;
    margin: 0;

    border: 1px solid rgba(102,255,0,.35);
    border-radius: 50%;

    background: #4caf00;
    color: #050505;

    font-size: 23px;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0,0,0,.35);

    transition: all .3s ease;
}

#wk-chat-button i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 23px;
    color: #050505;
}

#wk-chat-button:hover {
    background: #66ff00;
    transform: translateY(-3px);
}

#wk-chat-button:focus-visible {
    outline: 2px solid #66ff00;
    outline-offset: 4px;
}

/* Tooltip */

.wk-chat-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);

    padding: 9px 13px;

    background: #0f0f0f;
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: .3s ease;
}

#wk-chat-button:hover .wk-chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   CHAT PANEL
   ========================================= */

#wk-chat-panel {
    display: none;
    flex-direction: column;

    position: absolute;
    right: 0;
    left: auto;
    bottom: 0px;

    width: 370px;
    max-width: calc(100vw - 30px);

    height: 520px;
    max-height: calc(100vh - 110px);

    overflow: hidden;

    background: #0f0f0f;
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;

    box-shadow: 0 15px 50px rgba(0,0,0,.55);
}

/* =========================================
   HEADER
   ========================================= */

#wk-chat-header {
    flex: 0 0 auto;

    min-height: 75px;
    padding: 14px 17px;

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

    background: #080808;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.wk-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wk-header-icon {
    width: 42px;
    height: 42px;

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

    background: rgba(76,175,0,.12);
    border: 1px solid rgba(76,175,0,.25);
    border-radius: 12px;

    color: #66ff00;
    font-size: 18px;
}

.wk-header-info strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.wk-header-info span {
    display: block;
    margin-top: 4px;
    color: #9a9a9a;
    font-size: 10px;
}

#wk-chat-close {
    width: 35px;
    height: 35px;

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

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #9a9a9a;

    font-size: 19px;
    cursor: pointer;

    transition: .3s ease;
}

#wk-chat-close:hover {
    background: rgba(255,255,255,.08);
    color: #66ff00;
}

/* =========================================
   CONTENT AREA
   ========================================= */

#wk-chat-content {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    padding: 20px;

    overflow: hidden;

    background: #050505;
    color: #ffffff;
}

#wk-chat-content h3 {
    margin: 0 0 9px;

    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
}

#wk-chat-content p {
    margin: 0 0 15px;

    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.7;
}

.wk-welcome {
    margin-bottom: 8px;
}

/* =========================================
   FORM LABELS
   ========================================= */

#wk-chat-form label {
    display: block;
    margin: 12px 0 6px;

    color: #c5c5c5;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   INPUT FIELDS
   ========================================= */

#wk-chat-widget input,
#wk-chat-widget input:focus,
#wk-chat-widget input:active {
    display: block !important;

    width: 100% !important;
    height: 46px;

    margin: 0 !important;
    padding: 0 13px !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;

    background: #111111 !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    caret-color: #66ff00 !important;

    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 12px !important;

    outline: none !important;
    box-shadow: none;
}

#wk-chat-widget input::placeholder {
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
    opacity: 1;
}

#wk-chat-widget input:focus {
    border-color: #4caf00 !important;
    box-shadow: 0 0 0 3px rgba(76,175,0,.08) !important;
}

/* =========================================
   START CHAT BUTTON
   ========================================= */

#wk-chat-start {
    width: 100%;
    min-height: 46px;

    margin-top: 20px;
    padding: 12px 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: none;
    border-radius: 8px;

    background: #4caf00;
    color: #050505;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
    transition: .3s ease;
}

#wk-chat-start:hover {
    background: #66ff00;
    transform: translateY(-1px);
}

#wk-chat-start:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

/* Error Message */

#wk-chat-error {
    margin-top: 12px;
    color: #ff8585;
    font-size: 11px;
}

/* =========================================
   MESSAGES
   ========================================= */

#wk-chat-messages {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    gap: 10px;
    padding: 12px 2px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

#wk-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#wk-chat-messages::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}

#wk-chat-widget .wk-message {
    align-self: flex-start;

    max-width: 85%;
    width: fit-content;

    padding: 11px 14px;

    background: #151515;
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px 14px 14px 14px;

    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

#wk-chat-widget .wk-message.visitor {
    align-self: flex-end;

    background: #4caf00;
    color: #050505;

    border-color: rgba(102,255,0,.3);
    border-radius: 14px 5px 14px 14px;
}

#wk-chat-widget .wk-message small {
    display: block;
    margin-top: 6px;

    color: #9a9a9a;
    font-size: 9px;
}

#wk-chat-widget .wk-message.visitor small {
    color: rgba(0,0,0,.65);
}

/* =========================================
   MESSAGE COMPOSER
   ========================================= */

#wk-chat-composer {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
    gap: 8px;

    padding: 12px;

    background: #080808;
    border-top: 1px solid rgba(255,255,255,.08);
}

#wk-chat-composer input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 43px;
    margin: 0 !important;
}

#wk-chat-send {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;

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

    padding: 0;

    background: #4caf00;
    color: #050505;

    border: 0;
    border-radius: 9px;

    font-size: 16px;
    cursor: pointer;

    transition: .3s ease;
}

#wk-chat-send:hover {
    background: #66ff00;
}

#wk-chat-send:disabled {
    opacity: .6;
    cursor: wait;
}

#wk-chat-status {
    flex: 0 0 auto;

    min-height: 20px;
    margin: 0;

    padding: 5px 12px 9px;

    background: #080808;

    color: #9a9a9a;
    font-size: 10px;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 480px) {

    #wk-chat-button {
        width: 54px;
        height: 54px;
    }

    #wk-chat-panel {
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);

        height: min(520px, calc(100dvh - 100px));
        max-height: calc(100vh - 100px);

        bottom: 66px;
    }

    #wk-chat-content {
        padding: 16px;
    }

    .wk-chat-tooltip {
        display: none;
    }

}

/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    #wk-chat-widget *,
    #wk-chat-widget *::before,
    #wk-chat-widget *::after {
        transition: none !important;
        animation: none !important;
    }

}
