
/* =========================================================
   PICKLEBALL COURT RESERVATION
   PREMIUM LIVE CHAT DESIGN
   File: chat/assets/chat.css
========================================================= */

#pickleball-live-chat {
    --chat-primary: #1769e0;
    --chat-primary-dark: #1054bd;
    --chat-secondary: #0f172a;
    --chat-text: #263247;
    --chat-muted: #7b8798;
    --chat-border: #e8edf4;
    --chat-surface: #ffffff;
    --chat-background: #f6f8fc;
    --chat-success: #16b978;

    font-family: inherit;
    position: relative;
    z-index: 99990;
}

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

#pickleball-live-chat .chat-launcher {
    position: fixed;
    right: 28px;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 20px 13px 14px;

    color: #fff;
    background: linear-gradient(
        135deg,
        #2679f5,
        #1259c9
    );

    border: none;
    border-radius: 50px;

    box-shadow:
        0 10px 30px rgba(23, 105, 224, .30),
        0 3px 8px rgba(0, 0, 0, .08);

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;

    z-index: 99999;
}

#pickleball-live-chat .chat-launcher:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(23, 105, 224, .38);
}

#pickleball-live-chat .chat-launcher-icon {
    width: 38px;
    height: 38px;

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

    border-radius: 50%;
    background: rgba(255, 255, 255, .18);

    font-size: 19px;
}

#pickleball-live-chat .chat-launcher-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1px;
}

#pickleball-live-chat .chat-online-indicator {
    position: absolute;

    top: 9px;
    left: 42px;

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #31e69a;

    border: 2px solid #1769e0;
}

/* =========================================================
   CHAT WINDOW
========================================================= */

#pickleball-live-chat .chat-window {
    position: fixed;

    right: 28px;
    bottom: 100px;

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

    height: 590px;
    max-height: calc(100vh - 125px);

    display: flex;
    flex-direction: column;

    background: var(--chat-surface);

    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;

    box-shadow:
        0 24px 70px rgba(15, 23, 42, .20),
        0 5px 18px rgba(15, 23, 42, .06);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.97);

    transform-origin: bottom right;

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

    z-index: 99998;
}

#pickleball-live-chat .chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

#pickleball-live-chat .chat-header {
    flex-shrink: 0;

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

    padding: 17px 19px;

    color: #fff;

    background: linear-gradient(
        125deg,
        #1769e0,
        #104fb6
    );
}

#pickleball-live-chat .chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#pickleball-live-chat .chat-header-avatar {
    width: 43px;
    height: 43px;

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

    border-radius: 14px;

    color: #fff;
    background: rgba(255, 255, 255, .17);

    font-size: 21px;
}

#pickleball-live-chat .chat-header-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

#pickleball-live-chat .chat-header-status {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 3px;

    font-size: 11px;
    color: rgba(255, 255, 255, .88);
}

#pickleball-live-chat .chat-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #40efa2;

    box-shadow: 0 0 0 3px rgba(64, 239, 162, .15);
}

#pickleball-live-chat .chat-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

#pickleball-live-chat .chat-header-btn {
    width: 33px;
    height: 33px;

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

    border: none;
    border-radius: 9px;

    color: #fff;
    background: rgba(255, 255, 255, .14);

    font-size: 15px;

    cursor: pointer;

    transition: background .2s ease;
}

#pickleball-live-chat .chat-header-btn:hover {
    background: rgba(255, 255, 255, .27);
}

/* =========================================================
   CHAT BODY
========================================================= */

#pickleball-live-chat .chat-body {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 18px 17px 10px;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at top right,
            rgba(23, 105, 224, .035),
            transparent 45%
        ),
        var(--chat-background);

    scrollbar-width: thin;
    scrollbar-color: #ccd5e3 transparent;
}

#pickleball-live-chat .chat-body::-webkit-scrollbar {
    width: 5px;
}

#pickleball-live-chat .chat-body::-webkit-scrollbar-thumb {
    background: #ccd5e3;
    border-radius: 10px;
}

/* =========================================================
   WELCOME AREA
========================================================= */

