/* 
 * @author Storetransform
 * @package Storetransform_Infochatbot
 */

/*:root {
    --st-chatbot-bg: #ffffff;
    --st-header-bg: #007bff;
    --st-button-bg: #007bff;
    --st-bot-msg-bg: #e2e2e2;
    --st-user-msg-bg: #007bff;
}*/

:root {
    --st-white-color: #ffffff;
    --st-primary-color: #00AEEF;
    --st-text-color: #1F2937;
    --st-border-color: #E5E7EB;
    --st-header-bg: #00AEEF;
    --st-button-bg: #00AEEF;
    --st-user-msg-bg: #00AEEF;
}

#st-chatbot-container {
    position: fixed;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

/* Positions */
.st-chatbot-left_bottom {
    bottom: 20px;
    left: 20px;
}

.st-chatbot-right_bottom {
    bottom: 20px;
    right: 20px;
}

.st-chatbot-website_center {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.st-chatbot-website_center .st-chatbot-label {
    background: var(--st-header-bg);
    /*color: #fff;*/
    color: var(--st-white-color);
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
}

/* Icon */
#st-chatbot-icon {
    cursor: pointer;
}

.st-icon-wrapper {
    width: 60px;
    height: 60px;
    /*background: var(--st-header-bg);*/
    background: var(--st-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/*.st-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}*/
.st-icon-wrapper img {
    max-width: 50%;
    max-height: fit-content;
    border-radius: 50%;
}

/* ── Icon size modifiers ─────────────────────────────────────────── */
/* Small  : 44 × 44 px  |  SVG kept at 22 px */
.st-icon-size-small .st-icon-wrapper {
    width: 44px;
    height: 44px;
}

.st-icon-size-small .st-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

/* Medium : 60 × 60 px  (default — explicit rule for clarity) */
.st-icon-size-medium .st-icon-wrapper {
    width: 60px;
    height: 60px;
}

.st-icon-size-medium .st-icon-wrapper svg {
    width: 30px;
    height: 30px;
}

/* Large  : 80 × 80 px  |  SVG kept at 38 px */
.st-icon-size-large .st-icon-wrapper {
    width: 80px;
    height: 80px;
}

.st-icon-size-large .st-icon-wrapper svg {
    width: 38px;
    height: 38px;
}

/* ─────────────────────────────────────────────────────────────────── */

/* Window */
#st-chatbot-window {
    position: fixed;
    bottom: 90px;
    max-width: calc(100% - 40px);
    /*width: 320px;*/
    width: 600px;
    background: var(--st-white-color);
    /*background: var(--st-chatbot-bg);*/
    /*border-radius: 12px;*/
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.st-chatbot-left_bottom #st-chatbot-window {
    left: 20px;
}

.st-chatbot-right_bottom #st-chatbot-window {
    right: 20px;
}

.st-chatbot-website_center #st-chatbot-window {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

/* Header */
.st-chat-header {
    background: var(--st-header-bg);
    /*color: #fff;
    padding: 15px;*/
    color: var(--st-white-color);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


#st-chatbot-container .st-chatbot-name {
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.25;
    font-weight: 600;
    margin: 0;
}

#st-chatbot-container .st-chatbot-tagline {
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 400;
    margin: 5px 0 0;
}

.st-header-info strong {
    display: block;
    font-size: 1.1em;
}

.st-header-info span {
    font-size: 0.85em;
    opacity: 0.9;
}

.st-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#st-chat-end-btn {
    /*background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s;*/
    background-color: var(--st-white-color);
    border: 1px solid var(--st-border-color);
    color: var(--st-primary-color);
    padding: 12px 15px;
    border-radius: 14px;
    height: auto;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#st-chat-end-btn:hover {
    /*background: rgba(255, 255, 255, 0.3);*/
    background-color: var(--st-button-bg);
    color: var(--st-white-color);
    border-color: var(--st-white-color);
}

#st-chat-close {
    background: none;
    border: none;
    /*color: #fff;*/
    color: var(--st-white-color);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.st-chat-body {
    /*padding: 15px;*/
    padding: 25px;
    height: auto;
    color: var(--st-text-color);
    min-height: 500px;
    max-height: 700px;
    overflow-y: auto;
    /*background: var(--st-chatbot-bg);*/
    background: var(--st-white-color);
    display: flex;
    flex-direction: column;
}

#st-user-info-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

#st-user-info-form p {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: #444;
}

.st-form-field {
    margin-bottom: 18px;
}

/*.st-form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}*/

#st-chatbot-container .st-form-field label {
    display: block;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--st-text-color);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

/* Red asterisk for required fields */
#st-chatbot-container .st-form-field .st-required {
    color: #e53e3e;
    margin-left: 3px;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
    vertical-align: middle;
}

