/* =========================================================
   ASTROLUA CHAT
   LuaCheia.org
========================================================= */


/* =========================================================
   BASE
========================================================= */

.astro-chat-page {

    --chat-purple:
        #6f42c1;

    --chat-purple-deep:
        #4b267d;

    --chat-purple-dark:
        #281545;

    --chat-purple-soft:
        #f2e9fb;

    --chat-purple-soft-2:
        #f7f1fc;

    --chat-gold:
        #d5ad55;

    --chat-gold-light:
        #f1d996;

    --chat-gold-soft:
        #fff5d7;

    --chat-ivory:
        #fffaf1;

    --chat-ivory-2:
        #fffdf8;

    --chat-text:
        #34263f;

    --chat-muted:
        #786c80;

    --chat-border:
        rgba(111,66,193,.14);

    --chat-gold-border:
        rgba(213,173,85,.38);


    min-height:
        100vh;

    padding:
        120px 0 90px;

    color:
        var(--chat-text);

    background:
        radial-gradient(
            circle at 15% 12%,
            rgba(153,103,211,.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 86% 76%,
            rgba(213,173,85,.10),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #fbf5ff 0%,
            #fffaf2 55%,
            #fffdf8 100%
        );

}


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

.astro-chat-container {

    width:
        min(
            1160px,
            calc(100% - 48px)
        );

    margin:
        0 auto;

}


/* =========================================================
   PAGE TOP
========================================================= */

.astro-chat-page-top {

    margin-bottom:
        18px;

}


.astro-chat-back {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    color:
        var(--chat-purple-deep);

    text-decoration:
        none;

    font-size:
        14px;

    font-weight:
        700;

    transition:
        color .2s ease,
        transform .2s ease;

}


.astro-chat-back:hover {

    color:
        var(--chat-purple);

    transform:
        translateX(-2px);

}


/* =========================================================
   CHAT SHELL
========================================================= */

.astro-chat-shell {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    min-height:
        760px;

    max-height:
        calc(100vh - 165px);

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

    border-radius:
        30px;

    overflow:
        hidden;

    background:
        var(--chat-ivory-2);

    box-shadow:
        0 28px 70px
        rgba(55,28,86,.13);

}


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

.astro-chat-header {

    position:
        relative;

    z-index:
        5;

    min-height:
        104px;

    padding:
        18px 24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        24px;

    border-bottom:
        1px solid
        rgba(241,217,150,.30);

    background:
        linear-gradient(
            135deg,
            #321b53 0%,
            #542b86 55%,
            #6d3eaa 100%
        );

    box-shadow:
        0 6px 22px
        rgba(40,21,69,.14);

}


/* =========================================================
   IDENTITY
========================================================= */

.astro-chat-identity {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    min-width:
        0;

}


.astro-chat-avatar {

    width:
        58px;

    height:
        58px;

    flex:
        0 0 58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(241,217,150,.55);

    border-radius:
        50%;

    color:
        var(--chat-gold-light);

    font-size:
        27px;

    background:
        rgba(255,255,255,.07);

    box-shadow:
        inset 0 0 20px
        rgba(255,255,255,.04),
        0 0 24px
        rgba(213,173,85,.10);

}


.astro-chat-identity-text {

    min-width:
        0;

}


.astro-chat-label {

    display:
        block;

    margin-bottom:
        3px;

    color:
        var(--chat-gold-light);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        .18em;

}


.astro-chat-identity h1 {

    margin:
        0 0 5px;

    color:
        #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        25px;

    font-weight:
        500;

    line-height:
        1.1;

}


.astro-chat-status-line {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    color:
        rgba(255,255,255,.72);

    font-size:
        12px;

}


.astro-chat-status-dot {

    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        var(--chat-gold);

    box-shadow:
        0 0 0 4px
        rgba(213,173,85,.10);

}


/* =========================================================
   SESSION INFO
========================================================= */

.astro-chat-session-info {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

}


.astro-chat-session-item {

    min-width:
        84px;

    padding:
        9px 12px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:
        14px;

    background:
        rgba(255,255,255,.055);

}


.astro-chat-session-label {

    display:
        block;

    margin-bottom:
        2px;

    color:
        rgba(255,255,255,.58);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        .12em;

}


.astro-chat-session-item strong {

    color:
        #fff;

    font-size:
        16px;

    font-weight:
        700;

}


.astro-chat-star {

    color:
        var(--chat-gold-light);

    margin-right:
        2px;

}


.astro-chat-end-button {

    min-height:
        42px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(241,217,150,.55);

    border-radius:
        999px;

    color:
        #4c2877;

    background:
        linear-gradient(
            135deg,
            #f5dda0,
            #d9b65e
        );

    font-size:
        12px;

    font-weight:
        800;

    cursor:
        pointer;

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

}


.astro-chat-end-button:hover:not(:disabled) {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(0,0,0,.18);

}


.astro-chat-end-button:disabled {

    opacity:
        .45;

    cursor:
        default;

}


/* =========================================================
   COST BAR
========================================================= */

.astro-chat-cost-bar {

    padding:
        10px 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    border-bottom:
        1px solid
        rgba(213,173,85,.22);

    color:
        #675873;

    background:
        linear-gradient(
            90deg,
            rgba(255,250,241,.94),
            rgba(246,237,252,.92)
        );

    font-size:
        12px;

}


.astro-chat-cost-bar > span {

    color:
        var(--chat-gold);

    font-size:
        16px;

}


.astro-chat-cost-bar p {

    margin:
        0;

    line-height:
        1.45;

}


.astro-chat-cost-bar strong {

    color:
        var(--chat-purple-deep);

}


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

.astro-chat-messages {

    position:
        relative;

    flex:
        1;

    min-height:
        0;

    overflow-y:
        auto;

    padding:
        28px 28px 34px;

    scroll-behavior:
        smooth;

    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(111,66,193,.045),
            transparent 25%
        ),
        radial-gradient(
            circle at 83% 70%,
            rgba(213,173,85,.055),
            transparent 28%
        ),
        var(--chat-ivory);

}


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

