/**
 * Chatbot Widget Styles
 *
 * Modern chat interface with brand colors
 * - Black background (#000000)
 * - Green accent (#ACD400)
 * - Smooth animations
 * - Mobile responsive
 *
 * @package ABVBTheme
 */

/* ========================================
   CHAT WIDGET CONTAINER
   ======================================== */

.abvb-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0;
    transform: translateY(10px);
}

.abvb-chatbot-widget.abvb-chatbot-widget--intro {
    animation: abvb-chatbot-intro 0.6s ease-out forwards;
}

@keyframes abvb-chatbot-intro {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abvb-chatbot-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ========================================
   CHAT TOGGLE BUTTON
   ======================================== */

.abvb-chatbot-toggle {
    border-radius: 999px;
    background: var(--color-green, #ACD400);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 56px;
    color: #000;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    position: relative;
    animation: abvb-chatbot-float 3s ease-in-out infinite alternate,
        abvb-chatbot-pulse 2.8s ease-in-out infinite;
}

.abvb-chatbot-toggle:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    background: #b9e000;
}

.abvb-chatbot-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.abvb-chatbot-toggle:active {
    transform: translateY(1px) scale(0.98);
}

.abvb-chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: #000;
    transition: transform 0.3s ease;
}

.abvb-chatbot-toggle.active svg {
    transform: rotate(180deg);
}

.abvb-chatbot-toggle.active {
    animation: none;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Notification badge */
.abvb-chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}


/* Chat toggle label */
.abvb-chatbot-toggle-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.abvb-chatbot-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes abvb-chatbot-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 8px 20px rgba(172, 212, 0, 0.5);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ========================================
   CHAT WINDOW
   ======================================== */

.abvb-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.abvb-chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ========================================
   CHAT HEADER
   ======================================== */