#pickleball-live-chat .chat-welcome {
    text-align: center;
    padding: 5px 12px 18px;
}

#pickleball-live-chat .chat-welcome-icon {
    width: 48px;
    height: 48px;

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

    margin: 0 auto 11px;

    border-radius: 16px;

    color: #1769e0;
    background: #e6f0ff;

    font-size: 22px;
}

#pickleball-live-chat .chat-welcome h3 {
    margin: 0 0 7px;

    color: var(--chat-secondary);

    font-size: 19px;
    font-weight: 800;
}

#pickleball-live-chat .chat-welcome p {
    max-width: 285px;

    margin: 0 auto;

    color: var(--chat-muted);

    font-size: 12px;
    line-height: 1.65;
}

/* =========================================================
   MESSAGE CONTAINER
========================================================= */

#pickleball-live-chat .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 13px;

    width: 100%;
}

/* =========================================================
   MESSAGE ROW
========================================================= */

#pickleball-live-chat .chat-message {
    display: flex;
    flex-direction: column;

    max-width: 86%;

    animation: chatMessageIn .22s ease;
}

#pickleball-live-chat .chat-message.visitor {
    align-self: flex-end;
    align-items: flex-end;
}

#pickleball-live-chat .chat-message.staff,
#pickleball-live-chat .chat-message.system {
    align-self: flex-start;
    align-items: flex-start;
}

#pickleball-live-chat .chat-message-sender {
    margin: 0 0 5px 3px;

    color: var(--chat-muted);

    font-size: 10px;
    font-weight: 700;
}

#pickleball-live-chat .chat-message-bubble {
    padding: 11px 14px;

    border-radius: 15px;

    font-size: 12.5px;
    line-height: 1.65;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#pickleball-live-chat .chat-message.visitor .chat-message-bubble {
    color: #fff;

    background: linear-gradient(
        135deg,
        #2679f5,
        #145bc7
    );

    border-bottom-right-radius: 5px;

    box-shadow: 0 4px 12px rgba(23, 105, 224, .13);
}

#pickleball-live-chat .chat-message.staff .chat-message-bubble {
    color: var(--chat-text);

    background: #fff;

    border: 1px solid var(--chat-border);

    border-bottom-left-radius: 5px;
}

#pickleball-live-chat .chat-message.system {
    align-self: center;
    align-items: center;

    max-width: 95%;
}

#pickleball-live-chat .chat-message.system .chat-message-bubble {
    padding: 7px 12px;

    color: #718096;
    background: #e9eef6;

    border-radius: 20px;

    text-align: center;
    font-size: 10.5px;
}

#pickleball-live-chat .chat-message-time {
    margin-top: 5px;
    padding: 0 3px;

    color: #98a3b4;

    font-size: 9px;
}

/* =========================================================
   QUICK SUGGESTIONS
========================================================= */

#pickleball-live-chat .chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 19px;
    margin-bottom: 10px;
}

#pickleball-live-chat .chat-suggestions-title {
    margin-bottom: 3px;

    color: #66758a;

    font-size: 11px;
    font-weight: 800;
}

#pickleball-live-chat .chat-suggestion-btn {
    display: flex;
    align-items: center;
    gap: 9px;

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

    padding: 9px 12px;

    color: #31537d;
    background: #fff;

    border: 1px solid #e3eaf4;
    border-radius: 10px;

    font-size: 11px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

#pickleball-live-chat .chat-suggestion-btn i {
    color: #1769e0;
    font-size: 13px;
}

#pickleball-live-chat .chat-suggestion-btn:hover {
    background: #edf5ff;
    border-color: #b9d5ff;

    transform: translateX(3px);
}

/* =========================================================
   CONTACT FIELDS
========================================================= */

#pickleball-live-chat .chat-contact-fields {
    flex-shrink: 0;

    padding: 10px 16px 8px;

    background: #fff;
    border-top: 1px solid var(--chat-border);
}

#pickleball-live-chat .chat-contact-title {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 8px;

    color: #536277;

    font-size: 10px;
    font-weight: 800;
}

