.at-chatbot {
    position: fixed;
    left: 40px;
    bottom: 60px;
    z-index: 1090;
    font-family: "Montserrat", Arial, sans-serif;
}

.at-chatbot *,
.at-chatbot *::before,
.at-chatbot *::after {
    box-sizing: border-box;
}

.at-chatbot-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    overflow: hidden;
    color: #d8b66d;
    background:
        radial-gradient(circle at 50% 35%, rgba(216, 182, 109, 0.14), transparent 52%),
        linear-gradient(145deg, #27231d 0%, #171614 55%, #0e0e0e 100%);
    border: 1px solid #79623a;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 0 20px rgba(184, 139, 57, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.at-chatbot-toggle::before {
    position: absolute;
    inset: 5px;
    content: "";
    border: 1px solid rgba(218, 180, 103, 0.16);
    border-radius: inherit;
    pointer-events: none;
}

.at-chatbot-toggle i,
.at-chatbot-toggle svg {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    font-size: 25px;
}

.at-chatbot-toggle:hover,
.at-chatbot-toggle:focus-visible,
.at-chatbot.is-open .at-chatbot-toggle {
    color: #f3d48f;
    border-color: #c29a50;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 0 25px rgba(196, 149, 69, 0.24),
        0 15px 36px rgba(0, 0, 0, 0.78);
    transform: translateY(-2px);
}

.at-chatbot-toggle:focus-visible,
.at-chatbot-close:focus-visible,
.at-chatbot-expand:focus-visible,
.at-chatbot-minimize:focus-visible,
.at-chatbot-option:focus-visible,
.at-chatbot-restart:focus-visible {
    outline: 2px solid #c9a45f;
    outline-offset: 3px;
}

.at-chatbot-window {
    position: absolute;
    left: 0;
    bottom: 78px;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 56px));
    height: min(580px, calc(100vh - 155px));
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    color: #d8d8d8;
    background:
        linear-gradient(rgba(18, 18, 18, 0.98), rgba(12, 12, 12, 0.99)),
        #111;
    border: 1px solid #4a4132;
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 22px 65px rgba(0, 0, 0, 0.82);
    transform: translateY(12px) scale(0.985);
    transform-origin: left bottom;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        width 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.at-chatbot-window::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, #b68b43 18%, #e1c078 50%, #b68b43 82%, transparent);
    opacity: 0.72;
    pointer-events: none;
}

.at-chatbot.is-open .at-chatbot-window {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.at-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px 15px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(53, 45, 32, 0.42), transparent 50%),
        linear-gradient(180deg, #242321 0%, #171717 100%);
    border-bottom: 1px solid #39342d;
}

.at-chatbot-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.at-chatbot-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #d8b66d;
    background: linear-gradient(145deg, #302b23, #171615);
    border: 1px solid #6e5a35;
    border-radius: 50%;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.44);
}

.at-chatbot-avatar i,
.at-chatbot-avatar svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.at-chatbot-heading-text {
    min-width: 0;
}

.at-chatbot-heading strong,
.at-chatbot-heading small {
    display: block;
}

.at-chatbot-heading strong {
    overflow: hidden;
    color: #f1f1f1;
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.45px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-chatbot-heading small {
    margin-top: 4px;
    color: #9d978d;
    font-size: 11px;
    letter-spacing: 0.15px;
    line-height: 15px;
}

.at-chatbot-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #8f8b84;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.18s ease;
}

.at-chatbot-close:hover {
    color: #e2c17c;
    background: #29251f;
    border-color: #584a31;
}

.at-chatbot-close i,
.at-chatbot-close svg {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.at-chatbot-body {
    flex: 1;
    padding: 17px;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 100% 0, rgba(171, 128, 53, 0.055), transparent 38%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.008) 0 1px, transparent 1px 9px),
        #111;
    scrollbar-color: #544a38 #171717;
    scrollbar-width: thin;
}

.at-chatbot-body::-webkit-scrollbar {
    width: 7px;
}

.at-chatbot-body::-webkit-scrollbar-track {
    background: #171717;
}

.at-chatbot-body::-webkit-scrollbar-thumb {
    background: #544a38;
    border: 2px solid #171717;
    border-radius: 10px;
}

