.chatbot-widget,
.chatbot-widget *,
.chatbot-widget *::before,
.chatbot-widget *::after {
    box-sizing: border-box;
    /* margin: 0; */
    /* padding: 0; */
    /* border: 0; */
    /* font: inherit; */
    vertical-align: baseline;
    /* background: transparent; */
    color: inherit;
    text-decoration: none;
    list-style: none;
    outline: none;
}
/* Chatbot widget container - completely isolated */
.chatbot-widget {
    --chatbot-scale: 1;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    font-size: 14px;
    /* line-height: 1.5; */
    color: #333;
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2147483647;
}
 
/* A CSS pixel is physically smaller on a dense display, so a panel measured in fixed
   pixels shrinks as density rises -- which is why high-resolution screens needed browser
   zoom to read comfortably. Scaling the whole panel holds its apparent size steady, and
   scaling rather than restyling keeps every proportion inside it identical.
   Desktop only: below 769px the panel is already sized to the viewport. */
@media (min-width: 769px) and (min-resolution: 1.5dppx) {
  .chatbot-widget { --chatbot-scale: 1.15; }
}
@media (min-width: 769px) and (min-resolution: 2dppx) {
  .chatbot-widget { --chatbot-scale: 1.3; }
}
/* New Chat Button */
.chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgb(0,65,122);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2147483647;
    transition: all 0.3s ease;
    animation: chatbot-pulse 2s infinite;
    pointer-events: auto;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    min-width: 120px;
}
.chat-btn:hover,
.chat-btn:active {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.15);
    border-color: #ffffff;
}
.chat-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}
.chat-btn--hidden {
    display: none !important;
}
@keyframes chatbot-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* Chat Container */
.chatbot-widget__container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 650px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2147483647;
    transition: all 0.3s ease;
    pointer-events: auto;
    transform: scale(var(--chatbot-scale));
    transform-origin: bottom right;
    /* The guard applies to the unscaled box, so divide by the scale to keep the panel
       as rendered inside the viewport. */
    max-height: calc((100vh - 40px) / var(--chatbot-scale));
    max-height: calc((100dvh - 40px) / var(--chatbot-scale));
}
.chatbot-widget__container--show {
    display: flex;
    animation: chatbot-slideUp 0.3s ease;
}
@keyframes chatbot-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(var(--chatbot-scale));
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(var(--chatbot-scale));
    }
}
/* Chat Header */
.chatbot-widget__header {
    background: rgb(0,65,122);
    color: white;
    padding: 7px 16px 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.chatbot-widget__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
}
.chatbot-widget__header-icon-img {
    width: 35px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 0 5px 0;
    display: block;
}
.chatbot-widget__header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1px;
}
/* The markup gives this image no class, so it rendered at its natural 40px and set the
   height of the whole banner. */
