/**
 * Chatbot Widget Styles - Coviewer Layout (Oct8ne style)
 *
 * Layout: Coviewer (izquierda) + Chat (derecha)
 * - Desktop: 350px + 380px = 730px expandible
 * - Mobile: Split 50/50 vertical
 */

/* === VARIABLES (heredar de quintalegre o fallback) === */
#ps-chatbot {
    --cb-brand: var(--brand, #001339);
    --cb-brand-light: var(--brand-light, #8899bb);
    --cb-bg: var(--bg-base, #fff);
    --cb-neutral: var(--neutral-dark, #f9f9f9);
    --cb-neutral-base: var(--neutral-base, #f4f5fa);
    --cb-text: var(--dark, #333);
    --cb-text-light: var(--dark-light, #525356);
    --cb-border: var(--border-color, #DDDDDD);
    --cb-font: var(--font-family-base, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
    --cb-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --cb-radius: 16px;
}

/* === BASE CONTAINER === */
#ps-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    font-family: var(--cb-font);
    font-size: 14px;
    line-height: 1.5;
}

/* === TOGGLE BUTTON (cuando cerrado) === */
#ps-chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cb-brand);
    border: none;
    cursor: pointer;
    box-shadow: var(--cb-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

#ps-chatbot-toggle:hover {
    transform: scale(1.05);
    background: var(--cb-brand-light);
}

#ps-chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: white;
}

#ps-chatbot-toggle.active {
    display: none;
}

/* === UNREAD BADGE === */
.ps-chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
    animation: cb-badge-pulse 0.3s ease-out;
    pointer-events: none;
}

.ps-chatbot-badge.hidden {
    display: none;
}

@keyframes cb-badge-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === MAIN CONTAINER (flex layout) === */
#ps-chatbot-container {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 600px;
    max-height: calc(100vh - 40px);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    overflow: hidden;
    background: var(--cb-bg);
}

#ps-chatbot-container.open {
    display: flex;
    flex-direction: row;
    animation: cb-fade-in 0.3s ease-out;
}

@keyframes cb-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COVIEWER (panel izquierdo - productos)
   ============================================ */
#ps-chatbot-coviewer {
    width: 0;
    min-width: 0;
    background: var(--cb-neutral-base);
    border-right: 1px solid var(--cb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
}

#ps-chatbot-container.coviewer-open #ps-chatbot-coviewer {
    width: 350px;
    min-width: 350px;
}

/* Coviewer Header */
.ps-coviewer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--cb-brand);
    color: white;
    flex-shrink: 0;
}

.ps-coviewer-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.ps-coviewer-toggle-btn:hover {
    background: rgba(255,255,255,0.25);
}

.ps-coviewer-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ps-coviewer-header-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.ps-coviewer-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Coviewer Thumbnails */
.ps-coviewer-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    flex-shrink: 0;
    background: var(--cb-bg);
    border-bottom: 1px solid var(--cb-border);
}

.ps-coviewer-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ps-coviewer-thumbs::-webkit-scrollbar-thumb {
    background: var(--cb-border);
    border-radius: 2px;
}

.ps-coviewer-thumb {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--cb-neutral);
    position: relative;
}

.ps-coviewer-thumb:hover {
    transform: scale(1.05);
}

.ps-coviewer-thumb.active {
    border-color: var(--cb-brand);
}

.ps-coviewer-thumb.currently-viewing {
    outline: 2px solid #4CAF50;
    outline-offset: 1px;
}

.ps-coviewer-thumb.currently-viewing::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    z-index: 1;
}

.ps-coviewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coviewer Viewer (imagen grande) */
.ps-coviewer-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    background: var(--cb-bg);
    min-height: 0;
}

.ps-coviewer-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
}

.ps-coviewer-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--cb-neutral);
}

/* Navigation arrows */
.ps-coviewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cb-bg);
    color: var(--cb-text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
    z-index: 2;
}

.ps-coviewer-nav:hover {
    background: var(--cb-neutral);
}