.at-chatbot-message {
    position: relative;
    padding: 12px 14px;
    margin-bottom: 13px;
    overflow-wrap: anywhere;
    color: #d4d1ca;
    background: linear-gradient(145deg, rgba(42, 40, 36, 0.96), rgba(25, 25, 25, 0.98));
    border: 1px solid #3e3930;
    border-left: 3px solid #9a773d;
    border-radius: 2px 8px 8px 2px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
    font-size: 13px;
    line-height: 1.65;
}

.at-chatbot-message-text {
    min-width: 0;
    white-space: pre-wrap;
}

.at-chatbot.is-toggle-idle:not(.is-open) .at-chatbot-toggle {
    opacity: 0.5;
    animation: at-chatbot-idle-jump 10s linear 1s infinite;
    backface-visibility: visible;
    transform-origin: center;
    transform-style: preserve-3d;
}

.at-chatbot.is-toggle-idle:not(.is-open) .at-chatbot-toggle:hover,
.at-chatbot.is-toggle-idle:not(.is-open) .at-chatbot-toggle:focus-visible {
    opacity: 1;
}

.at-chatbot.is-mobile-edge-top {
    --at-chatbot-idle-hop-x: 0px;
    --at-chatbot-idle-hop-y: 7px;
}

.at-chatbot.is-mobile-edge-right {
    --at-chatbot-idle-hop-x: -7px;
    --at-chatbot-idle-hop-y: 0px;
}

.at-chatbot.is-mobile-edge-bottom {
    --at-chatbot-idle-hop-x: 0px;
    --at-chatbot-idle-hop-y: -7px;
}

.at-chatbot.is-mobile-edge-left {
    --at-chatbot-idle-hop-x: 7px;
    --at-chatbot-idle-hop-y: 0px;
}

