
/* Andreea assistant */
.andreea-root,
.andreea-root * { box-sizing: border-box; }
.andreea-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    font-family: "Outfit", Arial, sans-serif;
    color: #101828;
}
.andreea-panel {
    position: absolute;
    right: 0;
    bottom: 84px;
    width: min(420px, calc(100vw - 28px));
    height: min(700px, calc(100vh - 116px));
    background: #fff;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(16,24,40,.22);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}
.andreea-root.is-open .andreea-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.andreea-header {
    padding: 18px;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(255,255,255,.27), transparent 38%), linear-gradient(135deg, #65AE4A, #2f7d32);
    flex: 0 0 auto;
}
.andreea-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.andreea-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.andreea-avatar {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.andreea-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.andreea-title { min-width: 0; }
.andreea-title strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}
.andreea-title span {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    font-size: 12px;
    opacity: .94;
}
.andreea-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1fadf;
    box-shadow: 0 0 0 4px rgba(209,250,223,.16);
}
.andreea-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.andreea-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, #fbfffa 100%);
    overflow: hidden;
}
.andreea-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 16px 10px;
    scroll-behavior: smooth;
}
.andreea-message {
    display: flex;
    margin-bottom: 12px;
}
.andreea-message.user { justify-content: flex-end; }
.andreea-bubble {
    max-width: 88%;
    padding: 12px 13px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.andreea-message.assistant .andreea-bubble {
    background: #f2f4f7;
    color: #182230;
    border-bottom-left-radius: 8px;
}
.andreea-message.user .andreea-bubble {
    background: #65AE4A;
    color: #fff;
    border-bottom-right-radius: 8px;
}
.andreea-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 14px;
}
.andreea-action {
    border: 1px solid rgba(101,174,74,.24);
    background: #fff;
    color: #2f7d32;
    border-radius: 999px;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.andreea-action:hover { background: #f6fff3; }
.andreea-quick {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 12px;
    flex: 0 0 auto;
}
.andreea-quick button {
    white-space: nowrap;
    border: 1px solid #eaecf0;
    background: #fff;
    border-radius: 999px;
    color: #344054;
    padding: 8px 11px;
    font-size: 13px;
    cursor: pointer;
}
.andreea-input-area {
    border-top: 1px solid #eaecf0;
    padding: 12px;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,.94);
    flex: 0 0 auto;
}
.andreea-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    outline: none;
}
.andreea-input:focus {
    border-color: #65AE4A;
    box-shadow: 0 0 0 4px rgba(101,174,74,.13);
}
.andreea-send {
    border: 0;
    border-radius: 999px;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    background: #65AE4A;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.andreea-footer {
    min-height: 42px;
    border-top: 1px solid #eaecf0;
    display: grid;
    place-items: center;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    padding: 8px 12px;
    background: #fff;
    flex: 0 0 auto;
}
.andreea-lead-form {
    border: 1px solid #eaecf0;
    border-radius: 22px;
    padding: 13px;
    background: #fff;
    margin: 2px 0 14px;
}
.andreea-lead-form strong {
    display: block;
    margin-bottom: 8px;
}
.andreea-lead-form input,
.andreea-lead-form textarea {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 10px;
    font: inherit;
    font-size: 14px;
}
.andreea-lead-form button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 11px;
    margin-top: 10px;
    background: #65AE4A;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.andreea-launcher {
    width: 66px;
    height: 66px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #65AE4A, #2f7d32);
    box-shadow: 0 18px 42px rgba(101,174,74,.42);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 6px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    position: relative;
}
.andreea-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 54px rgba(101,174,74,.52);
}
.andreea-launcher img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.andreea-launcher-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #d1fadf;
    border: 2px solid #2f7d32;
    box-shadow: 0 0 0 6px rgba(209,250,223,.12);
}
.andreea-root.is-open .andreea-launcher {
    opacity: 0;
    pointer-events: none;
    transform: scale(.8);
}
.andreea-teaser {
    position: absolute;
    right: 0;
    bottom: 86px;
    width: min(330px, calc(100vw - 28px));
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 22px 60px rgba(16,24,40,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}
.andreea-root.show-teaser .andreea-teaser {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.andreea-teaser-open {
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    padding: 0;
}
.andreea-teaser-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.andreea-teaser-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ebf8e6, #f6fff3);
    border: 1px solid rgba(101,174,74,.20);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.andreea-teaser-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
}
.andreea-teaser-content { padding-right: 24px; }
.andreea-teaser-content strong {
    display: block;
    color: #101828;
    font-size: 15px;
    margin-bottom: 4px;
}
.andreea-teaser-content p {
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}
.andreea-root.is-open .andreea-teaser {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 520px) {
    .andreea-root {
        right: 14px;
        left: 14px;
        bottom: 14px;
    }
    .andreea-panel {
        right: 0;
        left: 0;
        margin: auto;
        width: calc(100vw - 28px);
        height: min(640px, calc(100vh - 96px));
        border-radius: 24px;
    }
    .andreea-teaser {
        right: 0;
        left: 0;
        margin: auto;
        width: calc(100vw - 28px);
        bottom: 84px;
    }
    .andreea-launcher {
        margin-left: auto;
    }
}


.andreea-messages > .andreea-message:first-child { margin-top: 2px; }


/* v3: extra safe spacing so first message never sits under green header */
.andreea-body {
    overflow: hidden !important;
}
.andreea-messages {
    padding-top: 46px !important;
}
.andreea-messages > .andreea-message:first-child {
    margin-top: 12px !important;
}
.andreea-footer {
    min-height: 46px !important;
    padding: 8px 14px !important;
    text-align: center !important;
    line-height: 1.35 !important;
}
.andreea-footer a {
    color: #98a2b3 !important;
    text-decoration: none !important;
    display: inline-block !important;
}
.andreea-footer a:hover {
    color: #65AE4A !important;
    text-decoration: underline !important;
}
@media (max-width: 520px) {
    .andreea-messages {
        padding-top: 42px !important;
    }
}


/* v4 stronger overlap fix */
.andreea-header { position: relative !important; z-index: 5 !important; }
.andreea-body { position: relative !important; z-index: 1 !important; }
.andreea-messages { padding-top: 78px !important; }
.andreea-messages > .andreea-message:first-child { margin-top: 20px !important; }
@media (max-width: 520px) {
  .andreea-messages { padding-top: 74px !important; }
}