#st-chatbot-container .st-form-field input {
    padding: 12px 15px;
    border-radius: 14px;
    color: var(--st-text-color);
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 500;
    width: 100%;
    height: auto;
    border: 1px solid var(--st-border-color);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#st-chatbot-container .st-form-field input::placeholder {
    color: #1F293780;
}

.st-form-field input:focus {
    /*border-color: var(--st-button-bg);*/
    border: 1px solid var(--st-primary-color);
    outline: none;
}

#st-start-chat {
    width: 100%;
    background: var(--st-button-bg);
    /*color: #fff;*/
    color: var(--st-white-color);
    border: 1px solid var(--st-primary-color);
    /*border: none;*/
    padding: 12px;
    border-radius: 6px;
    height: auto;
    cursor: pointer;
    /*font-weight: bold;*/
    /*font-size: 1em;*/
    /*transition: filter 0.2s;*/
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.25;
    font-weight: 400;
    transition: all 0.3s ease;
}

#st-start-chat:hover {
    background-color: var(--st-white-color);
    color: var(--st-primary-color);
    /*filter: brightness(0.9);*/
    filter: none;
}

#st-start-chat:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.st-msg-received,
.st-msg-sent {
    /*padding: 10px 14px;*/
    padding: 12px 15px;
    border-radius: 14px;
    /* margin-bottom: 10px;
    max-width: 85%;
    font-size: 0.9em;
    line-height: 1.4;*/
    margin-bottom: 15px;
    width: fit-content;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    word-wrap: break-word;
}

.st-msg-received {
    /*background: var(--st-bot-msg-bg);*/
    background-color: #F3F4F6 !important;
    /*color: #333;*/
    color: var(--st-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}


.st-msg-sent-wpr {
    display: flex;
    justify-content: flex-end;
}

.st-faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 15px 0;
}

.st-msg-sent {
    background: var(--st-user-msg-bg);
    /*color: #fff;*/
    color: var(--st-white-color);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#st-chatbot-container .st-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: fit-content;
    margin: 0 0 15px 0;
}

#st-chatbot-container .st-action-buttons.st-custom-actions {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

#st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn.st-has-image {
    padding: 15px;
    color: var(--st-text-color);
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn.st-has-image:hover {
    background-color: transparent;
    color: var(--st-primary-color);
}

/* #st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn::after{
  content: none;
} */

#st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn.st-has-image span.st-action-img-wpr {
    max-width: 100px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
}

#st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn.st-has-image span.st-action-img-wpr img {
    width: 100%;
    height: 100%;
}

@media(max-width: 480px) {
    #st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn.st-has-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* #st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn{
    border: 0;
    padding: 0 20px 0 0;
    color: var(--st-text-color);
    position: relative;
} */


/* #st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn::after{
    content: '';
    position: absolute;
    top: 50%;
    right: 5px;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 1px solid var(--st-text-color);
    border-top: 1px solid var(--st-text-color);
    transition: all 0.3s ease;
}

#st-chatbot-container .st-action-buttons.st-custom-actions .st-action-btn:hover::after{
    transform: translate(5px, -50%) rotate(45deg);
    border-color: var(--st-primary-color);
} */

#st-chatbot-container .st-action-btn.st-back-menu-btn,
#st-chatbot-container .st-action-btn.st-faq-back-btn {
    border: 0;
    padding: 0 0 0 20px;
    color: var(--st-text-color);
    position: relative;
    margin: 0 0 15px 0;
}

#st-chatbot-container .st-action-btn.st-back-menu-btn:hover,
#st-chatbot-container .st-action-btn.st-faq-back-btn:hover {
    background-color: transparent;
    color: var(--st-primary-color);
}

#st-chatbot-container .st-action-btn.st-back-menu-btn::after,
#st-chatbot-container .st-action-btn.st-faq-back-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-left: 1px solid var(--st-text-color);
    border-bottom: 1px solid var(--st-text-color);
    transition: all 0.3s ease;
}

#st-chatbot-container .st-action-btn.st-back-menu-btn:hover::after,
#st-chatbot-container .st-action-btn.st-faq-back-btn:hover::after {
    transform: translate(-5px, -50%) rotate(45deg);
    border-color: var(--st-primary-color);
}


/* #st-chatbot-container .st-action-btn.st-faq-back-btn:before {
    content: '\2190';
    font-family: 'luma-icons';
    padding: 0 8px 0 0;
} */

/* #st-chatbot-container .st-action-btn.st-faq-back-btn {
    background: transparent;
    border: none;
    border-radius: 14px;
    color: var(--st-primary-color);
    line-height: 1.25;
    font-weight: 500;
    text-align: left;
    height: auto;
    padding: 0;
    font-size: 14px;
} */