.ps-coviewer-nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ps-coviewer-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ps-coviewer-prev {
    left: 8px;
}

.ps-coviewer-next {
    right: 8px;
}

/* Coviewer Info */
.ps-coviewer-info {
    padding: 12px 16px;
    background: var(--cb-bg);
    border-top: 1px solid var(--cb-border);
    flex-shrink: 0;
}

.ps-coviewer-viewing-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ps-coviewer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-coviewer-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--cb-brand);
    margin: 0;
}

/* Coviewer Dots */
.ps-coviewer-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--cb-bg);
    flex-shrink: 0;
}

.ps-coviewer-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--cb-border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ps-coviewer-dot:hover {
    transform: scale(1.2);
}

.ps-coviewer-dot.active {
    background: var(--cb-brand);
}

/* Coviewer Actions */
.ps-coviewer-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--cb-neutral-base);
    border-top: 1px solid var(--cb-border);
    flex-shrink: 0;
}

.ps-coviewer-btn-view,
.ps-coviewer-btn-cart {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
}

.ps-coviewer-btn-view {
    background: var(--cb-bg);
    color: var(--cb-text);
    border: 1px solid var(--cb-border);
}

.ps-coviewer-btn-view:hover {
    background: var(--cb-neutral);
}

.ps-coviewer-btn-view.primary {
    background: var(--cb-brand);
    color: white;
    border-color: var(--cb-brand);
    flex: 1 1 100%;
}

.ps-coviewer-btn-view.primary:hover {
    background: var(--cb-brand-light);
}

.ps-coviewer-btn-cart {
    background: var(--cb-brand);
    color: white;
}

.ps-coviewer-btn-cart:hover:not(:disabled) {
    background: var(--cb-brand-light);
}

.ps-coviewer-btn-cart:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ps-coviewer-btn-cart.success {
    background: #4CAF50;
}

.ps-coviewer-btn-cart svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Coviewer Empty State */
.ps-coviewer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: var(--cb-text-light);
}

.ps-coviewer-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--cb-border);
    margin-bottom: 16px;
}

.ps-coviewer-empty p {
    margin: 0;
    font-size: 13px;
}

/* ============================================
   CHAT PANEL (panel derecho)
   ============================================ */
#ps-chatbot-panel {
    width: 380px;
    display: flex;
    flex-direction: column;
    background: var(--cb-bg);
    flex-shrink: 0;
}

/* Chat Header */
#ps-chatbot-header {
    background: var(--cb-brand);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#ps-chatbot-coviewer-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
    position: relative;
}

#ps-chatbot-coviewer-toggle:hover {
    background: rgba(255,255,255,0.25);
}

#ps-chatbot-coviewer-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Badge para indicar productos disponibles */
#ps-chatbot-coviewer-toggle .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

#ps-chatbot-header-info {
    flex: 1;
}

#ps-chatbot-header-title {
    font-weight: 600;
    font-size: 15px;
}

#ps-chatbot-header-status {
    font-size: 12px;
    opacity: 0.85;
}

#ps-chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ps-chatbot-close:hover {
    opacity: 1;
}

#ps-chatbot-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Help Button (Tour) */
#ps-chatbot-help {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 4px;
}

#ps-chatbot-help:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

#ps-chatbot-help svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Chat Messages */
#ps-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ps-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#ps-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#ps-chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--cb-border);
    border-radius: 3px;
}

#ps-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--cb-text-light);
}

/* Message Bubbles */
.ps-chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
}

.ps-chatbot-message.user {
    align-self: flex-end;
    background: var(--cb-brand);
    color: white;
    border-bottom-right-radius: 4px;
}

.ps-chatbot-message.assistant {
    align-self: flex-start;
    background: var(--cb-neutral);
    color: var(--cb-text);
    border-bottom-left-radius: 4px;
}

.ps-chatbot-message a {
    color: var(--cb-brand-light);
    text-decoration: none;
}