.chatbot-widget__header-info img {
    height: 26px;
    width: auto;
    display: block;
}
.chatbot-widget__header-text {
    text-align: left;
    width: 100%;
}
.chatbot-widget__header-text h3 {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    min-width: 0;
    flex: 1;
}
.chatbot-widget__header-text p {
    font-size: 11px;
    display: flex;
    align-items: center;
    color: rgba(255, 235, 59, 0.9);
    font-style: normal;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.chatbot-widget__brand-logo {
    width: 13px;
    height: 13px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
    filter: brightness(1.2);
}
.chatbot-widget__controls {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 10px;
    right: 10px;
}
.chatbot-widget__control-btn {
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    background: rgba(255, 235, 59, 0.1);
}
.chatbot-widget__control-btn:hover,
.chatbot-widget__control-btn:active {
    background: rgba(255, 255, 255, 0.7);
    color: #0d0d0e;
    transform: scale(1.1);
}
.chatbot-widget__control-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
/* Chat Messages */
.chatbot-widget__messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffff;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0; /* Allow flex shrinking */
    gap: 12px; /* Add consistent gap between messages */
}
.chatbot-widget__messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-widget__messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 3px;
}
.chatbot-widget__messages::-webkit-scrollbar-thumb {
    background: rgba(0,65,122,0.2);
    border-radius: 3px;
}
.chatbot-widget__messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0,65,122,0.4);
}
.chatbot-widget__message {
    margin-bottom: 8px;
    display: flex;
    animation: chatbot-fadeIn 0.3s ease;
    align-items: flex-start;
}
.chatbot-widget__message--user {
    justify-content: flex-end;
}
.chatbot-widget__message--bot {
    justify-content: flex-start;
}
@keyframes chatbot-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-widget__message-content {
    max-width: 90%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    font-weight: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
 
.chatbot-widget__message-content p {
    margin: 0.5em 0;
    line-height: 1.5;
}
 
/* The panel is scaled up on dense displays, which multiplies the apparent text size with
   it. Trimming the CSS size by the same factor keeps the text reading at roughly 13px
   everywhere -- and because the trim is in CSS pixels, those screens also fit noticeably
   more of an answer. The 12px base is untouched, so low-resolution screens (which get no
   scaling) cannot end up with smaller text than they have today. */
@media (min-width: 769px) and (min-resolution: 1.5dppx) {
    .chatbot-widget__message-content { font-size: 11px; }
}
@media (min-width: 769px) and (min-resolution: 2dppx) {
    .chatbot-widget__message-content { font-size: 10px; }
}
 
.chatbot-widget__message-content p:first-child {
    margin-top: 0;
}
 
.chatbot-widget__message-content p:last-child {
    margin-bottom: 0;
}
 
.chatbot-widget__message-content ul,
.chatbot-widget__message-content ol {
    margin: 0.5em 0;
    padding-left: 20px;
    list-style-position: outside;
}
.chatbot-widget__message-content ul {
    list-style-type: disc;
}
/* Answers sometimes come back numbered rather than bulleted. */
.chatbot-widget__message-content ol {
    list-style-type: decimal;
}
 
.chatbot-widget__message-content li {
    margin-bottom: 0.3em;
    line-height: 1.45;
    /* The widget reset sets list-style:none on every descendant, which lands directly on
       the li and so beats the marker inherited from its parent list -- the reason bullets
       were missing. Inheriting here picks up disc or decimal from whichever list it is in. */
    list-style: inherit;
}
 
.chatbot-widget__message-content strong {
    font-weight: 600;
    color: inherit;
}
.chatbot-widget__motor-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.chatbot-widget__motor-form-header {
    font-size: 14px;
    font-weight: 700;
    color: rgb(0,65,122);
    line-height: 1.4;
}
.chatbot-widget__motor-form-subtext {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(13, 13, 14, 0.8);
}
.chatbot-widget__motor-form-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chatbot-widget__motor-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.chatbot-widget__motor-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chatbot-widget__motor-form-field--full {
    grid-column: 1 / -1;
}
.chatbot-widget__motor-form-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,65,122,0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.chatbot-widget__motor-form-control {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(0,65,122,0.2);
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a1b;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.chatbot-widget__motor-form-control:focus {
    border-color: rgb(0,65,122);
    box-shadow: 0 0 0 3px rgba(0,65,122,0.12);
}
.chatbot-widget__motor-form-control:disabled {
    background: rgba(0,65,122,0.06);
    color: rgba(0,0,0,0.45);
    cursor: not-allowed;
}
.chatbot-widget__motor-form-control--invalid {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.08);
}
.chatbot-widget__motor-form-status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.5;
}
.chatbot-widget__motor-form-status--info {
    color: rgba(0,65,122,0.85);
}
.chatbot-widget__motor-form-status--success {
    color: #1f7a1f;
}
.chatbot-widget__motor-form-status--error {
    color: #b3261e;
}
.chatbot-widget__motor-form-actions {
    display: flex;
}
.chatbot-widget__motor-form-submit {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFEB3B 0%, #fff951 100%);
    color: #0d0d0e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.chatbot-widget__motor-form-submit:hover:not(:disabled),
.chatbot-widget__motor-form-submit:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 235, 59, 0.3);
}
.chatbot-widget__motor-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.chatbot-widget__motor-model-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.chatbot-widget__motor-model-picker-header {
    font-size: 14px;
    font-weight: 700;
    color: rgb(0,65,122);
    line-height: 1.4;
}
.chatbot-widget__motor-model-picker-subtext {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(13, 13, 14, 0.8);
}
.chatbot-widget__motor-model-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chatbot-widget__motor-model-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(0,65,122,0.2);
    border-radius: 12px;
}
.chatbot-widget__motor-model-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1b;
    line-height: 1.4;
}
.chatbot-widget__motor-model-card-action {
    flex-shrink: 0;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFEB3B 0%, #fff951 100%);
    color: #0d0d0e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.chatbot-widget__motor-model-card-action:hover:not(:disabled),
.chatbot-widget__motor-model-card-action:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 235, 59, 0.3);
}
.chatbot-widget__motor-model-card-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.chatbot-widget__motor-model-picker-status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.5;
}
.chatbot-widget__motor-model-picker-status--info {
    color: rgba(0,65,122,0.85);
}
.chatbot-widget__motor-model-picker-status--success {
    color: #1f7a1f;
}
.chatbot-widget__motor-model-picker-status--error {
    color: #b3261e;
}
.chatbot-widget__motor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}
.chatbot-widget__motor-options-header {
    font-size: 14px;
    font-weight: 700;
    color: rgb(0,65,122);
    line-height: 1.4;
}
.chatbot-widget__motor-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chatbot-widget__motor-option-group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(0,65,122,0.85);
    border-bottom: 2px solid #FFEB3B;
    padding-bottom: 4px;
}
.chatbot-widget__motor-option-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(0,65,122,0.2);
    border-radius: 12px;
}
.chatbot-widget__motor-option-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1b;
    line-height: 1.4;
}
.chatbot-widget__motor-option-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.5;
}
.chatbot-widget__motor-option-spec-label {
    flex-shrink: 0;
    color: rgba(13, 13, 14, 0.65);
}
.chatbot-widget__motor-option-spec-value {
    font-weight: 600;
    color: #1a1a1b;
    text-align: right;
}
.chatbot-widget__timestamp {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.7;
    letter-spacing: 0.3px;
}
.chatbot-widget__message--user .chatbot-widget__message-content {
    background: rgb(0,65,122);
    color: #ffffff;
    border-bottom-right-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-left: auto;
    margin-right: 0;
    /* User text is escaped plain text, so their own line breaks must survive. */
    white-space: pre-wrap;
}
.chatbot-widget__message--user .chatbot-widget__timestamp {
    color: #ffffff;
    text-align: right;
}
.chatbot-widget__message--bot .chatbot-widget__message-content {
    background: rgba(0,65,122,0.2);;
    color: #1a1a1b;
    border: 1px solid rgba(0,0,0,0.15);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Bot answers are HTML. Preserving the whitespace between tags renders every
       newline and indent from the backend as a blank line. */
    white-space: normal;
    margin-left: 0;
    margin-right: auto;
}
.chatbot-widget__message--bot .chatbot-widget__timestamp {
    color: #0d0d0e;
    text-align: left;
}
/* Chatbot links */
.chatbot-widget__message-content a {
    color:rgb(0,65,122);
    text-decoration: underline;
}
.chatbot-widget__message-content a:hover,
.chatbot-widget__message-content a:focus {
    color: rgb(0,65,122);
    text-decoration: underline;
}
.chatbot-widget__message-content a:visited {
    color: rgb(0,65,122);
}
/* Typing Indicator */
.chatbot-widget__typing {
    display: none;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 20px;
}
.chatbot-widget__typing--show {
    display: flex;
    animation: chatbot-fadeIn 0.3s ease;
}
.chatbot-widget__typing-content {
    background: #ffff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chatbot-widget__typing-dots {
    display: flex;
    gap: 4px;
}
.chatbot-widget__typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(0,65,122);
    animation: chatbot-typing 1.4s infinite ease-in-out;
}
.chatbot-widget__typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.chatbot-widget__typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes chatbot-typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Chat Input */
.chatbot-widget__input-area {
    /* Trimmed from 20px: this band is fixed height, so every pixel saved here goes
       straight to the message area above it. */
    padding: 9px 14px;
    background: rgb(0,65,122);
    border-top: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    position: relative;
}
.chatbot-widget__input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
}
 
