.ng-chatbot,
.ng-chatbot * {
    box-sizing: border-box;
}

.ng-chatbot {
    --ng-black: #050505;
    --ng-panel: rgba(8, 9, 10, 0.96);
    --ng-panel-soft: rgba(255,255,255,0.055);
    --ng-line: rgba(255,255,255,0.12);
    --ng-gold: #eab308;
    --ng-gold-bright: #facc15;
    --ng-teal: #14b8a6;
    --ng-teal-bright: #2dd4bf;
    --ng-muted: #aeb6c2;
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    z-index: 2147483000;
    font-family: inherit;
    pointer-events: none;
}

.ng-chatbot-launcher {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(234,179,8,0.58);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035)),
        #070707;
    color: var(--ng-gold-bright);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow:
        0 22px 58px rgba(0,0,0,0.52),
        0 0 0 8px rgba(234,179,8,0.07),
        inset 0 1px 0 rgba(255,255,255,0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ng-chatbot-launcher:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(20,184,166,0.72);
    box-shadow:
        0 28px 70px rgba(0,0,0,0.58),
        0 0 0 10px rgba(20,184,166,0.11),
        0 0 34px rgba(234,179,8,0.2);
}

.ng-chatbot-launcher::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 24%, rgba(250,204,21,0.34), transparent 30%),
        linear-gradient(135deg, rgba(234,179,8,0.22), rgba(20,184,166,0.2));
    pointer-events: none;
}

.ng-chatbot-launcher-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(234,179,8,0.18), rgba(20,184,166,0.12)),
        rgba(0,0,0,0.26);
}

.ng-chatbot-launcher-tooltip {
    position: absolute;
    right: 76px;
    bottom: 12px;
    width: max-content;
    max-width: 210px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(234,179,8,0.12), rgba(20,184,166,0.08)),
        rgba(7,7,7,0.96);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ng-chatbot-launcher-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 15px;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-right: 1px solid rgba(255,255,255,0.12);
    background: rgba(7,7,7,0.96);
    transform: rotate(45deg);
}

.ng-chatbot-launcher:hover .ng-chatbot-launcher-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.ng-chatbot-open .ng-chatbot-launcher-tooltip {
    display: none;
}

.ng-chatbot-launcher-pulse {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(234,179,8,0.42);
    border-radius: 22px;
    animation: ngChatbotPulse 1.9s ease-out infinite;
}

.ng-chatbot-launcher-status {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border: 2px solid #050505;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34,197,94,0.9);
}

.ng-chatbot-launcher-icon,
.ng-chatbot-close-icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ng-chatbot-close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
}

.ng-chatbot-open .ng-chatbot-launcher-icon {
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
}

.ng-chatbot-open .ng-chatbot-close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.ng-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 84px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    width: min(430px, calc(100vw - 32px));
    max-height: min(690px, calc(100vh - 122px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
        var(--ng-panel);
    box-shadow:
        0 30px 96px rgba(0,0,0,0.62),
        0 0 0 1px rgba(234,179,8,0.04);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ng-chatbot-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 3px solid rgba(234,179,8,0.7);
    pointer-events: none;
}

.ng-chatbot-open {
    width: min(430px, calc(100vw - 32px));
}

.ng-chatbot-open .ng-chatbot-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ng-chatbot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background:
        radial-gradient(circle at 16% 0%, rgba(234,179,8,0.18), transparent 34%),
        linear-gradient(130deg, rgba(234,179,8,0.12), rgba(20,184,166,0.1)),
        #080808;
}

.ng-chatbot-head::after {
    content: "";
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--ng-gold), transparent 38%, var(--ng-teal));
    opacity: 0.7;
}

.ng-chatbot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ng-chatbot-avatar,
.ng-chatbot-message-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(234,179,8,0.28);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(234,179,8,0.18), rgba(20,184,166,0.1)),
        rgba(255,255,255,0.04);
    color: var(--ng-gold-bright);
}

.ng-chatbot-avatar {
    width: 46px;
    height: 46px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.ng-chatbot-avatar svg,
.ng-chatbot-message-icon svg,
.ng-chatbot-minimize svg,
.ng-chatbot-prompt button svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ng-chatbot-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.ng-chatbot-brand span {
    display: block;
    margin-top: 3px;
    color: var(--ng-teal-bright);
    font-size: 12px;
}

.ng-chatbot-minimize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 10px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    cursor: pointer;
}

.ng-chatbot-minimize:hover {
    border-color: rgba(234,179,8,0.32);
    color: var(--ng-gold-bright);
}

.ng-chatbot-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 17px;
    background:
        radial-gradient(circle at 90% 4%, rgba(20,184,166,0.1), transparent 25%),
        radial-gradient(circle at 10% 18%, rgba(234,179,8,0.08), transparent 24%),
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        #070707;
    background-size: 34px 34px;
}

