/* Ask Supreme Chatbot */
.ssc-chat,
.ssc-chat * {
    box-sizing: border-box;
}

.ssc-chat {
    --ssc-navy: #001a40;
    --ssc-light-blue: #a6deff;
    --ssc-white: #ffffff;
    --ssc-border: #a6deff;
    --ssc-soft-border: #d6dce5;
    --ssc-text: #001a40;
    --ssc-body-bg: #eff1f4;
    --ssc-send-bg: #001a40;
    --ssc-send-text: #ffffff;
    --ssc-send-hover-bg: #a6deff;
    --ssc-send-hover-text: #001a40;
    font-family: Inter, Arial, sans-serif;
    color: var(--ssc-text);
}

.ssc-chat a {
    color: var(--ssc-navy);
}

.ssc-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
}

.ssc-launcher {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease;
}

.ssc-launcher:hover,
.ssc-launcher:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.ssc-launcher-icon,
.ssc-launcher-icon img,
.ssc-launcher-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ssc-launcher-icon svg {
    fill: var(--ssc-navy);
}

.ssc-panel {
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    background: var(--ssc-body-bg);
    border: 1px solid var(--ssc-soft-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ssc-floating .ssc-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
}

.ssc-panel[hidden] {
    display: none !important;
}

.ssc-header {
    min-height: 76px;
    padding: 12px 14px;
    background: var(--ssc-navy);
    color: var(--ssc-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ssc-brand {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.ssc-logo {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 50px;
}

.ssc-title-text {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--ssc-white);
}

.ssc-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: var(--ssc-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ssc-close:hover,
.ssc-close:focus-visible {
    background: rgba(255,255,255,.25);
    outline: none;
}

.ssc-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
    background: var(--ssc-body-bg);
}

.ssc-message {
    max-width: 92%;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.ssc-intro-message {
    max-width: 100%;
}

.ssc-bot-message {
    background: var(--ssc-white);
    border: 1px solid var(--ssc-border);
    color: var(--ssc-text);
}

.ssc-user-message {
    margin-left: auto;
    background: var(--ssc-navy);
    color: var(--ssc-white);
    border: 1px solid var(--ssc-navy);
}

.ssc-message a {
    color: var(--ssc-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ssc-message a:hover,
.ssc-message a:focus-visible {
    color: var(--ssc-navy);
    text-decoration-thickness: 2px;
}

.ssc-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.ssc-quick {
    border: 1px solid var(--ssc-border);
    border-radius: 4px;
    background: var(--ssc-white);
    color: var(--ssc-navy);
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.ssc-quick:hover,
.ssc-quick:focus-visible {
    background: #f7fbff;
    border-color: var(--ssc-navy);
    outline: none;
}

.ssc-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 6px;
    border-top: 1px solid var(--ssc-soft-border);
    background: var(--ssc-body-bg);
}

.ssc-input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 14px;
    border: 1px solid var(--ssc-border);
    border-radius: 4px;
    color: var(--ssc-text);
    background: var(--ssc-white);
    font: inherit;
    font-size: 14px;
}

.ssc-input::placeholder {
    color: #8a8a8a;
}

.ssc-input:focus {
    border-color: var(--ssc-navy);
    outline: 2px solid rgba(166, 222, 255, .55);
    outline-offset: 0;
}

.ssc-send {
    height: 56px;
    min-width: 88px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--ssc-send-bg);
    color: var(--ssc-send-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.ssc-send:hover,
.ssc-send:focus-visible {
    background: var(--ssc-send-hover-bg);
    color: var(--ssc-send-hover-text);
    outline: 2px solid var(--ssc-navy);
    outline-offset: 2px;
}

.ssc-inline {
    max-width: 720px;
    margin: 0 auto;
}

.ssc-inline .ssc-panel {
    width: 100%;
    height: 520px;
}

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

.ssc-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ssc-navy);
    opacity: .45;
    animation: sscBounce 1s infinite ease-in-out;
}

.ssc-typing span:nth-child(2) { animation-delay: .12s; }
.ssc-typing span:nth-child(3) { animation-delay: .24s; }

@keyframes sscBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

@media (max-width: 600px) {
    .ssc-floating {
        right: 16px;
        bottom: 16px;
    }

    .ssc-floating .ssc-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 84px;
        width: auto;
        height: min(620px, calc(100vh - 110px));
    }

    .ssc-logo {
        max-width: 150px;
    }
}