/* --- UPDATED INPUT & SCROLLBAR STYLES --- */
.chatbot-widget__input-group {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0,0,0,0.15);
    background: #ffff;
}
.chatbot-widget__input {
    flex: 1 1 0;
    min-width: 0;
    resize: none;
    /* Switched to auto by autoGrow only once the cap is actually reached. */
    overflow-y: hidden;
    min-height: calc(1.45em + 28px);
    max-height: calc(1.45em * 4 + 28px);
    line-height: 1.45;
    font-family: inherit;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: #0d0d0e;
    font-size: 13px;
    font-weight: 400;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}
 
/* Same reasoning as the message text: the panel is scaled up on dense displays, so the
   CSS size is trimmed by the same factor to keep what you type reading the same physical
   size everywhere. Desktop only -- the mobile rule below stays at 16px, which is what
   stops iOS Safari zooming the page when the field takes focus. */
@media (min-width: 769px) and (min-resolution: 1.5dppx) {
    .chatbot-widget__input { font-size: 12px; }
}
@media (min-width: 769px) and (min-resolution: 2dppx) {
    .chatbot-widget__input { font-size: 11px; }
}
 
/* Custom dark minimal scrollbar for input/textarea */
.chatbot-widget__input::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}
.chatbot-widget__input::-webkit-scrollbar-thumb {
    background: rgba(0, 65, 122, 0.3);
    border-radius: 6px;
}
.chatbot-widget__input::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 65, 122, 0.5);
}
.chatbot-widget__input::-webkit-scrollbar-track {
    background: transparent;
}
/* For Firefox */
.chatbot-widget__input {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 65, 122, 0.3) transparent;
}
 