@keyframes at-chatbot-idle-jump {
    0%,
    88% {
        color: #d8b66d;
        background:
            radial-gradient(circle at 50% 35%, rgba(216, 182, 109, 0.14), transparent 52%),
            linear-gradient(145deg, #27231d 0%, #171614 55%, #0e0e0e 100%);
        border-color: #79623a;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.025) inset,
            0 0 20px rgba(184, 139, 57, 0.12),
            0 12px 32px rgba(0, 0, 0, 0.7);
        opacity: 0.5;
        transform: perspective(600px) translate(0, 0) rotateY(0deg);
    }

    90% {
        color: #eee9ff;
        background: linear-gradient(180deg, rgba(83, 45, 118, 0.82), rgba(38, 20, 51, 0.92));
        border-color: #a78bfa;
        box-shadow:
            0 0 0 1px rgba(238, 233, 255, 0.07) inset,
            0 0 18px rgba(167, 139, 250, 0.2),
            0 12px 32px rgba(0, 0, 0, 0.72);
        opacity: 0.5;
        transform: perspective(600px) translate(
            var(--at-chatbot-idle-hop-x, 0px),
            var(--at-chatbot-idle-hop-y, -7px)
        ) rotateY(360deg);
    }

    94% {
        color: #eee9ff;
        background: linear-gradient(180deg, rgba(106, 60, 146, 0.76), rgba(51, 25, 68, 0.92));
        border-color: #a78bfa;
        opacity: 0.5;
        transform: perspective(600px) translate(0, 0) rotateY(720deg);
    }

    97% {
        color: #eee9ff;
        background: linear-gradient(180deg, rgba(83, 45, 118, 0.82), rgba(38, 20, 51, 0.92));
        border-color: #a78bfa;
        opacity: 0.5;
        transform: perspective(600px) translate(
            var(--at-chatbot-idle-hop-x, 0px),
            var(--at-chatbot-idle-hop-y, -7px)
        ) rotateY(900deg);
    }

    100% {
        color: #d8b66d;
        background:
            radial-gradient(circle at 50% 35%, rgba(216, 182, 109, 0.14), transparent 52%),
            linear-gradient(145deg, #27231d 0%, #171614 55%, #0e0e0e 100%);
        border-color: #79623a;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.025) inset,
            0 0 20px rgba(184, 139, 57, 0.12),
            0 12px 32px rgba(0, 0, 0, 0.7);
        opacity: 0.5;
        transform: perspective(600px) translate(0, 0) rotateY(1080deg);
    }
}

.at-chatbot-message.is-typing .at-chatbot-message-text::after {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: currentColor;
    content: '';
    opacity: 0.72;
    animation: at-chatbot-typing-caret 0.75s steps(1, end) infinite;
}

@keyframes at-chatbot-typing-caret {
    50% {
        opacity: 0;
    }
}

.at-chatbot-message.is-success,
.at-chatbot-message.is-warning,
.at-chatbot-message.is-error,
.at-chatbot-message.is-answer {
    --at-chatbot-message-status-color: #47b8e0;
    --at-chatbot-message-status-text: #dff7ff;
    --at-chatbot-message-status-start: rgba(22, 67, 82, 0.72);
    --at-chatbot-message-status-end: rgba(13, 27, 32, 0.99);
    --at-chatbot-message-status-glow: rgba(71, 184, 224, 0.12);
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: flex-start;
    color: var(--at-chatbot-message-status-text);
    background: linear-gradient(145deg, var(--at-chatbot-message-status-start), var(--at-chatbot-message-status-end));
    border: 1px solid var(--at-chatbot-message-status-color);
    border-left-width: 3px;
    box-shadow:
        inset 0 0 0 1px var(--at-chatbot-message-status-glow),
        inset 0 0 22px var(--at-chatbot-message-status-glow),
        0 5px 16px rgba(0, 0, 0, 0.28);
    gap: 9px;
}

.at-chatbot-message.is-success {
    --at-chatbot-message-status-color: #5fc97d;
    --at-chatbot-message-status-text: #e2f8e8;
    --at-chatbot-message-status-start: rgba(28, 72, 41, 0.72);
    --at-chatbot-message-status-end: rgba(16, 30, 20, 0.99);
    --at-chatbot-message-status-glow: rgba(95, 201, 125, 0.1);
}

.at-chatbot-message.is-warning {
    --at-chatbot-message-status-color: #e0aa42;
    --at-chatbot-message-status-text: #fff0cc;
    --at-chatbot-message-status-start: rgba(83, 61, 20, 0.72);
    --at-chatbot-message-status-end: rgba(34, 27, 14, 0.99);
    --at-chatbot-message-status-glow: rgba(224, 170, 66, 0.1);
}

.at-chatbot-message.is-error {
    --at-chatbot-message-status-color: #f05b66;
    --at-chatbot-message-status-text: #ffe5e7;
    --at-chatbot-message-status-start: rgba(83, 24, 30, 0.72);
    --at-chatbot-message-status-end: rgba(35, 15, 18, 0.99);
    --at-chatbot-message-status-glow: rgba(240, 91, 102, 0.1);
}

.at-chatbot-message.is-answer {
    --at-chatbot-message-status-color: #a78bfa;
    --at-chatbot-message-status-text: #eee9ff;
    --at-chatbot-message-status-start: rgba(44, 0, 101, 0.80);
    --at-chatbot-message-status-end: rgba(78, 0, 81, 0.80);
    --at-chatbot-message-status-glow: rgba(167, 139, 250, 0.11);
}

.at-chatbot-message.is-answer.is-typing:focus {
    outline: 2px solid var(--at-chatbot-message-status-color);
    outline-offset: 2px;
}

.at-chatbot-message.is-success .at-chatbot-message-link,
.at-chatbot-message.is-warning .at-chatbot-message-link,
.at-chatbot-message.is-error .at-chatbot-message-link,
.at-chatbot-message.is-answer .at-chatbot-message-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
    border-color: var(--at-chatbot-message-status-color);
}

.at-chatbot-message-status-icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: var(--at-chatbot-message-status-color);
    font-size: 17px;
}