#pickleball-live-chat .chat-contact-title i {
    color: #1769e0;
    font-size: 12px;
}

#pickleball-live-chat .chat-contact-title span {
    color: #9aa5b5;
    font-weight: 500;
}

#pickleball-live-chat .chat-contact-inputs {
    display: flex;
    gap: 8px;
}

#pickleball-live-chat .chat-contact-inputs input {
    width: 50%;
    min-width: 0;

    padding: 9px 10px;

    color: #263247;
    background: #f8fafd;

    border: 1px solid #e5ebf3;
    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 11px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#pickleball-live-chat .chat-contact-inputs input:focus {
    border-color: #7eb2ff;

    box-shadow: 0 0 0 3px rgba(23, 105, 224, .08);
}

#pickleball-live-chat .chat-contact-inputs input::placeholder {
    color: #9aa5b5;
}

/* =========================================================
   MESSAGE INPUT
========================================================= */

#pickleball-live-chat .chat-input-area {
    flex-shrink: 0;

    padding: 10px 16px 12px;

    background: #fff;

    border-top: 1px solid var(--chat-border);
}

#pickleball-live-chat .chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 9px;

    padding: 7px 8px 7px 13px;

    background: #f7f9fc;

    border: 1px solid #e5ebf3;
    border-radius: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#pickleball-live-chat .chat-input-wrapper:focus-within {
    border-color: #8bbaff;

    box-shadow: 0 0 0 3px rgba(23, 105, 224, .07);
}

#pickleball-live-chat #chatMessageInput {
    flex: 1;

    min-width: 0;
    max-height: 90px;

    padding: 7px 0;

    color: #263247;
    background: transparent;

    border: none;
    outline: none;
    resize: none;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
}

#pickleball-live-chat #chatMessageInput::placeholder {
    color: #9aa5b5;
}

#pickleball-live-chat .chat-send-btn {
    flex-shrink: 0;

    width: 35px;
    height: 35px;

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

    color: #fff;
    background: #1769e0;

    border: none;
    border-radius: 10px;

    font-size: 13px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

#pickleball-live-chat .chat-send-btn:hover {
    background: #1054bd;
    transform: scale(1.05);
}

#pickleball-live-chat .chat-send-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

#pickleball-live-chat .chat-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;

    color: #a0aaba;

    font-size: 9px;
}

#pickleball-live-chat .chat-error {
    display: none;

    margin-top: 7px;

    color: #d04444;

    font-size: 10px;
    line-height: 1.5;
}

#pickleball-live-chat .chat-error.active {
    display: block;
}

/* =========================================================
   MESSAGE ANIMATION
========================================================= */

@keyframes chatMessageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SCROLLBAR
========================================================= */

#pickleball-live-chat .chat-body {
    scrollbar-width: thin;
}

/* =========================================================
   MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 576px) {

    #pickleball-live-chat .chat-launcher {
        right: 17px;
        bottom: 18px;

        padding: 11px 16px 11px 11px;
    }

    #pickleball-live-chat .chat-launcher-icon {
        width: 36px;
        height: 36px;
    }

    #pickleball-live-chat .chat-window {
        right: 10px;
        bottom: 83px;

        width: calc(100vw - 20px);

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

        border-radius: 18px;
    }

    #pickleball-live-chat .chat-header {
        padding: 14px 15px;
    }

    #pickleball-live-chat .chat-body {
        padding: 15px 13px 9px;
    }

    #pickleball-live-chat .chat-contact-fields {
        padding: 9px 12px 7px;
    }

    #pickleball-live-chat .chat-input-area {
        padding: 9px 12px 10px;
    }

}

@media (max-width: 360px) {

    #pickleball-live-chat .chat-launcher-text {
        font-size: 12px;
    }

    #pickleball-live-chat .chat-window {
        right: 7px;
        width: calc(100vw - 14px);
    }

    #pickleball-live-chat .chat-contact-inputs {
        flex-direction: column;
    }

    #pickleball-live-chat .chat-contact-inputs input {
        width: 100%;
    }

}

/* =========================================
   CLICKABLE CHAT MESSAGE LINKS
========================================= */