.chatbot-widget__input-group--disabled {
    background: #f1f2f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.chatbot-widget__input:disabled {
    cursor: not-allowed;
    /* The placeholder acts as a status line here, so keep it on one line and clip it
       instead of letting it wrap out of the fixed-height row. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chatbot-widget__input-group--disabled .chatbot-widget__input::placeholder {
    color: rgba(0, 0, 0, 0.55);
}
.chatbot-widget__input:focus {
    outline: none;
}
.chatbot-widget__input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}
.chatbot-widget__send-btn {
    background: linear-gradient(135deg, #FFEB3B 0%, #fff951 100%);
    border: none;
    color: #0d0d0e;
    width: 44px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    font-weight: 600;
    margin-right: 4px;
    border-radius: 25px;
    height: 40px;
}
.chatbot-widget__send-btn.circular {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-widget__send-btn:hover:not(:disabled),
.chatbot-widget__send-btn:active:not(:disabled) {
    background: linear-gradient(135deg, #fff951 0%, #ffff70 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.4);
}
.chatbot-widget__send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chatbot-widget__send-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* Welcome Header */
.chatbot-widget__welcome {
    background: rgb(0,65,122);
    padding: 5px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
}
.chatbot-widget__welcome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 235, 59, 0.3) 50%, transparent 100%);
}
.chatbot-widget__welcome-header {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
    line-height: 1.25;
    letter-spacing: 0.2px;
}
.chatbot-widget__welcome-subtext {
    font-size: 9px;
    line-height: 1.3;
    color: rgba(255, 235, 59, 0.8);
    font-weight: 500;
}
/* Location Selector */
.chatbot-widget__location-selector {
    background: #ffff;
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}
.chatbot-widget__location-selector--hidden {
    display: none !important;
}
.chatbot-widget__location-title {
    font-size: 13px;
    font-weight: 600;
    color: #0d0d0e;
    margin-bottom: 25px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}
.chatbot-widget__location-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.chatbot-widget__location-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    background: rgb(0,65,122);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 75px;
    flex: 1;
    max-width: 95px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}