.at-chatbot-message-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 32px;
    padding: 7px 10px;
    margin-top: 9px;
    color: #f0d69e;
    text-decoration: none;
    background: linear-gradient(180deg, #302a20, #1d1b18);
    border: 1px solid #866b3a;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    gap: 7px;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.at-chatbot-message-link:hover,
.at-chatbot-message-link:focus-visible {
    color: #ffe4aa;
    text-decoration: none;
    background: linear-gradient(180deg, #3b3326, #24211d);
    border-color: #c19a50;
    transform: translateY(-1px);
}

.at-chatbot-message-link i,
.at-chatbot-message-link svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    font-size: 13px;
}

.at-chatbot-message.is-answer .at-chatbot-message-link {
    color: var(--at-chatbot-message-status-text);
    background: linear-gradient(
        180deg,
        rgba(83, 45, 118, 0.62),
        rgba(38, 20, 51, 0.82)
    );
    border-color: rgba(167, 139, 250, 0.58);
    box-shadow:
        inset 0 0 0 1px rgba(238, 233, 255, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.26);
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.at-chatbot-message.is-answer .at-chatbot-message-link i,
.at-chatbot-message.is-answer .at-chatbot-message-link svg {
    color: #c4b5fd;
}

.at-chatbot-message.is-answer .at-chatbot-message-link:hover,
.at-chatbot-message.is-answer .at-chatbot-message-link:focus-visible {
    color: #ffffff;
    background: linear-gradient(
        180deg,
        rgba(106, 60, 146, 0.76),
        rgba(51, 25, 68, 0.92)
    );
    border-color: var(--at-chatbot-message-status-color);
    box-shadow:
        inset 0 0 0 1px rgba(238, 233, 255, 0.07),
        0 0 12px rgba(167, 139, 250, 0.16),
        0 3px 9px rgba(0, 0, 0, 0.3);
}

.at-chatbot-options {
    display: grid;
    gap: 9px;
}

.at-chatbot-option {
    position: relative;
    width: 100%;
    min-height: 43px;
    padding: 10px 38px 10px 13px;
    overflow: hidden;
    color: #d9d5cc;
    text-align: left;
    text-overflow: ellipsis;
    white-space: normal;
    background: linear-gradient(180deg, #272624 0%, #1b1b1b 100%);
    border: 1px solid #474139;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.45;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.at-chatbot-option::after {
    position: absolute;
    top: 50%;
    right: 14px;
    content: "›";
    color: #9b7a42;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-52%);
    transition: transform 0.18s ease, color 0.18s ease;
}

.at-chatbot-option:hover {
    color: #f0d69e;
    background: linear-gradient(180deg, #312d26 0%, #201e1a 100%);
    border-color: #8b6d39;
    transform: translateX(2px);
}

.at-chatbot-option:hover::after {
    color: #d9b468;
    transform: translate(2px, -52%);
}

.at-chatbot-feedback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.at-chatbot-choice-group {
    display: grid;
    gap: 11px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(38, 36, 32, 0.72), rgba(24, 24, 24, 0.84));
    border: 1px solid #4d4335;
    border-radius: 4px;
}

.at-chatbot-feedback-group {
    display: block;
}

.at-chatbot-feedback-group .at-chatbot-choice-question {
    display: block;
    width: 100%;
    margin-bottom: 11px;
}

.at-chatbot-choice-question {
    color: #f0e7d6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.at-chatbot-choice-actions {
    width: 100%;
}

.at-chatbot-choice-actions .at-chatbot-option {
    min-height: 42px;
}

.at-chatbot-support-reasons {
    display: grid;
    gap: 8px;
}

.at-chatbot-support-reason {
    display: flex;
    align-items: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    color: #d9d5cc;
    background: linear-gradient(180deg, #242321, #1b1b1b);
    border: 1px solid #464039;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    gap: 9px;
    line-height: 1.45;
}

.at-chatbot-support-reason:hover {
    color: #f0d69e;
    border-color: #80683d;
}

.at-chatbot-support-reason input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #c29a50;
}

.at-chatbot-support-note {
    width: 100%;
    min-height: 76px;
    padding: 10px 12px;
    margin: 0;
    resize: vertical;
    color: #d9d5cc;
    background: linear-gradient(180deg, #242321, #1a1a1a);
    border: 1px solid #464039;
    border-radius: 3px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.at-chatbot-support-note-field {
    display: grid;
    width: 100%;
    margin-top: 9px;
}

.at-chatbot-support-note-counter {
    justify-self: end;
    margin-top: 4px;
    color: #918b81;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.at-chatbot-support-note:focus {
    outline: 2px solid #c9a45f;
    outline-offset: 2px;
}

.at-chatbot-support-note:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.at-chatbot-feedback-notice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    padding: 3px 2px;
    margin-top: 9px;
    color: #aaa59b;
    box-sizing: border-box;
    font-size: 12px;
    gap: 7px;
    line-height: 1.5;
}

.at-chatbot-feedback-notice .fa-circle-info {
    margin-top: 2px;
    color: #e0aa42;
    font-size: 14px;
}

.at-chatbot-feedback-notice span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.at-chatbot-support-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 9px;
}

.at-chatbot-support-ticket:disabled {
    cursor: not-allowed;
}

.at-chatbot-feedback .at-chatbot-option {
    padding-right: 13px;
    text-align: center;
}

.at-chatbot-feedback .at-chatbot-option::after {
    display: none;
}

.at-chatbot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 10px 13px;
    background: linear-gradient(180deg, #1c1c1c, #141414);
    border-top: 1px solid #36312a;
}

.at-chatbot-restart {
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    padding: 7px 10px;
    color: #aaa59b;
    background: #22211f;
    border: 1px solid #464039;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    gap: 7px;
    transition: 0.18s ease;
}

.at-chatbot-restart:hover {
    color: #e4c784;
    background: #2b2822;
    border-color: #755d36;
}

.at-chatbot-restart i,
.at-chatbot-restart svg {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.at-chatbot-timer {
    display: inline-flex;
    align-items: center;
    min-width: 68px;
    color: #a59f94;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    gap: 7px;
}

.at-chatbot-timer[hidden] {
    display: none !important;
}

.at-chatbot-timer i,
.at-chatbot-timer svg {
    width: 12px;
    height: 12px;
    color: #9d7a40;
    font-size: 12px;
}

.at-chatbot-option:disabled,
.at-chatbot-restart:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.35);
    transform: none;
}

@media (max-width: 575.98px) {
    .at-chatbot {
        left: 20px;
        bottom: 20px;
    }

    .at-chatbot-toggle {
        width: 56px;
        height: 56px;
        cursor: grab;
        touch-action: none;
    }

    .at-chatbot.is-dragging .at-chatbot-toggle {
        cursor: grabbing;
    }

    .at-chatbot-window {
        position: fixed;
        right: 14px;
        bottom: 92px;
        left: 14px;
        width: auto;
        height: min(540px, calc(100vh - 112px));
        transform-origin: center bottom;
    }

    .at-chatbot-feedback {
        grid-template-columns: 1fr;
    }

    .at-chatbot-choice-group {
        padding: 11px;
    }

    .at-chatbot-support-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-chatbot-toggle,
    .at-chatbot-window,
    .at-chatbot-option,
    .at-chatbot-option::after {
        transition: none;
    }

    .at-chatbot.is-toggle-idle:not(.is-open) .at-chatbot-toggle {
        animation: none;
    }
}

/* Keep chatbot messages aligned independently from Godlike/global content styles. */
.at-chatbot-body > .at-chatbot-message {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    text-indent: 0;
}

.at-chatbot-body > .at-chatbot-message.is-success,
.at-chatbot-body > .at-chatbot-message.is-warning,
.at-chatbot-body > .at-chatbot-message.is-error,
.at-chatbot-body > .at-chatbot-message.is-answer {
    display: grid;
}

/* Chatbot header controls and blocking confirmation dialogs */
.at-chatbot-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
}

.at-chatbot-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #8f8b84;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.at-chatbot-control:hover {
    color: #e2c17c;
    background: #29251f;
    border-color: #584a31;
}