.ps-chatbot-message.user a {
    color: white;
    text-decoration: underline;
}

.ps-chatbot-message a:hover {
    text-decoration: underline;
}

/* Typing Indicator */
.ps-chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 16px;
    align-self: flex-start;
}

.ps-chatbot-typing span {
    width: 8px;
    height: 8px;
    background: var(--cb-text-light);
    border-radius: 50%;
    animation: cb-typing 1.4s infinite ease-in-out both;
}

.ps-chatbot-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.ps-chatbot-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes cb-typing {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Welcome Message */
.ps-chatbot-welcome {
    text-align: center;
    padding: 24px 20px;
    color: var(--cb-text-light);
}

.ps-chatbot-welcome h4 {
    margin: 0 0 8px 0;
    color: var(--cb-text);
    font-weight: 600;
    font-size: 16px;
}

.ps-chatbot-welcome p {
    margin: 0;
    font-size: 13px;
}

/* Quick Action Chips */
#ps-chatbot-quick-actions {
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cb-border) transparent;
}

#ps-chatbot-quick-actions::-webkit-scrollbar {
    height: 4px;
}

#ps-chatbot-quick-actions::-webkit-scrollbar-track {
    background: transparent;
}

#ps-chatbot-quick-actions::-webkit-scrollbar-thumb {
    background: var(--cb-border);
    border-radius: 2px;
}

#ps-chatbot-quick-actions::-webkit-scrollbar-thumb:hover {
    background: var(--cb-brand);
}

.ps-chatbot-chip {
    padding: 6px 12px;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    background: var(--cb-bg);
    color: var(--cb-text);
    font-size: 12px;
    font-family: var(--cb-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ps-chatbot-chip:hover {
    border-color: var(--cb-brand);
    color: var(--cb-brand);
}

.ps-chatbot-chip:active {
    background: var(--cb-brand);
    color: white;
    border-color: var(--cb-brand);
}

/* Chat Input */
#ps-chatbot-input-container {
    padding: 12px 16px;
    border-top: 1px solid var(--cb-border);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: var(--cb-bg);
}

#ps-chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--cb-border);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    font-family: var(--cb-font);
    transition: border-color 0.2s;
    background: var(--cb-bg);
    color: var(--cb-text);
}

#ps-chatbot-input:focus {
    border-color: var(--cb-brand);
}

#ps-chatbot-input::placeholder {
    color: var(--cb-text-light);
}

#ps-chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cb-brand);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#ps-chatbot-send:hover:not(:disabled) {
    background: var(--cb-brand-light);
}

#ps-chatbot-send:disabled {
    background: var(--cb-border);
    cursor: not-allowed;
}

#ps-chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Voice button */
#ps-chatbot-voice {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-text-light);
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

#ps-chatbot-voice:hover {
    color: var(--cb-brand);
    background: var(--cb-neutral);
}

#ps-chatbot-voice svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#ps-chatbot-voice.recording {
    color: #e53935;
    animation: cb-pulse 1s infinite;
}

@keyframes cb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Spinner */
.ps-chatbot-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cb-spin 0.8s linear infinite;
}

@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE - Mobile (Split 50/50)
   ============================================ */
@media (max-width: 768px) {
    #ps-chatbot {
        bottom: 0;
        right: 0;
        left: 0;
    }

    #ps-chatbot-toggle {
        position: fixed;
        bottom: 126px;
        right: 10px;
    }

    #ps-chatbot-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    #ps-chatbot-container.open {
        flex-direction: column;
    }

    /* Coviewer arriba */
    #ps-chatbot-coviewer {
        width: 100% !important;
        min-width: 100% !important;
        height: 0;
        border-right: none;
        border-bottom: 1px solid var(--cb-border);
        transition: height 0.3s ease;
    }

    #ps-chatbot-container.coviewer-open #ps-chatbot-coviewer {
        height: 50%;
    }

    /* Chat abajo */
    #ps-chatbot-panel {
        width: 100%;
        height: 100%;
        flex: 1;
    }

    #ps-chatbot-container.coviewer-open #ps-chatbot-panel {
        height: 50%;
    }

    /* Ajustes coviewer en mobile */
    .ps-coviewer-image {
        max-height: 150px;
    }

    .ps-coviewer-viewer {
        padding: 8px;
    }

    .ps-coviewer-info {
        padding: 8px 12px;
    }

    .ps-coviewer-actions {
        padding: 8px 12px;
    }

    .ps-coviewer-btn-view,
    .ps-coviewer-btn-cart {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* ============================================
   MAP MODE (coviewer showing store location)
   ============================================ */
.ps-coviewer-map-mode {
    height: 200px !important;
    flex: none !important;
    padding: 0 !important;
}

#ps-coviewer-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 1;
}