.chatbot-widget__location-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,65,122,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.chatbot-widget__location-btn:hover,
.chatbot-widget__location-btn:active {
    border-color: #0d0d0e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 65, 122, 0.2);
    color: #ffffff;
}
.chatbot-widget__location-btn:hover::before,
.chatbot-widget__location-btn:active::before {
    opacity: 1;
}
.chatbot-widget__flag {
    width: 26px;
    height: 20px;
    border-radius: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 235, 59, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* USA Flag Colors */
.chatbot-widget__flag--usa {
    background: linear-gradient(to bottom,
        #B22234 0%, #B22234 7.7%,
        #FFFFFF 7.7%, #FFFFFF 15.4%,
        #B22234 15.4%, #B22234 23.1%,
        #FFFFFF 23.1%, #FFFFFF 30.8%,
        #B22234 30.8%, #B22234 38.5%,
        #FFFFFF 38.5%, #FFFFFF 46.2%,
        #B22234 46.2%, #B22234 53.9%,
        #FFFFFF 53.9%, #FFFFFF 61.6%,
        #B22234 61.6%, #B22234 69.3%,
        #FFFFFF 69.3%, #FFFFFF 77%,
        #B22234 77%, #B22234 84.7%,
        #FFFFFF 84.7%, #FFFFFF 92.4%,
        #B22234 92.4%, #B22234 100%);
    position: relative;
}
.chatbot-widget__flag--usa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: #3C3B6E;
}
/* Canada Flag Colors */
.chatbot-widget__flag--canada {
    background: linear-gradient(to right,
        #FF0000 0%, #FF0000 25%,
        #FFFFFF 25%, #FFFFFF 75%,
        #FF0000 75%, #FF0000 100%);
    position: relative;
}
.chatbot-widget__flag--canada::before {
    content: '🍁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #FF0000;
}
/* Overseas (neutral) */
.chatbot-widget__flag--overseas {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
    background-color: #e9ecef;
    position: relative;
}
.chatbot-widget__flag--overseas::before {
    content: '🌍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}
@keyframes chatbot-flash {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: #fff3cd; }
}
/* Nothing in this file may style html or body. The widget is embedded into pages it
   does not own (baumalight.com/product/...), where a rule like `html, body { height:100% }`
   collapses the host page's layout. The demo page sets its own background in index.html. */
 
/* Confirmation Modal */
.chatbot-widget__modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,65,122,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px;
    backdrop-filter: blur(2px);
}
.chatbot-widget__modal-overlay--show {
    display: flex;
    animation: chatbot-modalFadeIn 0.2s ease;
}
.chatbot-widget__modal {
    background: #ffffff;
    border: 2px solid rgba(0,65,122,0.3);
    border-radius: 15px;
    padding: 25px;
    max-width: 280px;
    width: calc(100% - 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 235, 59, 0.1);
    position: relative;
}
.chatbot-widget__modal-icon {
    text-align: center;
    margin-bottom: 15px;
}
.chatbot-widget__modal-icon span {
    font-size: 32px;
    color: #FFEB3B;
    display: inline-block;
    animation: chatbot-modalPulse 1s ease-in-out infinite;
}
.chatbot-widget__modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d0d0e;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}
.chatbot-widget__modal-message {
    font-size: 13px;
    color: rgba(0,65,122,0.9);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}
.chatbot-widget__modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.chatbot-widget__modal-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.chatbot-widget__modal-btn--confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 1px solid #dc3545;
}
.chatbot-widget__modal-btn--confirm:hover,
.chatbot-widget__modal-btn--confirm:active {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
.chatbot-widget__modal-btn--cancel {
    background: transparent;
    color: #0d0d0e;
    border: 1px solid rgba(0,65,122,0.3);
}
.chatbot-widget__modal-btn--cancel:hover,
.chatbot-widget__modal-btn--cancel:active {
    background: rgba(0,65,122,0.1);
    border-color: #0d0d0e;
    color: #0d0d0e;
    transform: translateY(-1px);
}
@keyframes chatbot-modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes chatbot-modalPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    .chatbot-widget__container {
        width: calc(100vw - 30px);
        right: 15px;
        max-width: 400px;
    }
    .chat-btn {
        right: 20px;
        bottom: 20px;
        padding: 12px 18px;
        font-size: 13px;
    }
}
/* Mobile Styles (576px and below) */
@media (max-width: 576px) {
    .chatbot-widget__container {
        width: calc(100vw - 20px);
        height: calc(100vh - 40px);
        height: calc(100dvh - 40px);
        right: 10px;
        bottom: 10px;
        border-radius: 15px;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
    max-height: calc(100dvh - 40px);
    }
    .chat-btn {
        right: 15px;
        bottom: 15px;
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
        border-radius: 20px;
    }
    .chat-icon {
        width: 18px;
        height: 18px;
    }
    .chatbot-widget__header {
        padding: 12px 15px;
        min-height: 55px;
    }
    .chatbot-widget__header-icon-img {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    .chatbot-widget__header-text h3 {
        font-size: 14px;
    }
    .chatbot-widget__header-text p {
        font-size: 11px;
    }
    .chatbot-widget__brand-logo {
        width: 12px;
        height: 12px;
    }
    .chatbot-widget__controls {
        gap: 6px;
    }
    .chatbot-widget__control-btn {
        width: 28px;
        height: 28px;
    }
    .chatbot-widget__control-icon {
        width: 12px;
        height: 12px;
    }
    .chatbot-widget__welcome {
        padding: 10px 12px;
    }
    .chatbot-widget__welcome-header {
        font-size: 13px;
    }
    .chatbot-widget__welcome-subtext {
        font-size: 10px;
    }
    .chatbot-widget__location-selector {
        padding: 15px 12px;
    }
    .chatbot-widget__location-title {
        font-size: 13px;
        margin-bottom: 15px;
    }
    .chatbot-widget__location-buttons {
        gap: 8px;
    }
    .chatbot-widget__location-btn {
        font-size: 11px;
        padding: 10px 6px;
        min-width: 60px;
        max-width: 75px;
    }
    .chatbot-widget__flag {
        width: 20px;
        height: 15px;
        margin-bottom: 5px;
    }
    .chatbot-widget__messages {
        padding: 15px;
    }
    .chatbot-widget__message-content {
        max-width: 85%;
        font-size: 12px;
        padding: 10px 13px;
    }
    .chatbot-widget__motor-form-header {
        font-size: 13px;
    }
    .chatbot-widget__motor-form-subtext,
    .chatbot-widget__motor-form-status {
        font-size: 11px;
    }
    .chatbot-widget__motor-form-control,
    .chatbot-widget__motor-form-submit {
        min-height: 40px;
        font-size: 12px;
    }
    .chatbot-widget__motor-model-picker-header {
        font-size: 13px;
    }
    .chatbot-widget__motor-model-picker-subtext,
    .chatbot-widget__motor-model-picker-status {
        font-size: 11px;
    }
    .chatbot-widget__motor-model-card {
        padding: 10px 12px;
    }
    .chatbot-widget__motor-options-header {
        font-size: 13px;
    }
    .chatbot-widget__motor-option-group-label,
    .chatbot-widget__motor-option-spec {
        font-size: 11px;
    }
    .chatbot-widget__motor-option-card {
        padding: 10px 12px;
    }
    .chatbot-widget__motor-model-card-action {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 11px;
    }
    .chatbot-widget__input-area {
        padding: 12px 15px;
    }
    .chatbot-widget__input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 14px;
        min-height: calc(1.45em + 20px);
        max-height: calc(1.45em * 4 + 20px);
    }
    .chatbot-widget__send-btn {
        width: 40px;
        padding: 0;
        height: 36px;
    }
    .chatbot-widget__send-icon {
        width: 16px;
        height: 16px;
    }
    .chatbot-widget__typing {
        padding: 0 15px;
    }
}
/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
    .chatbot-widget__container {
        width: calc(100vw - 10px);
        right: 5px;
        bottom: 5px;
        height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
    }
    .chat-btn {
        right: 10px;
        bottom: 10px;
        padding: 8px 12px;
        font-size: 11px;
        min-width: 90px;
        border-radius: 18px;
    }
    .chat-icon {
        width: 16px;
        height: 16px;
    }
    .chatbot-widget__header {
        padding: 10px 12px;
    }
    .chatbot-widget__header-icon-img {
        width: 26px;
        height: 26px;
        margin-right: 8px;
    }
    .chatbot-widget__header-text h3 {
        font-size: 13px;
    }
    .chatbot-widget__header-text p {
        font-size: 10px;
    }
    .chatbot-widget__location-buttons {
        gap: 6px;
    }
    .chatbot-widget__location-btn {
        min-width: 55px;
        max-width: 65px;
        padding: 8px 4px;
    }
    .chatbot-widget__flag {
        width: 18px;
        height: 14px;
    }
    .chatbot-widget__messages {
        padding: 12px;
    }
    .chatbot-widget__input-area {
        padding: 10px 12px;
    }
    .chatbot-widget__send-btn {
        width: 38px;
        padding: 0;
        height: 34px;
    }
}
/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-widget__container {
        height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
        bottom: 10px;
    }
    .chatbot-widget__header {
        padding: 8px 15px;
        min-height: 50px;
    }
    .chatbot-widget__welcome {
        padding: 8px 12px;
    }
    .chatbot-widget__location-selector {
        padding: 12px;
    }
    .chatbot-widget__messages {
        padding: 12px;
    }
    .chatbot-widget__input-area {
        padding: 8px 15px;
    }
    .chat-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}