.at-chatbot-control i,
.at-chatbot-control svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.at-chatbot-minimize i,
.at-chatbot-minimize svg {
    transform: translateY(-2px);
}

.at-chatbot:not(.is-open) .at-chatbot-toggle:hover,
.at-chatbot:not(.is-open) .at-chatbot-toggle:focus-visible {
    color: #eee9ff;
    background: linear-gradient(
        180deg,
        rgba(106, 60, 146, 0.76),
        rgba(51, 25, 68, 0.92)
    );
    border-color: #a78bfa;
    box-shadow:
        0 0 0 1px rgba(238, 233, 255, 0.07) inset,
        0 0 18px rgba(167, 139, 250, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.72);
}

.at-chatbot-expand {
    display: none;
}

.at-chatbot-expand-icon {
    align-items: center;
    justify-content: center;
}

.at-chatbot-expand-icon.is-expand {
    display: inline-flex;
}

.at-chatbot-expand-icon.is-compress {
    display: none;
}

.at-chatbot.is-wide .at-chatbot-expand-icon.is-expand {
    display: none;
}

.at-chatbot.is-wide .at-chatbot-expand-icon.is-compress {
    display: inline-flex;
}

.at-chatbot-expand-icon i,
.at-chatbot-expand-icon svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

@media (min-width: 992px) {
    .at-chatbot-expand {
        display: inline-flex;
    }

    .at-chatbot.is-wide .at-chatbot-window {
        width: min(800px, calc(100vw - 56px));
    }
}