.astro-chat-messages {

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(111,66,193,.26)
        transparent;

}


.astro-chat-messages::-webkit-scrollbar {

    width:
        8px;

}


.astro-chat-messages::-webkit-scrollbar-track {

    background:
        transparent;

}


.astro-chat-messages::-webkit-scrollbar-thumb {

    border-radius:
        999px;

    background:
        rgba(111,66,193,.22);

}


/* =========================================================
   CHAT ROWS
========================================================= */

.astro-chat-row {

    width:
        100%;

    display:
        flex;

    gap:
        10px;

    margin-bottom:
        18px;

}


.astro-chat-row-ai {

    justify-content:
        flex-start;

}


.astro-chat-row-user {

    justify-content:
        flex-end;

}


/* =========================================================
   MESSAGE AVATAR
========================================================= */

.astro-chat-message-avatar {

    width:
        34px;

    height:
        34px;

    flex:
        0 0 34px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        2px;

    border:
        1px solid
        rgba(213,173,85,.42);

    border-radius:
        50%;

    color:
        var(--chat-gold);

    font-size:
        16px;

    background:
        #fffaf0;

    box-shadow:
        0 5px 14px
        rgba(54,30,84,.07);

}


.astro-chat-message-avatar-empty {

    visibility:
        hidden;

}


/* =========================================================
   MESSAGE GROUPS
========================================================= */

.astro-chat-message-group {

    max-width:
        min(
            72%,
            680px
        );

}


.astro-chat-message-group-wide {

    width:
        min(
            720px,
            calc(100% - 44px)
        );

    max-width:
        none;

}


.astro-chat-message-group-form {

    width:
        min(
            600px,
            calc(100% - 44px)
        );

    max-width:
        none;

}


/* =========================================================
   BUBBLES
========================================================= */

.astro-chat-bubble {

    position:
        relative;

    padding:
        14px 17px;

    border-radius:
        19px;

    font-size:
        14px;

    line-height:
        1.62;

    box-shadow:
        0 7px 18px
        rgba(55,30,83,.055);

}


.astro-chat-bubble p {

    margin:
        0;

}


.astro-chat-bubble p + p {

    margin-top:
        8px;

}


.astro-chat-bubble-ai {

    border:
        1px solid
        rgba(111,66,193,.11);

    border-top-left-radius:
        7px;

    color:
        #45364f;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf5ff
        );

}