/* Very short landscape screens */
@media (max-height: 400px) and (orientation: landscape) {
    .chatbot-widget__header {
        padding: 6px 12px;
        min-height: 45px;
    }
    .chatbot-widget__header-text h3 {
        font-size: 13px;
    }
    .chatbot-widget__header-text p {
        font-size: 10px;
    }
    .chatbot-widget__welcome {
        padding: 6px 10px;
    }
    .chatbot-widget__location-selector {
        padding: 10px;
    }
    .chatbot-widget__location-title {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .chatbot-widget__messages {
        padding: 10px;
    }
    .chatbot-widget__message-content {
        font-size: 12px;
        padding: 8px 12px;
    }
    .chatbot-widget__input-area {
        padding: 6px 12px;
    }
    .chat-btn {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 80px;
    }
}
 
/* The intro overlay these styled was removed from the markup, and the pulseBox and
   bounceArrow keyframes went with it. Keyframe names are global to the page, so leaving
   unprefixed ones here risked overriding an animation of the same name on the host. */
 
/* Dealer Card Styles. Dealer answers arrive as HTML from the backend and render inside a
   message bubble, so every selector here is anchored to the widget -- `.value`, `.label`
   and `.detail-row` are names a host page could easily be using for its own content. */
.chatbot-widget .dealer-card {
    background: rgba(0,65,122,0.05);
    border: 1px solid rgba(0,65,122,0.15);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
}
 
.chatbot-widget .dealer-card.initial-prompt {
    background: transparent;
    border: none;
    padding: 0 0 2px 0;
    margin-bottom: 4px;
}
 
.chatbot-widget .dealer-card.initial-prompt .value {
    font-size: 14px;
    font-weight: 600;
    color: rgb(0,65,122);
    display: block;
}
 
.chatbot-widget .dealer-card h6 {
    font-size: 14px;
    font-weight: 700;
    color: rgb(0,65,122);
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,65,122,0.2);
}
 
.chatbot-widget .dealer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
.chatbot-widget .detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
 
.chatbot-widget .detail-row .label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(0,65,122,0.7);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.1;
}
 
.chatbot-widget .detail-row .value {
    font-size: 13px;
    color: #1a1a1b;
    line-height: 1.4;
    word-break: break-word;
}
 
.chatbot-widget .detail-row .value:empty::after {
    content: 'N/A';
    color: rgba(0,0,0,0.3);
    font-style: italic;
}
 
/* Compact dealer cards inside message bubbles */
.chatbot-widget__message-content .dealer-card:first-child { margin-top: 0; }
.chatbot-widget__message-content .dealer-card:last-child { margin-bottom: 0; }
/* When a message contains dealer cards, reduce bubble padding and collapse extra newlines */
.chatbot-widget__message-content:has(.dealer-card) {
    padding: 10px 12px;
    white-space: normal; /* collapse backend \n\n and indentation */
}