.skt-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 1000;
    font-family: var(--font-body, Arial, sans-serif);
    --skt-green: #047857;
    --skt-green-dark: #064e3b;
    --skt-blue: #0369a1;
    --skt-gold: #fbbf24;
    --skt-gold-soft: #fef3c7;
    --skt-ink: #0f172a;
    --skt-paper: #ffffff;
    --skt-soft: #f1f5f9;
}

.skt-chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--skt-green), var(--skt-blue));
    color: #fff;
    cursor: pointer;
    font-size: 23px;
    box-shadow:
        0 16px 32px rgba(3, 105, 161, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.skt-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 38px rgba(4, 120, 87, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.skt-chat-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    position: absolute;
    right: 72px;
    bottom: 2px;
    width: max-content;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(4, 120, 87, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--skt-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    animation: sktChatPrompt 2.4s ease-in-out infinite;
}

.skt-chat-widget.is-prompt-hidden .skt-chat-prompt {
    display: none;
}

.skt-chat-prompt-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--skt-gold);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.skt-chat-prompt-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
}

.skt-chat-prompt-close:hover {
    background: #e2e8f0;
    color: var(--skt-ink);
}

.skt-chat-prompt::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 17px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
}

.skt-chat-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 440px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: var(--skt-paper);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.skt-chat-widget.is-open .skt-chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.skt-chat-widget.is-open .skt-chat-prompt {
    display: none;
}

.skt-chat-topbar {
    display: none;
}

.skt-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(145deg, var(--skt-green), var(--skt-blue));
    color: #fff;
}

.skt-chat-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(4, 120, 87, 0.16);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.skt-chat-header-content {
    flex: 1;
    min-width: 0;
}

.skt-chat-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.skt-chat-label-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1px;
}

.skt-chat-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ecfeff;
}

.skt-chat-header-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    border-radius: 999px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.skt-chat-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.skt-chat-status {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.skt-chat-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.skt-chat-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.skt-chat-body {
    max-height: 520px;
    min-height: 390px;
    padding: 16px;
    overflow-y: auto;
    background:
        linear-gradient(
            180deg,
            rgba(241, 245, 249, 0.96),
            rgba(255, 255, 255, 0.96)
        ),
        linear-gradient(135deg, rgba(4, 120, 87, 0.06), rgba(3, 105, 161, 0.06));
}

.skt-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.skt-chat-row-user {
    flex-direction: row-reverse;
}

.skt-chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
}

.skt-chat-avatar-bot {
    border: 1px solid rgba(4, 120, 87, 0.14);
    background: #fff;
}

.skt-chat-avatar-bot img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.skt-chat-avatar-user {
    background: var(--skt-green);
    color: #fff;
    font-size: 12px;
}

.skt-chat-message {
    width: fit-content;
    max-width: calc(88% - 38px);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.skt-chat-message p {
    margin: 0;
    white-space: pre-line;
}

.skt-chat-message-bot {
    background: #fff;
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.skt-chat-welcome-message {
}

.skt-chat-welcome-message p {
    font-weight: 700;
}

.skt-chat-message-user {
    background: linear-gradient(135deg, #dcfce7, #e0f2fe);
    color: var(--skt-green-dark);
    border: 1px solid rgba(4, 120, 87, 0.14);
}

.skt-chat-questions,
.skt-chat-actions {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.skt-chat-question {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.skt-chat-question:hover {
    border-color: var(--skt-green);
    color: var(--skt-green);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(4, 120, 87, 0.1);
}

.skt-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.skt-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: sktChatTyping 0.9s infinite ease-in-out;
}

.skt-chat-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.skt-chat-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

.skt-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.skt-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
}

.skt-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--skt-green), var(--skt-blue));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(3, 105, 161, 0.18);
}

.skt-chat-input:disabled,
.skt-chat-send:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

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

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

@keyframes sktChatTyping {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media only screen and (max-width: 640px) {
    .skt-chat-widget {
        right: 14px;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    .skt-chat-panel {
        right: -2px;
        bottom: 70px;
        width: calc(100vw - 28px);
        max-height: calc(100vh - 170px);
    }

    .skt-chat-body {
        min-height: 300px;
        max-height: calc(100vh - 330px);
    }

    .skt-chat-header h2 {
        font-size: 15px;
    }

    .skt-chat-prompt {
        right: 66px;
        max-width: calc(100vw - 104px);
        font-size: 12px;
    }
}

@media only screen and (min-width: 641px) and (max-width: 768px) {
    .skt-chat-widget {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .skt-chat-panel {
        width: 400px;
    }
}

@media only screen and (max-width: 380px) {
    .skt-chat-header {
        padding: 10px 12px;
    }

    .skt-chat-logo {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .skt-chat-logo img {
        width: 26px;
        height: 26px;
    }

    .skt-chat-header h2 {
        font-size: 15px;
    }

    .skt-chat-body {
        min-height: 260px;
        padding: 14px;
    }
}