.chat-message-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.chat-message-link:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

/* Links inside visitor message bubbles */
.chat-message.visitor .chat-message-link {
    color: #ffffff;
}

/* Links inside support message bubbles */
.chat-message.staff .chat-message-link,
.chat-message.system .chat-message-link {
    color: #2563eb;
}

/* =========================================
   PREMIUM PICKLEBALL FLOATING CHAT LAUNCHER
========================================= */

.pickleball-premium-launcher {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    padding: 0 !important;

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

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    background: linear-gradient(
        145deg,
        #15945b,
        #075333
    ) !important;

    color: #ffffff !important;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .22),
        0 0 0 6px rgba(21, 148, 91, .13);

    position: relative;
    overflow: visible !important;

    animation: pickleballLauncherFloat 3s ease-in-out infinite;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.pickleball-premium-launcher:hover {
    transform: scale(1.09);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25),
        0 0 0 9px rgba(21, 148, 91, .16);
}

.pickleball-launcher-icon {
    width: 43px;
    height: 43px;

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

.pickleball-launcher-icon svg {
    width: 100%;
    height: 100%;
}

/* Online indicator */

.pickleball-premium-launcher .chat-online-indicator {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;

    width: 14px !important;
    height: 14px !important;

    background: #a3ff54 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    box-shadow: 0 0 10px rgba(163, 255, 84, .65);
}

/* Premium tooltip */

.pickleball-launcher-tooltip {
    position: absolute;

    right: 82px;
    top: 50%;

    transform: translate(8px, -50%);

    display: flex;
    flex-direction: column;
    gap: 3px;

    width: max-content;
    max-width: 230px;

    padding: 12px 16px;

    background: #102c22;
    color: #ffffff;

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

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

    opacity: 0;
    visibility: hidden;

    transition: all .25s ease;

    pointer-events: none;
}

.pickleball-launcher-tooltip strong {
    font-size: 13px;
    font-weight: 800;
}

.pickleball-launcher-tooltip small {
    font-size: 11px;
    color: #c6e8d5;
}

.pickleball-premium-launcher:hover
.pickleball-launcher-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* Floating animation */

@keyframes pickleballLauncherFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

/* Mobile */

@media (max-width: 576px) {

    .pickleball-premium-launcher {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px;
    }

    .pickleball-launcher-icon {
        width: 37px;
        height: 37px;
    }

    .pickleball-launcher-tooltip {
        display: none;
    }
}


/* =========================================================
   ADVANCED ANIMATED PICKLEBALL ROBOT
   LIGHT BLUE PREMIUM THEME
   Floating Live Chat Launcher
========================================================= */

#pickleball-live-chat .pickleball-robot-launcher {
    position: fixed !important;
    right: 28px !important;
    bottom: 28px !important;

    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;

    padding: 0 !important;
    margin: 0 !important;

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

    overflow: visible !important;

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    background: linear-gradient(
        145deg,
        #38bdf8,
        #1769e0
    ) !important;

    box-shadow:
        0 10px 28px rgba(23, 105, 224, .30),
        0 0 0 6px rgba(56, 189, 248, .15),
        inset 0 2px 5px rgba(255,255,255,.30) !important;

    cursor: pointer;
    z-index: 99999 !important;

    animation: robotLauncherFloat 3s ease-in-out infinite;

    transition:
        box-shadow .3s ease,
        background .3s ease;
}

#pickleball-live-chat .pickleball-robot-launcher:hover {
    transform: scale(1.08) translateY(-3px) !important;

    box-shadow:
        0 15px 35px rgba(23, 105, 224, .38),
        0 0 0 9px rgba(56, 189, 248, .20),
        inset 0 2px 5px rgba(255,255,255,.30) !important;
}

#pickleball-live-chat .pickleball-robot-launcher:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 5px;
}

/* Remove old launcher icon and text */
#pickleball-live-chat .pickleball-robot-launcher
.chat-launcher-icon,
#pickleball-live-chat .pickleball-robot-launcher
.chat-launcher-text {
    display: none !important;
}