.ng-chatbot-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ng-chatbot-message-user {
    justify-content: flex-end;
}

.ng-chatbot-message-icon {
    width: 36px;
    height: 36px;
}

.ng-chatbot-bubble {
    max-width: 86%;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 10px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
        rgba(5,5,5,0.72);
    color: #d8dee8;
    font-size: 14px;
    line-height: 1.5;
}

.ng-chatbot-message-user .ng-chatbot-bubble {
    border-color: rgba(20,184,166,0.34);
    background:
        linear-gradient(135deg, rgba(20,184,166,0.2), rgba(234,179,8,0.08)),
        rgba(20,184,166,0.1);
    color: #fff;
}

.ng-chatbot-bubble strong,
.ng-chatbot-bubble span {
    display: block;
}

.ng-chatbot-bubble strong {
    margin-bottom: 4px;
    color: #fff;
}

.ng-chatbot-bubble strong:empty::after,
.ng-chatbot-bubble > span:empty::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 2px;
    border-right: 2px solid #eab308;
    vertical-align: -2px;
    animation: ngChatbotCaret 0.8s steps(2, start) infinite;
}

.ng-chatbot-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ng-chatbot-service-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid rgba(234,179,8,0.28);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(234,179,8,0.12), rgba(20,184,166,0.06));
    color: #f8d95a;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ng-chatbot-service-chip:hover {
    transform: translateY(-2px);
    background: rgba(20,184,166,0.16);
    color: #fff;
}

.ng-chatbot-prompt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}

.ng-chatbot-prompt input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.ng-chatbot-prompt input::placeholder {
    color: #8f98a7;
}

.ng-chatbot-prompt button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ng-gold), var(--ng-teal));
    color: #070707;
    cursor: pointer;
}

.ng-chatbot-prompt button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ng-chatbot-form-wrap {
    display: grid;
    gap: 14px;
}

.ng-chatbot-form-wrap[hidden] {
    display: none;
}

.ng-chatbot-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background:
        linear-gradient(155deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
}

.ng-chatbot-field {
    display: grid;
    gap: 6px;
}

.ng-chatbot-field label {
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 800;
}

.ng-chatbot-field input,
.ng-chatbot-field select,
.ng-chatbot-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    outline: 0;
    background: rgba(0,0,0,0.34);
    color: #fff;
    font: inherit;
    font-size: 14px;
    padding: 10px 11px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.ng-chatbot-field textarea {
    min-height: 86px;
    resize: vertical;
}

.ng-chatbot-field select option {
    background: #090909;
    color: #fff;
}

.ng-chatbot-field input:focus,
.ng-chatbot-field select:focus,
.ng-chatbot-field textarea:focus {
    border-color: rgba(234,179,8,0.62);
    box-shadow: 0 0 0 3px rgba(234,179,8,0.1);
}

.ng-chatbot-error {
    display: none;
    color: #fca5a5;
    font-size: 12px;
}

.ng-chatbot-field-error .ng-chatbot-error {
    display: block;
}

.ng-chatbot-field-error input,
.ng-chatbot-field-error select,
.ng-chatbot-field-error textarea {
    border-color: rgba(248,113,113,0.7);
}

.ng-chatbot-notice {
    padding: 10px 12px;
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
    background: rgba(248,113,113,0.1);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.45;
}

.ng-chatbot-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ng-gold), var(--ng-teal));
    color: #050505;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.ng-chatbot-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ng-chatbot-submit-loading,
.ng-chatbot-submit-done,
.ng-chatbot-submit.ng-chatbot-sending .ng-chatbot-submit-ready,
.ng-chatbot-submit.ng-chatbot-done .ng-chatbot-submit-ready {
    display: none;
}

.ng-chatbot-submit.ng-chatbot-sending .ng-chatbot-submit-loading,
.ng-chatbot-submit.ng-chatbot-done .ng-chatbot-submit-done {
    display: inline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ngChatbotPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.92);
    }
    100% {
        opacity: 0;
        transform: scale(1.24);
    }
}

@keyframes ngChatbotCaret {
    0%,
    45% {
        opacity: 1;
    }
    46%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .ng-chatbot {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }

    .ng-chatbot-launcher {
        right: 0;
        width: 58px;
        height: 58px;
    }

    .ng-chatbot-launcher-tooltip {
        right: 70px;
        max-width: calc(100vw - 120px);
    }

    .ng-chatbot-panel {
        right: 0;
        bottom: 76px;
        width: 100%;
        max-height: calc(100vh - 106px);
    }

    .ng-chatbot-body {
        padding: 13px;
    }
}