.ps-coviewer-address {
    color: var(--cb-text-light);
    font-size: 13px;
    margin: 4px 0;
}

.ps-coviewer-phone {
    color: var(--cb-brand);
    font-size: 13px;
    margin: 4px 0;
}

.ps-coviewer-phone a {
    color: var(--cb-brand);
    text-decoration: none;
}

.ps-coviewer-phone a:hover {
    text-decoration: underline;
}

.ps-coviewer-hours {
    font-size: 12px;
    color: var(--cb-text-light);
    line-height: 1.6;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--cb-border);
}

/* Fix para Leaflet en el coviewer */
#ps-coviewer-map .leaflet-control-attribution {
    font-size: 9px;
}

#ps-coviewer-map .leaflet-popup-content {
    font-size: 12px;
    margin: 8px 12px;
}

#ps-coviewer-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* Botones de mapa */
.ps-coviewer-btn-primary {
    background: var(--cb-brand) !important;
    color: white !important;
    border-color: var(--cb-brand) !important;
}

.ps-coviewer-btn-primary:hover {
    background: var(--cb-brand-light) !important;
}

.ps-coviewer-btn-secondary {
    background: var(--cb-bg) !important;
    color: var(--cb-text) !important;
    border: 1px solid var(--cb-border) !important;
}

.ps-coviewer-btn-secondary:hover {
    background: var(--cb-neutral) !important;
}

/* Mobile adjustments for map */
@media (max-width: 768px) {
    .ps-coviewer-map-mode {
        height: 150px !important;
    }

    .ps-coviewer-hours {
        font-size: 11px;
    }
}

/* ============================================
   TABLET adjustments
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    #ps-chatbot-container.coviewer-open #ps-chatbot-coviewer {
        width: 300px;
        min-width: 300px;
    }

    #ps-chatbot-panel {
        width: 350px;
    }
}

/* ============================================
   DRIVER.JS TOUR OVERRIDES
   ============================================ */
.driver-popover.ps-chatbot-tour {
    font-family: var(--cb-font, system-ui, -apple-system, sans-serif);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.driver-popover.ps-chatbot-tour .driver-popover-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--cb-brand, #001339);
}

.driver-popover.ps-chatbot-tour .driver-popover-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.driver-popover.ps-chatbot-tour .driver-popover-progress-text {
    font-size: 11px;
    color: #888;
}

.driver-popover.ps-chatbot-tour .driver-popover-next-btn,
.driver-popover.ps-chatbot-tour .driver-popover-prev-btn {
    background: var(--cb-brand, #001339);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    transition: background-color 0.2s;
}

.driver-popover.ps-chatbot-tour .driver-popover-next-btn:hover,
.driver-popover.ps-chatbot-tour .driver-popover-prev-btn:hover {
    background: var(--cb-brand-light, #1a2d5a);
}

.driver-popover.ps-chatbot-tour .driver-popover-prev-btn {
    background: transparent;
    color: var(--cb-brand, #001339);
    border: 1px solid var(--cb-border, #ddd);
}

.driver-popover.ps-chatbot-tour .driver-popover-prev-btn:hover {
    background: #f5f5f5;
}
#ps-chatbot.addzindex {
    z-index: 99999;
}