/* Robot container */
#pickleball-live-chat .pickleball-robot {
    position: relative;

    width: 67px;
    height: 67px;

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

    animation: robotBodyBounce 2.8s ease-in-out infinite;
}

/* Robot SVG */
#pickleball-live-chat .pickleball-robot-svg {
    width: 100%;
    height: 100%;

    overflow: visible;

    filter: drop-shadow(0 3px 3px rgba(0,0,0,.16));
}

/* Antenna LED */
#pickleball-live-chat .robot-antenna-light {
    animation: robotAntennaPulse 1.8s ease-in-out infinite;
}

/* Robot blinking eyes */
#pickleball-live-chat .robot-eye {
    transform-box: fill-box;
    transform-origin: center;

    animation: robotBlink 4s infinite;
}

#pickleball-live-chat .robot-eye-right {
    animation-delay: .05s;
}

/* Robot arms */
#pickleball-live-chat .robot-left-arm {
    transform-box: view-box;
    transform-origin: 20px 52px;

    animation: robotLeftWave 2.5s ease-in-out infinite;
}

#pickleball-live-chat .robot-right-arm {
    transform-box: view-box;
    transform-origin: 80px 52px;

    animation: robotRightWave 2.8s ease-in-out infinite;
}

/* Floating pickleball */
#pickleball-live-chat .robot-pickleball {
    transform-box: view-box;
    transform-origin: 84px 19px;

    animation: robotBallBounce 1.8s ease-in-out infinite;
}

/* Online indicator */
#pickleball-live-chat .pickleball-robot-launcher
.chat-online-indicator {
    position: absolute !important;

    top: 3px !important;
    right: 3px !important;
    left: auto !important;

    width: 15px !important;
    height: 15px !important;

    background: #a3ff54 !important;

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    box-shadow: 0 0 12px rgba(163,255,84,.8);

    z-index: 5;
}

/* Blue premium tooltip */
#pickleball-live-chat .pickleball-launcher-tooltip {
    position: absolute;

    right: 91px;
    top: 50%;

    transform: translate(10px, -50%);

    display: flex;
    flex-direction: column;
    gap: 4px;

    width: max-content;
    max-width: 230px;

    padding: 12px 16px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1769e0,
        #104fb6
    );

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

    box-shadow: 0 8px 25px rgba(23,105,224,.25);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition: all .25s ease;
}

#pickleball-live-chat .pickleball-launcher-tooltip strong {
    font-size: 13px;
    font-weight: 800;
}

#pickleball-live-chat .pickleball-launcher-tooltip small {
    color: #dbeafe;
    font-size: 11px;
}

/* Show tooltip on hover OR automatic random appearance */
#pickleball-live-chat .pickleball-robot-launcher:hover
.pickleball-launcher-tooltip,
#pickleball-live-chat .pickleball-launcher-tooltip.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translate(0, -50%);
}

/* =========================================================
   ROBOT ANIMATIONS
========================================================= */

@keyframes robotLauncherFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes robotBodyBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-2px) rotate(1deg);
    }
}

@keyframes robotBlink {
    0%, 44%, 48%, 100% {
        transform: scaleY(1);
    }

    46% {
        transform: scaleY(.12);
    }
}

@keyframes robotAntennaPulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px #a3ff54);
    }

    50% {
        opacity: .55;
        filter: drop-shadow(0 0 7px #a3ff54);
    }
}

@keyframes robotLeftWave {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-13deg);
    }
}

@keyframes robotRightWave {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(13deg);
    }
}

@keyframes robotBallBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(35deg);
    }
}

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

@media (max-width: 576px) {

    #pickleball-live-chat .pickleball-robot-launcher {
        right: 17px !important;
        bottom: 18px !important;

        width: 68px !important;
        height: 68px !important;
        min-width: 68px !important;
    }

    #pickleball-live-chat .pickleball-robot {
        width: 59px;
        height: 59px;
    }