.astro-chat-bubble-user {

    margin-left:
        auto;

    border:
        1px solid
        rgba(241,217,150,.20);

    border-top-right-radius:
        7px;

    color:
        #fff;

    background:
        linear-gradient(
            135deg,
            #7546b9,
            #542989
        );

    box-shadow:
        0 8px 20px
        rgba(82,42,132,.14);

}


.astro-chat-small-note {

    color:
        var(--chat-muted);

    font-size:
        12px;

}


/* =========================================================
   MESSAGE TIME
========================================================= */

.astro-chat-message-time {

    display:
        block;

    margin-top:
        5px;

    padding-left:
        4px;

    color:
        #95899c;

    font-size:
        10px;

}


/* =========================================================
   CHOICE CARDS
========================================================= */

.astro-chat-choice-card {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        10px;

}


.astro-chat-choice-card-two {

    grid-template-columns:
        repeat(2, 1fr);

}


.astro-chat-choice {

    min-height:
        86px;

    padding:
        16px 12px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border:
        1px solid
        rgba(111,66,193,.15);

    border-radius:
        18px;

    color:
        var(--chat-purple-deep);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(248,240,253,.92)
        );

    font-size:
        13px;

    font-weight:
        700;

    cursor:
        pointer;

    box-shadow:
        0 8px 20px
        rgba(50,29,78,.055);

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

}


.astro-chat-choice:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(213,173,85,.60);

    box-shadow:
        0 12px 24px
        rgba(50,29,78,.10);

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff8ea
        );

}


.astro-chat-choice-icon {

    color:
        var(--chat-gold);

    font-family:
        Georgia,
        serif;

    font-size:
        27px;

}


/* =========================================================
   FORM CARD
========================================================= */

.astro-chat-form-card {

    margin-top:
        10px;

    padding:
        22px;

    border:
        1px solid
        rgba(213,173,85,.34);

    border-radius:
        20px;

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #f9f3fd
        );

    box-shadow:
        0 12px 28px
        rgba(51,28,80,.07);

}


.astro-chat-form-label {

    margin:
        0 0 15px;

    color:
        var(--chat-gold);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .16em;

}


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

.astro-chat-field {

    margin-bottom:
        14px;

}


.astro-chat-field label {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--chat-purple-deep);

    font-size:
        12px;

    font-weight:
        700;

}


.astro-chat-field input {

    width:
        100%;

    min-height:
        44px;

    padding:
        0 13px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(111,66,193,.17);

    border-radius:
        12px;

    outline:
        none;

    color:
        var(--chat-text);

    background:
        rgba(255,255,255,.92);

    font:
        inherit;

    font-size:
        13px;

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

}


.astro-chat-field input:focus {

    border-color:
        rgba(111,66,193,.52);

    background:
        #fff;

    box-shadow:
        0 0 0 3px
        rgba(111,66,193,.08);

}


/* =========================================================
   CHECKBOX
========================================================= */

.astro-chat-checkbox {

    margin:
        -2px 0 15px;

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    color:
        #66586f;

    font-size:
        12px;

    cursor:
        pointer;

}


.astro-chat-checkbox input {

    width:
        16px;

    height:
        16px;

    accent-color:
        var(--chat-purple);

}


/* =========================================================
   FORM MESSAGE
========================================================= */

.astro-chat-form-message {

    margin:
        5px 0 13px;

    padding:
        10px 12px;

    border:
        1px solid
        rgba(180,84,84,.18);

    border-radius:
        11px;

    color:
        #8b4141;

    background:
        #fff4f4;

    font-size:
        12px;

    line-height:
        1.45;

}


/* =========================================================
   FORM SUBMIT
========================================================= */

.astro-chat-form-submit {

    width:
        100%;

    min-height:
        44px;

    border:
        1px solid
        rgba(241,217,150,.62);

    border-radius:
        999px;

    color:
        #fff;

    background:
        linear-gradient(
            135deg,
            #7445b7,
            #542987
        );

    font-size:
        13px;

    font-weight:
        800;

    cursor:
        pointer;

    box-shadow:
        0 8px 18px
        rgba(83,42,132,.13);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.astro-chat-form-submit:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 11px 23px
        rgba(83,42,132,.20);

}


/* =========================================================
   FORM DIVIDER
========================================================= */

.astro-chat-form-divider {

    height:
        1px;

    margin:
        22px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(213,173,85,.35),
            transparent
        );

}


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