#st-chatbot-container .st-action-btn {
    background-color: var(--st-white-color);
    border: 1px solid var(--st-primary-color);
    border-radius: 14px;
    color: var(--st-primary-color);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.25;
    font-weight: 500;
    text-align: left;
    height: auto;
    padding: 12px 15px;
}

#st-chatbot-container .st-action-btn:hover {
    background-color: var(--st-button-bg);
    color: var(--st-white-color);
}

#st-chatbot-container .st-category-buttons,
#st-chatbot-container .st-filter-option-buttons,
#st-chatbot-container .st-filter-attribute-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#st-chatbot-container .st-category-btn,
#st-chatbot-container .st-filter-option-btn,
#st-chatbot-container .st-filter-attr-btn {
    border: 1px solid var(--st-border-color);
    border-radius: 30px;
    padding: 10px 15px;
    height: auto;
    line-height: 1.25;
    transition: all 0.3s ease;
    color: #6B7280;
}

#st-chatbot-container .st-category-btn:hover,
#st-chatbot-container .st-filter-option-btn:hover,
#st-chatbot-container .st-filter-attr-btn:hover {
    color: var(--st-white-color);
    border-color: var(--st-primary-color);
}

#st-chatbot-container .st-product-slider {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#st-chatbot-container .st-product-item {
    border: 1px solid var(--st-border-color);
    border-radius: 14px;
    overflow: hidden;
    padding: 15px;
    display: flex;
    gap: 15px;
}

#st-chatbot-container .st-product-image-wpr {

    padding: 10px;
    background-color: #F3F4F6;
    border-radius: 14px;
    max-width: 80px;
    max-height: 80px;
}

#st-chatbot-container .st-product-image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: contain;
    display: block;
}

#st-chatbot-container .st-product-detail {
    width: 100%;
}


#st-chatbot-container .st-product-name {
    color: var(--st-text-color);
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 600;
}

#st-chatbot-container .st-pricing-details {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 0;
}

#st-chatbot-container .st-price {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.25;
    font-weight: 600;
}

#st-chatbot-container .st-add-to-cart {
    background-color: var(--st-button-bg);
    border: 1px solid var(--st-primary-color);
    color: var(--st-white-color);
    border-radius: 10px;
    padding: 10px 12px;
    height: auto;
    line-height: 1.25;
    transition: all 0.3s ease;
}

#st-chatbot-container .st-add-to-cart:hover {
    background-color: var(--st-white-color);
    color: var(--st-primary-color);
}

#st-chatbot-container .st-view-all-wrapper {
    text-align: center;
    margin: 15px 0 0;
    color: var(--st-primary-color);
}

#st-chatbot-container .st-view-all-btn {
    position: relative;
    color: var(--st-primary-color);
    text-decoration: none;
}

#st-chatbot-container .st-view-all-btn::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--st-primary-color);
    border-right: 2px solid var(--st-primary-color);
    transition: all 0.3s ease;
}

#st-chatbot-container .st-view-all-btn:hover::after {
    transform: translate(5px, -50%) rotate(45deg);
}

/* Footer */
.st-chat-footer {
    /*padding: 15px;*/
    padding: 0 25px 25px;
    border-top: 1px solid #eee;
    /*background: var(--st-chatbot-bg);*/
    background: var(--st-white-color);
    display: flex;
    gap: 8px;
    background: var(--st-white-color);
    border: 0;
}

.st-chat-copyright {
    padding: 10px 25px;
    font-size: 11px;
    color: #6B7280;
    text-align: center;
    border-top: 1px solid var(--st-border-color);
    background: #F9FAFB;
    border-radius: 0 0 20px 20px;
}

.st-chat-copyright a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.2s;
}

.st-chat-copyright a:hover {
    color: var(--st-primary-color);
}

#st-chat-input {
    flex-grow: 1;
    /*border: 1px solid #ddd;*/
    border: 1px solid var(--st-border-color);
    /*border-radius: 20px;*/
    border-radius: 14px;
    /*padding: 8px 15px;*/
    padding: 12px 15px;
    font-size: 0.95em;
    color: var(--st-text-color);
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 500;
    height: auto;
}

#st-chat-input:focus {
    /*border-color: var(--st-button-bg);*/
    border: 1px solid var(--st-primary-color);
    outline: none;
}

#st-chat-input::placeholder {
    color: #1F293780;
}

#st-chat-send {
    background: var(--st-button-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
}

#st-chat-send:hover {
    filter: brightness(0.9);
}

