.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 {
    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;
}
/* 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: min(30%, 500px); /* 30% of screen but never more than 500px */
    height: calc(100vh - 40px);
    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;
    max-height: calc(100vh - 40px);
}
.chatbot-widget__container--show {
    display: flex;
    animation: chatbot-slideUp 0.3s ease;
}
@keyframes chatbot-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Chat Header */
.chatbot-widget__header {
    background: rgb(0,65,122);
    color: white;
    padding: 10px 20px 8px;
    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;
    z-index: 10;
}
.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: 3px;
}
.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: 12px;
    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__header-text a:hover{

    color: rgba(255, 235, 59, 0.9);
}

.chatbot-widget__brand-logo {
    width: 16px;
    height: 16px;
    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: 32px;
    height: 32px;
    border-radius: 8px;
    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: 14px 18px;
    border-radius: 18px;
    font-size: 13px;
    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;
    white-space: pre-line;
    line-height: 1.5;
    text-align: justify;
}

.chatbot-widget__message-content p {
    margin: 0;
    line-height: 1.5;
}

.chatbot-widget__message-content p:first-child {
    margin-top: 0;
}

.chatbot-widget__message-content p:last-child {
    margin-bottom: 0;
}

.chatbot-widget__message-content p:not(:last-child) {
    margin-bottom: 0;
}

.chatbot-widget__message-content ul {
    margin: 0.3em 0;
    padding-left: 24px;
    list-style-type: disc;
}

.chatbot-widget__message-content li {
    margin-bottom: 0.2em;
    line-height: 1.4;
}

.chatbot-widget__message-content strong {
    font-weight: 600;
    color: inherit;
}
.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;
}
.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);
    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 {
    padding: 20px;
    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;
    overflow-y: auto;
    min-height: 48px;
    max-height: 112px;
    line-height: 1.45;
    font-family: inherit;
    padding: 14px 18px;
    padding-right: 48px;
    border: none;
    background: transparent;
    color: #0d0d0e;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

/* Custom dark minimal scrollbar for input/textarea */
.chatbot-widget__input::-webkit-scrollbar {
    width: 6px;
    background: #18181b;
}
.chatbot-widget__input::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
}
.chatbot-widget__input::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 6px;
}
/* For Firefox */
.chatbot-widget__input {
    scrollbar-width: thin;
    scrollbar-color: #333 #18181b;
}

.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;
    padding: 14px 20px;
    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;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 25px;
    height: 40px;
    z-index: 2;
}
.chatbot-widget__send-btn.circular {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    right: 4px;
    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: translateY(-50%) 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;
    transform: translateY(-50%);
}
.chatbot-widget__send-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* Welcome Header */
.chatbot-widget__welcome {
    background: rgb(0,65,122);
    padding: 8px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}
.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: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: 0.2px;
}
.chatbot-widget__welcome-subtext {
    font-size: 10px;
    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; }
}
/* Confirmation Modal */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: url('image.png') no-repeat center center fixed; 
    background-size: cover;
    background-color: #f5f5f5;
}
.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);
        right: 10px;
        bottom: 10px;
        border-radius: 15px;
        max-height: calc(100vh - 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: 13px;
        padding: 10px 14px;
    }
    .chatbot-widget__input-area {
        padding: 12px 15px;
    }
    .chatbot-widget__input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 14px;
        padding-right: 48px; /* Maintain change for button overlap */
    }
    .chatbot-widget__send-btn {
        padding: 10px 16px;
        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);
    }
    .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 {
        padding: 8px 14px;
        height: 34px;
    }
}
/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-widget__container {
        height: calc(100vh - 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;
    }
}

/* Full-screen overlay */

/* Show state */
.chat-intro-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Message box */
.chat-intro-content {
    background: #1a1a1b;
    color: #FFEB3B;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,235,59,0.4);
    animation: pulseBox 1.2s ease-in-out infinite alternate;
}

@keyframes pulseBox {
    from { box-shadow: 0 0 20px rgba(255,235,59,0.4); }
    to   { box-shadow: 0 0 40px rgba(255,235,59,0.7); }
}
@keyframes bounceArrow {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

@keyframes pulseBox {
    from { box-shadow: 0 0 20px rgba(255,235,59,0.4); }
    to   { box-shadow: 0 0 40px rgba(255,235,59,0.7); }
}
@keyframes bounceArrow {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

/* Dealer Card Styles */
.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;
}

.dealer-card.initial-prompt {
    background: transparent;
    border: none;
    padding: 0 0 2px 0;
    margin-bottom: 4px;
}

.dealer-card.initial-prompt .value {
    font-size: 14px;
    font-weight: 600;
    color: rgb(0,65,122);
    display: block;
}

.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);
}

.dealer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.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;
    text-align: left;
}

.detail-row .value {
    font-size: 13px;
    color: #1a1a1b;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
}

.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 */
}