#astro-chat-dynamic-messages {

    display:
        contents;

}


/* =========================================================
   TYPING
========================================================= */

.astro-chat-typing-bubble {

    display:
        flex;

    align-items:
        center;

    gap:
        5px;

    min-width:
        58px;

    min-height:
        20px;

}


.astro-chat-typing-bubble span {

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        var(--chat-purple);

    opacity:
        .35;

    animation:
        astroChatTyping
        1.15s
        ease-in-out
        infinite;

}


.astro-chat-typing-bubble span:nth-child(2) {

    animation-delay:
        .15s;

}


.astro-chat-typing-bubble span:nth-child(3) {

    animation-delay:
        .30s;

}


@keyframes astroChatTyping {

    0%,
    100% {

        transform:
            translateY(0);

        opacity:
            .30;

    }

    50% {

        transform:
            translateY(-4px);

        opacity:
            .90;

    }

}


/* =========================================================
   SYSTEM CARDS
========================================================= */

.astro-chat-system-card {

    width:
        min(
            520px,
            100%
        );

    margin:
        26px auto;

    padding:
        28px 25px;

    text-align:
        center;

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

    border-radius:
        22px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #f8effc
        );

    box-shadow:
        0 13px 32px
        rgba(52,30,82,.08);

}


.astro-chat-system-icon {

    width:
        48px;

    height:
        48px;

    margin:
        0 auto 13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(213,173,85,.38);

    border-radius:
        50%;

    color:
        var(--chat-gold);

    font-size:
        22px;

    background:
        rgba(213,173,85,.08);

}


.astro-chat-system-card h3 {

    margin:
        0 0 9px;

    color:
        var(--chat-purple-dark);

    font-family:
        Georgia,
        serif;

    font-size:
        24px;

    font-weight:
        500;

}


.astro-chat-system-card p {

    margin:
        0 auto 18px;

    max-width:
        430px;

    color:
        var(--chat-muted);

    font-size:
        13px;

    line-height:
        1.65;

}


.astro-chat-recharge-button,
.astro-chat-system-button {

    min-height:
        43px;

    padding:
        0 20px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        999px;

    text-decoration:
        none;

    font-size:
        12px;

    font-weight:
        800;

}


.astro-chat-recharge-button {

    color:
        #4b2a73;

    border:
        1px solid
        rgba(213,173,85,.62);

    background:
        linear-gradient(
            135deg,
            #f5dda0,
            #d8b45d
        );

}


.astro-chat-system-button {

    color:
        #fff;

    border:
        1px solid
        rgba(111,66,193,.34);

    background:
        linear-gradient(
            135deg,
            #7445b7,
            #542987
        );

}


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

.astro-chat-composer {

    position:
        relative;

    z-index:
        4;

    padding:
        14px 18px 12px;

    border-top:
        1px solid
        rgba(111,66,193,.10);

    background:
        rgba(255,253,248,.97);

    box-shadow:
        0 -6px 20px
        rgba(55,32,83,.045);

}


.astro-chat-composer-inner {

    display:
        grid;

    grid-template-columns:
        1fr auto;

    align-items:
        end;

    gap:
        10px;

    padding:
        7px 7px 7px 15px;

    border:
        1px solid
        rgba(111,66,193,.16);

    border-radius:
        22px;

    background:
        #fff;

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

}


.astro-chat-composer-inner:focus-within {

    border-color:
        rgba(111,66,193,.44);

    box-shadow:
        0 0 0 3px
        rgba(111,66,193,.07);

}


.astro-chat-composer textarea {

    width:
        100%;

    min-height:
        38px;

    max-height:
        120px;

    padding:
        8px 0;

    border:
        0;

    outline:
        0;

    resize:
        none;

    color:
        var(--chat-text);

    background:
        transparent;

    font:
        inherit;

    font-size:
        14px;

    line-height:
        1.45;

}


.astro-chat-composer textarea::placeholder {

    color:
        #a297a8;

}


.astro-chat-composer textarea:disabled {

    cursor:
        not-allowed;

    opacity:
        .55;

}


/* =========================================================
   SEND
========================================================= */

.astro-chat-send {

    width:
        42px;

    height:
        42px;

    padding:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(241,217,150,.55);

    border-radius:
        50%;

    color:
        #fff;

    background:
        linear-gradient(
            135deg,
            #7546b9,
            #542987
        );

    font-size:
        16px;

    cursor:
        pointer;

    box-shadow:
        0 6px 16px
        rgba(80,40,128,.18);

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

}