/* Animations */
.st-open-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.st-open-pop {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

@keyframes popIn {
    from {
        transform: scale(0.6) translateY(40px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.st-open-slide {
    animation: slideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Icon Animations */
.st-animation-heartbeat .st-icon-wrapper {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.st-animation-tickle .st-icon-wrapper {
    animation: tickle 1.5s infinite;
}

@keyframes tickle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.st-animation-pop .st-icon-wrapper {
    animation: popOnce 1.5s infinite;
}

@keyframes popOnce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Review UI Styles */
#st-review-ui {
    padding: 15px;
    text-align: center;
    /*background: var(--st-chatbot-bg);*/
    background: var(--st-white-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

#st-review-ui h3 {
    margin: 0 0 20px;
    font-size: 1.25em;
    color: #333;
}

.st-stars {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.st-star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.st-star:hover {
    transform: scale(1.1);
}

.st-star.active {
    color: #ffc107;
}

#st-review-comment {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    margin-bottom: 25px;
    box-sizing: border-box;
    font-size: 0.95em;
    font-family: inherit;
}

.st-review-actions {
    display: flex;
    gap: 12px;
}

#st-review-send,
#st-review-skip {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    line-height: 1.25;
    transition: filter 0.2s;
    height: auto;
}

#st-review-send {
    background: var(--st-button-bg);
    /*color: #fff;*/
    color: var(--st-white-color);
}

#st-review-skip {
    background: #f0f0f0;
    color: #666;
}

#st-review-send:hover,
#st-review-skip:hover {
    filter: brightness(0.9);
}

/* Success Message Styles */
#st-review-success {
    padding: 30px;
    text-align: center;
    /*background: var(--st-chatbot-bg);*/
    background: var(--st-white-color);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-success-content p {
    font-size: 1.2em;
    color: #333;
    margin-top: 20px;
    font-weight: bold;
}

.st-success-content svg {
    display: block;
    margin: 0 auto;
}

/* Email Form Styles */
.st-email-form-container {
    margin-bottom: 15px;
    width: 100%;
}

#st-email-form {
    background-color: #F9FAFB;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--st-border-color);
    margin-top: 10px;
}

#st-email-form .st-form-field {
    margin-bottom: 15px;
}

#st-email-form .st-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-text-color);
}

#st-email-form .st-form-field input,
#st-email-form .st-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--st-border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#st-email-form .st-form-field textarea {
    height: 100px;
    resize: none;
}

#st-email-form .st-form-field input:focus,
#st-email-form .st-form-field textarea:focus {
    border-color: var(--st-primary-color);
    outline: none;
}

.st-email-submit {
    width: 100%;
    background-color: var(--st-button-bg);
    color: var(--st-white-color);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.st-email-submit:hover {
    opacity: 0.9;
}

.st-email-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════════════════
   CHATBOT VIEW MODES  (scoped to .st-chatview-* on #st-chatbot-container)
   ═══════════════════════════════════════════════════════════════════ */

/* ── NORMAL VIEW (default — 600 px wide, scrollable body) ───────── */
.st-chatview-normal #st-chatbot-window {
    width: 600px;
    max-width: calc(100% - 40px);
    height: auto;
    bottom: 90px;
    border-radius: 14px;
}

.st-chatview-normal .st-chat-body {
    min-height: 500px;
    max-height: 700px;
    flex: none;
}

/* ── HALF VIEW (50 % of viewport width, 60 % of viewport height) ── */
.st-chatview-half_view #st-chatbot-window {
    width: 50vw;
    max-width: calc(100% - 40px);
    height: 85vh;
    bottom: 90px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

/* Push body to fill available height inside the fixed window */
.st-chatview-half_view #st-chatbot-window .st-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    /* allow flex shrink below intrinsic size */
    max-height: none;
    overflow-y: auto;
}

/* Footer always stays at the bottom */
.st-chatview-half_view #st-chatbot-window .st-chat-footer {
    flex-shrink: 0;
}

/* Responsive — fall back to normal sizing on small screens */
@media (max-width: 768px) {
    .st-chatview-half_view #st-chatbot-window {
        width: calc(100% - 40px);
        height: 88vh;
    }
}

/* ── FULL VIEW (covers entire viewport) ────────────────────────── */
.st-chatview-full_view #st-chatbot-window {
    /* Cover the whole screen */
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    /* Pin to all four edges */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    /* Stack on top of everything */
    z-index: 9999;
}

/* Body fills all remaining height (header + footer are flex-shrink: 0) */
.st-chatview-full_view #st-chatbot-window .st-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

/* Header & footer never shrink in full-view */
.st-chatview-full_view #st-chatbot-window .st-chat-header,
.st-chatview-full_view #st-chatbot-window .st-chat-footer {
    flex-shrink: 0;
}

/* Position overrides — left/right anchors must be reset for full-screen */
.st-chatview-full_view.st-chatbot-left_bottom #st-chatbot-window,
.st-chatview-full_view.st-chatbot-right_bottom #st-chatbot-window,
.st-chatview-full_view.st-chatbot-website_center #st-chatbot-window {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════ */