.at-chatbot-footer {
    justify-content: flex-end;
}

.at-chatbot-welcome-message {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    text-indent: 0;
}

.at-chatbot-modal[hidden] {
    display: none !important;
}

.at-chatbot-modal {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.at-chatbot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(2px);
}

.at-chatbot-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(330px, 100%);
    padding: 24px 20px 20px;
    color: #d8d3c9;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(50, 45, 36, 0.98), rgba(20, 20, 20, 0.99)),
        #171717;
    border: 1px solid #715b35;
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 18px 55px rgba(0, 0, 0, 0.8);
}

.at-chatbot-modal-dialog::before {
    position: absolute;
    top: 0;
    right: 14%;
    left: 14%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, #d1aa60, transparent);
}

.at-chatbot-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    color: #d7b568;
    background: #211e19;
    border: 1px solid #665332;
    border-radius: 50%;
}

.at-chatbot-modal-title {
    margin: 0;
    color: #eee9df;
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.at-chatbot-modal-countdown {
    margin-top: 12px;
    color: #a9a297;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.at-chatbot-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
}

.at-chatbot-modal-button {
    min-height: 39px;
    padding: 9px 11px;
    color: #d9d4ca;
    background: linear-gradient(180deg, #292826, #1c1c1c);
    border: 1px solid #4b4439;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: 0.18s ease;
}

.at-chatbot-modal-button:hover {
    color: #f0d69e;
    border-color: #8b6d39;
    background: linear-gradient(180deg, #342f27, #211f1b);
}

.at-chatbot-modal-button.is-confirm {
    border-color: #806434;
}

.at-chatbot-modal-button.is-cancel {
    color: #bdb7ad;
}

.at-chatbot-modal-button:disabled,
.at-chatbot-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.at-chatbot.is-modal-open .at-chatbot-body,
.at-chatbot.is-modal-open .at-chatbot-footer,
.at-chatbot.is-modal-open .at-chatbot-header > :not(.at-chatbot-controls) {
    user-select: none;
}

@media (max-width: 575.98px) {
    .at-chatbot-header {
        padding-right: 10px;
    }

    .at-chatbot-controls {
        gap: 3px;
        margin-left: 7px;
    }

    .at-chatbot-control {
        width: 30px;
        height: 30px;
    }

    .at-chatbot-modal {
        padding: 16px;
    }

    .at-chatbot-modal-actions {
        grid-template-columns: 1fr;
    }
}

.at-chatbot.is-modal-open .at-chatbot-toggle {
    pointer-events: none;
}


/* Chatbot-local AJAX loading layer. Global page loading is intentionally skipped. */
.at-chatbot-loading[hidden] {
    display: none !important;
}

.at-chatbot-loading {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: wait;
}

.at-chatbot-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 7, 0.72);
    backdrop-filter: blur(1.5px);
}

.at-chatbot-loading-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, rgba(48, 43, 34, 0.96), rgba(17, 17, 17, 0.98));
    border: 1px solid #715b35;
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 14px 38px rgba(0, 0, 0, 0.72);
}

.at-chatbot-loading-content img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}
