/* === Wrapper for widget === */
#rt-chatbot-widget {
    position: fixed;
    z-index: 10000;
    bottom: 100px;
    right: 24px;
    font-family: inherit;
}

/* RTL: move to left */
html[dir="rtl"] #rt-chatbot-widget {
    right: auto;
    left: 24px;
}

/* === Floating launcher button === */
#rt-chatbot-launcher {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: #12b8b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#rt-chatbot-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    background-color: #0d9d98;
}

/* === Chat panel (card) === */
.rt-chatbot-panel {
    position: absolute;
    bottom: 72px;          /* keeps it above the floating button */
    right: 0;              /* anchored to right side */
    width: 320px;          /* from your design */
    height: 400px;         /* from your design */
    background: #ffffff;
    border-radius: 16px;   /* from your design */
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* RTL: align panel left */
html[dir="rtl"] .rt-chatbot-panel {
    right: auto;
    left: 0;
}

.rt-chatbot-panel--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}
.rt-chatbot-top {
    width: 100%;
    height: 300px;
    background: #29228A;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 0;
    box-sizing: border-box;
    color: #ffffff;
    position: relative;    /* 🔸 add this */
}


.rt-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;        /* space before text */
}

.rt-chatbot-logo {
    height: 36px;               /* fits nicely in card */
    width: auto;
}

.rt-chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}
.rt-chatbot-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
}
.rt-chatbot-hero-left {
    max-width: 180px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;                 /* space between Hello and description */
}

.rt-chatbot-title {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    margin: 0;
}

.rt-chatbot-intro {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;       /* gives comfortable multi-line spacing */
    letter-spacing: 0;
    margin: 0;
}
.rt-chatbot-intro-name {
    color: #2FB4B1;          /* match your brand green/teal */
    font-weight: 500;
}

/* small green dot after the sentence */
.rt-chatbot-intro-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2FB4B1;
    margin-left: 6px;
    transform: translateY(-1px);
}

.rt-chatbot-avatar {
    position: absolute;
    top: 60px;
    left: 162px;
    width: 142px;
    height: 176px;
    pointer-events: none;
}

.rt-chatbot-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* === Body strip (CTA) === */
.rt-chatbot-body {
    flex: 0 0 120px;            /* fixes height relative to full card */
    background: #F6F6FA;
    padding: 14px 18px 12px;
    box-sizing: border-box;
}

/* CTA card */
.rt-chatbot-cta {
    width: 100%;
    border-radius: 12px;
    border: none;
    background-color: #ffffff;
    color: #111827;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rt-chatbot-cta-text {
    display: flex;
    flex-direction: column;   /* <-- stack vertically */
    gap: 4px;
}
.rt-chatbot-cta-main {
    font-size: 14px;
    font-weight: 500;
}
.rt-chatbot-note {
    font-size: 11px;
    color: #1D1F1F;
}

.rt-chatbot-cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* “We will reply to you within minutes.” */
.rt-chatbot-note {
    margin: 8px 2px 0;
    font-size: 11px;
    color: #6b7280;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* === Chat area === */
.rt-chatbot-chat-area {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 10px;
    background: #f9fafb;
    flex: 1;
}

.rt-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 8px;
}

/* Message bubbles */
.rt-chatbot-message {
    max-width: 90%;
    padding: 6px 9px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.rt-chatbot-message--user {
    background-color: #12b8b2;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.rt-chatbot-message--bot {
    background-color: #ffffff;
    color: #111827;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

/* Form */
.rt-chatbot-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.rt-chatbot-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
}

.rt-chatbot-input:focus {
    border-color: #12b8b2;
    box-shadow: 0 0 0 1px rgba(18, 184, 178, 0.3);
}

.rt-chatbot-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #12b8b2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.rt-chatbot-send-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.rt-chatbot-waves {
    margin-top: auto;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.rt-chatbot-waves img {
    display: block;
    height: auto;
}

/* Small screens */
@media (max-width: 480px) {
    .rt-chatbot-panel {
        width: 94vw;
        right: 3vw;
    }

    html[dir="rtl"] .rt-chatbot-panel {
        left: 3vw;
        right: auto;
    }
}
/* Container for embedded chat frontend (fills the card) */
.rt-chatbot-embed {
    display: none;         /* hidden until we enter "embedded" mode */
    position: absolute;
    inset: 0;              /* fill the whole card */
}

/* iframe itself */
.rt-chatbot-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* When embedded: hide original card content, show iframe */
.rt-chatbot-panel.rt-chatbot-panel--embedded .rt-chatbot-top,
.rt-chatbot-panel.rt-chatbot-panel--embedded .rt-chatbot-body {
    display: none;
}

.rt-chatbot-panel.rt-chatbot-panel--embedded .rt-chatbot-embed {
    display: block;
}
body.rt-embed {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Container should fill the iframe, not look like a big page */
body.rt-embed .container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

/* Header & footer are usually too big for 320x369 card – hide them */
body.rt-embed .header,
body.rt-embed .footer {
    display: none;
}

/* Chat area takes all available height */
body.rt-embed .chat-container {
    flex: 1;
    min-height: 0;
    padding: 8px;
}

/* Messages scroll nicely inside remaining space */
body.rt-embed .messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Input area sticks to bottom of card */
body.rt-embed .input-container {
    padding: 8px;
}
body.rt-embed {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Container fills iframe instead of fixed web layout */
body.rt-embed .container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

/* Header & footer are hidden in widget */
body.rt-embed .header,
body.rt-embed .footer {
    display: none;
}

/* Chat area takes most of the vertical space */
body.rt-embed .chat-container {
    flex: 1;
    min-height: 0;
    padding: 8px;
}

/* Messages scroll inside */
body.rt-embed .messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Input at the bottom */
body.rt-embed .input-container {
    padding: 8px;
}