.astro-chat-send:hover:not(:disabled) {

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 20px
        rgba(80,40,128,.26);

}


.astro-chat-send:disabled {

    opacity:
        .38;

    cursor:
        default;

}


/* =========================================================
   COMPOSER NOTE
========================================================= */

.astro-chat-composer-note {

    margin:
        7px 0 0;

    text-align:
        center;

    color:
        #918697;

    font-size:
        10px;

    line-height:
        1.4;

}


/* =========================================================
   MODAL
========================================================= */

.astro-chat-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        12000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        22px;

    opacity:
        0;

    visibility:
        hidden;

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

}


.astro-chat-modal.is-open {

    opacity:
        1;

    visibility:
        visible;

}


.astro-chat-modal-backdrop {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(24,12,36,.68);

    backdrop-filter:
        blur(4px);

}


.astro-chat-modal-dialog {

    position:
        relative;

    z-index:
        2;

    width:
        min(
            470px,
            100%
        );

    padding:
        31px 28px 27px;

    border:
        1px solid
        rgba(213,173,85,.46);

    border-radius:
        25px;

    text-align:
        center;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #f8f0fc
        );

    box-shadow:
        0 24px 70px
        rgba(20,9,34,.30);

}


.astro-chat-modal-close {

    position:
        absolute;

    top:
        11px;

    right:
        13px;

    width:
        31px;

    height:
        31px;

    border:
        0;

    border-radius:
        50%;

    color:
        #73647c;

    background:
        rgba(111,66,193,.07);

    font-size:
        19px;

    cursor:
        pointer;

}


.astro-chat-modal-symbol {

    width:
        54px;

    height:
        54px;

    margin:
        0 auto 13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(213,173,85,.42);

    border-radius:
        50%;

    color:
        var(--chat-gold);

    font-size:
        24px;

    background:
        rgba(213,173,85,.07);

}


.astro-chat-modal-label {

    margin:
        0 0 7px;

    color:
        var(--chat-gold);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .17em;

}


.astro-chat-modal-dialog h2 {

    margin:
        0 0 11px;

    color:
        var(--chat-purple-dark);

    font-family:
        Georgia,
        serif;

    font-size:
        29px;

    font-weight:
        500;

}


.astro-chat-modal-dialog > p:not(.astro-chat-modal-label) {

    margin:
        0 auto 23px;

    max-width:
        370px;

    color:
        var(--chat-muted);

    font-size:
        13px;

    line-height:
        1.65;

}


.astro-chat-modal-actions {

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;

}


.astro-chat-modal-secondary,
.astro-chat-modal-primary {

    min-height:
        43px;

    padding:
        0 17px;

    border-radius:
        999px;

    font-size:
        12px;

    font-weight:
        800;

    cursor:
        pointer;

}


.astro-chat-modal-secondary {

    color:
        var(--chat-purple-deep);

    border:
        1px solid
        rgba(111,66,193,.20);

    background:
        #fff;

}


.astro-chat-modal-primary {

    color:
        #fff;

    border:
        1px solid
        rgba(111,66,193,.35);

    background:
        linear-gradient(
            135deg,
            #7546b9,
            #542987
        );

}


/* =========================================================
   OPTIONAL HEADER STARS
========================================================= */

.header-stars-balance {

    min-height:
        42px;

    padding:
        0 15px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    border:
        1px solid
        rgba(213,173,85,.38);

    border-radius:
        999px;

    color:
        #542987;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        800;

    background:
        #fffaf1;

}


.header-stars-icon {

    color:
        #d5ad55;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .astro-chat-page {

        padding-top:
            105px;

    }


    .astro-chat-shell {

        min-height:
            720px;

        max-height:
            none;

    }


    .astro-chat-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            14px;

    }


    .astro-chat-session-info {

        width:
            100%;

        justify-content:
            flex-start;

        flex-wrap:
            wrap;

    }


    .astro-chat-message-group {

        max-width:
            80%;

    }

}


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