.abvb-chatbot-header {
    background: var(--color-black, #000);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abvb-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abvb-chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-green, #ACD400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 18px;
}

.abvb-chatbot-avatar,
.abvb-chatbot-message-avatar {
    overflow: hidden;
}

.abvb-chatbot-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


.abvb-chatbot-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.abvb-chatbot-status {
    font-size: 12px;
    opacity: 0.8;
    margin: 2px 0 0 0;
}

.abvb-chatbot-status.online::before {
    content: "●";
    color: var(--color-green, #ACD400);
    margin-right: 4px;
}

.abvb-chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.abvb-chatbot-close:hover {
    opacity: 1;
}

/* ========================================
   CHAT MESSAGES
   ======================================== */

.abvb-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.abvb-chatbot-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.abvb-chatbot-message.user {
    flex-direction: row-reverse;
}

.abvb-chatbot-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-green, #ACD400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.abvb-chatbot-message.user .abvb-chatbot-message-avatar {
    background: #6c757d;
    color: white;
}

.abvb-chatbot-message-content {
    max-width: 75%;
}

.abvb-chatbot-message-bubble {
    background: white;
    color: #000;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    line-height: 1.5;
}

.abvb-chatbot-message.user .abvb-chatbot-message-bubble {
    background: var(--color-black, #000);
    color: white;
}

.abvb-chatbot-message-time {
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
    margin-top: 4px;
    padding: 0 4px;
}

/* ========================================
   TYPING INDICATOR
   ======================================== */

.abvb-chatbot-typing {
    display: none;
    align-items: center;
    gap: 10px;
}

.abvb-chatbot-typing.active {
    display: flex;
}

.abvb-chatbot-typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.abvb-chatbot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    animation: typingDot 1.4s infinite;
}

.abvb-chatbot-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.abvb-chatbot-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ========================================
   SUGGESTIONS
   ======================================== */

.abvb-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.abvb-chatbot-suggestion {
    background: white;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.abvb-chatbot-suggestion:hover {
    background: var(--color-green, #ACD400);
    border-color: var(--color-green, #ACD400);
    color: #000;
    transform: translateY(-2px);
}

/* ========================================
   CHAT INPUT
   ======================================== */

.abvb-chatbot-input-wrapper {
    padding: 16px;
    background: white;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 16px 16px;
}

.abvb-chatbot-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.abvb-chatbot-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.abvb-chatbot-input:focus {
    outline: none;
    border-color: var(--color-green, #ACD400);
}

.abvb-chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-green, #ACD400);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.abvb-chatbot-send:hover:not(:disabled) {
    transform: scale(1.1);
}

.abvb-chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.abvb-chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

/* ========================================
   HANDOFF BUTTON
   ======================================== */

.abvb-chatbot-handoff {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.abvb-chatbot-handoff:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.abvb-chatbot-handoff svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* ========================================
   OCCASION CARDS
   ======================================== */

.abvb-chatbot-occasions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.abvb-chatbot-occasion-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.abvb-chatbot-occasion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--color-green, #ACD400);
}

.abvb-chatbot-occasion-image {
    width: 100%;
    /* 16:9 aspect ratio using padding-bottom technique */
    padding-bottom: 56.25%;
    /* 9/16 = 0.5625 = 56.25% */
    height: 0;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    position: relative;
}

.abvb-chatbot-occasion-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.abvb-chatbot-occasion-no-image svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    fill: #adb5bd;
}

.abvb-chatbot-occasion-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.abvb-chatbot-occasion-title {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abvb-chatbot-occasion-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
}

.abvb-chatbot-occasion-year,
.abvb-chatbot-occasion-mileage {
    display: flex;
    align-items: center;
}

.abvb-chatbot-occasion-year::before {
    content: '📅';
    margin-right: 4px;
}

.abvb-chatbot-occasion-mileage::before {
    content: '🛣️';
    margin-right: 4px;
}

.abvb-chatbot-occasion-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-green, #ACD400);
    margin-top: auto;
}

/* Single column on very narrow screens */
@media (max-width: 360px) {
    .abvb-chatbot-occasions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .abvb-chatbot-widget {
        bottom: 16px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: flex-end;
        /* iOS safe area support */
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        padding-right: env(safe-area-inset-right, 0px);
    }

    .abvb-chatbot-window {
        position: fixed;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        /* Dynamic viewport height for mobile */
        max-height: none;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        /* iOS safe area support */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        /* Ensure it appears above other content */
        z-index: 999998;
    }

    /* Active state on mobile - must override base hidden state */
    .abvb-chatbot-window.active {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Full-screen mode when chat is open */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 0;
        z-index: 999999;
    }

    /* Ensure active + open state shows the window */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-window.active {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .abvb-chatbot-header {
        position: relative;
        z-index: 10;
        padding: 12px 16px;
        /* Ensure minimum touch target height */
        min-height: 56px;
        /* iOS safe area support for notch - extra padding to avoid browser UI */
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
        /* Ensure header is always visible */
        flex-shrink: 0;
    }

    .abvb-chatbot-close {
        /* Minimum 44x44 touch target for accessibility */
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Ensure close button is always visible and tappable */
        position: relative;
        z-index: 20;
    }

    .abvb-chatbot-toggle {
        width: auto;
        height: auto;
        margin-right: 16px;
        /* Minimum touch target */
        min-height: 56px;
        min-width: 56px;
    }

    .abvb-chatbot-messages {
        padding: 16px;
        /* Smooth scrolling on iOS */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .abvb-chatbot-input-wrapper {
        padding: 12px 16px;
        /* iOS safe area support */
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .abvb-chatbot-input {
        /* Larger touch target on mobile */
        min-height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .abvb-chatbot-send {
        /* Minimum touch target */
        min-width: 44px;
        min-height: 44px;
    }

    .abvb-chatbot-message-content {
        max-width: 85%;
    }

    .abvb-chatbot-suggestion {
        /* Larger touch targets for suggestion buttons */
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Hide toggle button when chat is open */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-toggle {
        display: none;
    }
}

/* Tablet styles */
@media (max-width: 768px) and (min-width: 481px) {
    .abvb-chatbot-window {
        width: 380px;
        max-width: calc(100vw - 40px);
        height: 500px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (max-height: 450px) and (orientation: landscape) {
    .abvb-chatbot-widget {
        bottom: 8px;
        right: 8px;
    }

    .abvb-chatbot-window {
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        width: 50vw;
        max-width: 400px;
        right: 0;
        left: auto;
        border-radius: 12px;
    }

    .abvb-chatbot-header {
        padding: 8px 12px;
        min-height: 48px;
    }

    .abvb-chatbot-messages {
        padding: 12px;
    }

    .abvb-chatbot-input-wrapper {
        padding: 8px 12px;
    }

    .abvb-chatbot-toggle {
        transform: scale(0.9);
    }
}

/* Keyboard open state - body class added via JS */
body.abvb-keyboard-open {
    /* Prevent page scroll when keyboard is open */
    overflow: hidden !important;
    /* Note: position:fixed on body can cause layout issues,
       so we only prevent scroll via overflow */
}

html.abvb-keyboard-open {
    overflow: hidden !important;
}

/* Only apply fixed positioning when both chat is open AND keyboard is open */
body.abvb-keyboard-open.abvb-chatbot-body-locked {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

body.abvb-keyboard-open .abvb-chatbot-window {
    /* Smooth height transition when keyboard opens/closes */
    transition: height 0.15s ease-out, top 0.15s ease-out, max-height 0.15s ease-out;
}

/* Chat window structure when keyboard is open */
body.abvb-keyboard-open .abvb-chatbot-window.active {
    display: flex !important;
    flex-direction: column !important;
}

/* Header stays at top */
body.abvb-keyboard-open .abvb-chatbot-header {
    flex-shrink: 0;
}

/* Messages area should fill remaining space and be scrollable */
body.abvb-keyboard-open .abvb-chatbot-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure input wrapper stays at bottom when keyboard is open */
body.abvb-keyboard-open .abvb-chatbot-input-wrapper {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    /* Remove bottom safe area padding when keyboard is open */
    padding-bottom: 12px !important;
    padding-top: 12px;
    background: white;
    border-top: 1px solid #dee2e6;
}

/* CRITICAL: Ensure messages container allows scrolling without dismissing keyboard */
body.abvb-keyboard-open .abvb-chatbot-messages {
    /* Touch action allows vertical scrolling but prevents other gestures */
    touch-action: pan-y;
    /* Ensure the container is scrollable */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* Prevent any pointer events from bubbling that might close keyboard */
    -webkit-overflow-scrolling: touch;
}

/* Prevent accidental taps on messages area from closing keyboard */
body.abvb-keyboard-open .abvb-chatbot-message {
    /* Ensure messages don't interfere with scrolling */
    pointer-events: auto;
}

/* Input wrapper should always be visible and sticky at bottom */
@media (max-width: 480px) {
    body.abvb-keyboard-open .abvb-chatbot-input-wrapper {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 100 !important;
    }

    /* CRITICAL: Ensure input wrapper stays visible after keyboard closes */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-input-wrapper {
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        background: white !important;
    }

    /* Ensure the chat window uses flexbox properly to keep input at bottom */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-window.active {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Messages container should be scrollable and take remaining space */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Header should not shrink */
    .abvb-chatbot-widget.abvb-chatbot-open .abvb-chatbot-header {
        flex-shrink: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .abvb-chatbot-toggle,
    .abvb-chatbot-message,
    .abvb-chatbot-typing-dot {
        animation: none;
    }

    body.abvb-keyboard-open .abvb-chatbot-window {
        transition: none;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.abvb-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.abvb-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.abvb-chatbot-messages::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.abvb-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* ========================================
   LEAD CAPTURE FORM
   ======================================== */

.abvb-lead-capture {
    padding: 4px 0;
}

.abvb-lead-prompt {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.abvb-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abvb-lead-field {
    width: 100%;
}

.abvb-lead-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.abvb-lead-input:focus {
    outline: none;
    border-color: var(--color-green, #ACD400);
    box-shadow: 0 0 0 3px rgba(172, 212, 0, 0.15);
}

.abvb-lead-input::placeholder {
    color: #999;
}

.abvb-lead-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.abvb-lead-submit,
.abvb-lead-skip {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    min-height: 44px;
    /* Touch target */
}

.abvb-lead-submit {
    background: var(--color-green, #ACD400);
    color: #000;
}

.abvb-lead-submit:hover:not(:disabled) {
    background: #9bc300;
}

.abvb-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.abvb-lead-skip {
    background: #f0f0f0;
    color: #666;
}

.abvb-lead-skip:hover:not(:disabled) {
    background: #e0e0e0;
}

.abvb-lead-skip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.abvb-lead-error {
    margin: 0 0 8px 0;
    padding: 8px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c00;
    font-size: 13px;
}

.abvb-lead-success {
    padding: 12px;
    background: #f0fff0;
    border: 1px solid #afa;
    border-radius: 8px;
    color: #060;
    font-size: 14px;
}

.abvb-lead-success p {
    margin: 0;
}

/* Lead capture message styling */
.abvb-message-lead-capture .abvb-message-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile adjustments for lead form */
@media (max-width: 480px) {
    .abvb-lead-input {
        font-size: 16px;
        /* Prevent iOS zoom */
        padding: 12px 14px;
    }

    .abvb-lead-actions {
        flex-direction: column;
    }

    .abvb-lead-submit,
    .abvb-lead-skip {
        width: 100%;
    }
}