/* Mobile tooltip positioning */
#pickleball-live-chat .pickleball-launcher-tooltip {
    display: flex !important;

    right: 78px;
    max-width: calc(100vw - 110px);
}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    #pickleball-live-chat .pickleball-robot-launcher,
    #pickleball-live-chat .pickleball-robot,
    #pickleball-live-chat .robot-eye,
    #pickleball-live-chat .robot-antenna-light,
    #pickleball-live-chat .robot-left-arm,
    #pickleball-live-chat .robot-right-arm,
    #pickleball-live-chat .robot-pickleball {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   PREMIUM HORIZONTAL QUICK QUESTIONS
========================================================= */

#pickleball-live-chat .chat-suggestions {
    display: block !important;

    width: 100%;
    min-width: 0;

    margin-top: 14px;
    margin-bottom: 8px;

    overflow: hidden;
}

#pickleball-live-chat .chat-suggestions-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    color: #52647c;
    font-size: 10px;
    font-weight: 800;
}

#pickleball-live-chat .chat-suggestions-title span {
    color: #9aa9bb;
    font-size: 9px;
    font-weight: 500;
}

/* Horizontal scrolling row */
#pickleball-live-chat .chat-suggestions-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;

    gap: 8px;

    width: 100%;
    padding: 2px 2px 9px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #b8d5f5 transparent;
}

#pickleball-live-chat .chat-suggestions-list::-webkit-scrollbar {
    height: 4px;
}

#pickleball-live-chat .chat-suggestions-list::-webkit-scrollbar-thumb {
    background: #b8d5f5;
    border-radius: 10px;
}

/* Individual question chips */
#pickleball-live-chat .chat-suggestion-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto !important;

    width: auto !important;
    max-width: none !important;

    min-height: 35px;

    padding: 8px 12px !important;

    color: #1769e0 !important;
    background: #ffffff !important;

    border: 1px solid #d8e8fb !important;
    border-radius: 30px !important;

    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap;

    scroll-snap-align: start;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

#pickleball-live-chat .chat-suggestion-btn i {
    flex-shrink: 0;

    color: #38a5f5 !important;
    font-size: 12px;
}

#pickleball-live-chat .chat-suggestion-btn:hover {
    color: #ffffff !important;

    background: linear-gradient(
        135deg,
        #38bdf8,
        #1769e0
    ) !important;

    border-color: #38bdf8 !important;

    box-shadow: 0 4px 12px rgba(23,105,224,.15);

    transform: translateY(-2px);
}

#pickleball-live-chat .chat-suggestion-btn:hover i {
    color: #ffffff !important;
}

/* Mobile adjustments */
@media (max-width: 576px) {

    #pickleball-live-chat .chat-suggestions {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    #pickleball-live-chat .chat-suggestions-title {
        margin-bottom: 7px;
        font-size: 9.5px;
    }

    #pickleball-live-chat .chat-suggestions-list {
        gap: 7px;
    }

    #pickleball-live-chat .chat-suggestion-btn {
        min-height: 33px;
        padding: 7px 10px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   MOBILE QUICK QUESTIONS VISIBILITY FIX
========================================================= */

@media (max-width: 576px) {

    #pickleball-live-chat .chat-body {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    #pickleball-live-chat .chat-welcome {
        flex-shrink: 0 !important;
        padding-bottom: 12px !important;
    }

    #pickleball-live-chat .chat-messages {
        flex: 0 0 auto !important;
        min-height: 0 !important;
    }

    #pickleball-live-chat .chat-suggestions {
        display: block !important;
        flex: 0 0 auto !important;

        width: 100% !important;
        min-width: 0 !important;

        margin-top: 10px !important;
        margin-bottom: 8px !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

    #pickleball-live-chat .chat-suggestions-title {
        display: flex !important;
        visibility: visible !important;
        margin-bottom: 7px !important;
    }

    #pickleball-live-chat .chat-suggestions-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        min-width: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        padding-bottom: 9px !important;

        -webkit-overflow-scrolling: touch;
    }

    #pickleball-live-chat .chat-suggestion-btn {
        display: inline-flex !important;
        flex: 0 0 auto !important;

        width: auto !important;
        max-width: none !important;

        white-space: nowrap !important;
        visibility: visible !important;
    }
}