@media (max-width: 700px) {

    .astro-chat-page {

        padding:
            90px 0 0;

    }


    .astro-chat-container {

        width:
            100%;

    }


    .astro-chat-page-top {

        padding:
            0 16px;

        margin-bottom:
            12px;

    }


    .astro-chat-shell {

        min-height:
            calc(100vh - 105px);

        max-height:
            none;

        border-left:
            0;

        border-right:
            0;

        border-bottom:
            0;

        border-radius:
            22px 22px 0 0;

    }


    /* HEADER */

    .astro-chat-header {

        min-height:
            auto;

        padding:
            14px 14px 13px;

        gap:
            12px;

    }


    .astro-chat-avatar {

        width:
            46px;

        height:
            46px;

        flex-basis:
            46px;

        font-size:
            22px;

    }


    .astro-chat-identity h1 {

        font-size:
            21px;

    }


    .astro-chat-session-info {

        display:
            grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            8px;

    }


    .astro-chat-session-item {

        min-width:
            0;

        padding:
            8px 10px;

    }


    .astro-chat-end-button {

        grid-column:
            span 2;

        width:
            100%;

    }


    /* COST BAR */

    .astro-chat-cost-bar {

        padding:
            9px 14px;

        align-items:
            flex-start;

        font-size:
            11px;

    }


    /* MESSAGES */

    .astro-chat-messages {

        padding:
            20px 13px 25px;

    }


    .astro-chat-row {

        gap:
            7px;

        margin-bottom:
            15px;

    }


    .astro-chat-message-avatar {

        width:
            29px;

        height:
            29px;

        flex-basis:
            29px;

        font-size:
            14px;

    }


    .astro-chat-message-group {

        max-width:
            86%;

    }


    .astro-chat-message-group-wide,
    .astro-chat-message-group-form {

        width:
            calc(100% - 36px);

    }


    .astro-chat-bubble {

        padding:
            12px 14px;

        font-size:
            13px;

    }


    /* CHOICES */

    .astro-chat-choice-card,
    .astro-chat-choice-card-two {

        grid-template-columns:
            1fr;

    }


    .astro-chat-choice {

        min-height:
            64px;

        flex-direction:
            row;

        justify-content:
            flex-start;

        padding:
            13px 16px;

        text-align:
            left;

    }


    .astro-chat-choice-icon {

        width:
            30px;

        font-size:
            22px;

        text-align:
            center;

    }


    /* FORM */

    .astro-chat-form-card {

        padding:
            18px 15px;

    }


    /* COMPOSER */

    .astro-chat-composer {

        padding:
            10px 11px 9px;

    }


    .astro-chat-composer-inner {

        padding:
            5px 5px 5px 12px;

        border-radius:
            19px;

    }


    .astro-chat-send {

        width:
            39px;

        height:
            39px;

    }


    .astro-chat-composer-note {

        padding:
            0 4px;

        font-size:
            9px;

    }


    /* MODAL */

    .astro-chat-modal {

        padding:
            15px;

    }


    .astro-chat-modal-dialog {

        padding:
            27px 20px 21px;

    }


    .astro-chat-modal-actions {

        flex-direction:
            column;

    }


    .astro-chat-modal-secondary,
    .astro-chat-modal-primary {

        width:
            100%;

    }


    /* OPTIONAL HEADER STARS */

    .header-stars-balance {

        display:
            none;

    }

}


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

@media (max-width: 400px) {

    .astro-chat-page {

        padding-top:
            82px;

    }


    .astro-chat-page-top {

        padding:
            0 12px;

    }


    .astro-chat-header {

        padding:
            12px;

    }


    .astro-chat-label {

        font-size:
            8px;

    }


    .astro-chat-identity h1 {

        font-size:
            19px;

    }


    .astro-chat-status-line {

        font-size:
            11px;

    }


    .astro-chat-session-item strong {

        font-size:
            14px;

    }


    .astro-chat-messages {

        padding:
            17px 10px 22px;

    }


    .astro-chat-message-group {

        max-width:
            88%;

    }


    .astro-chat-bubble {

        font-size:
            12.5px;

    }


    .astro-chat-form-card {

        padding:
            16px 13px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .astro-chat-page *,
    .astro-chat-page *::before,
    .astro-chat-page *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

    }

}

/* =========================================================
   HIDDEN ELEMENTS
========================================================= */

.astro-chat-page [hidden],
.astro-chat-modal[hidden] {
    display: none !important;
}