/* ALGO Digital - Consultor de Pré-Vendas Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Ubuntu:wght@400;500;700&display=swap');

:root {
    /* ALGO Digital Color Palette */
    --al-primary: #011E34;
    /* Dark Blue - Primary */
    --al-primary-hover: #273042;
    /* Dark Blue-Gray - Hover */
    --al-secondary: #97BFDD;
    /* Light Blue - Secondary */
    --al-accent: #FEE5C9;
    /* Cream - Accent */
    --al-gray: #566165;
    /* Gray - Text */
    --al-secondary-bg: #f0f5fa;
    /* Light Blue Background */
    --al-text-dark: #1f1f1f;
    --al-text-grey: #566165;
    --al-white: #ffffff;
    --al-border-light: #eaeaea;
    --al-radius-card: 24px;
    --al-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --al-font-header: 'Outfit', sans-serif;
}

#al-chat-container * {
    box-sizing: border-box;
}

/* --- Floating Button --- */
#al-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background-color: var(--al-primary);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(1, 30, 52, 0.4);
    cursor: pointer;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Initial hidden state for choreographed entrance */
    opacity: 0;
    transform: scale(0);
}

/* State: Button visible with pop animation */
#al-floating-btn.al-btn-visible {
    animation: alButtonPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* After animation completes - ensure stable state */
#al-floating-btn.al-btn-ready {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Pop-in elastic animation - spring effect */
@keyframes alButtonPopIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        /* Overshoot */
    }

    70% {
        transform: scale(0.95);
        /* Bounce back */
    }

    85% {
        transform: scale(1.05);
        /* Small bounce */
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* No hover effects */
#al-floating-btn:hover {
    /* No animation or scale on hover */
}

#al-floating-btn svg {
    color: white;
    width: 32px;
    height: 32px;
}

/* ALGO Bot SVG Icon specific styling */
#al-floating-btn .al-algobot-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

/* When using ALGO Bot icon, remove button background (icon has own bg) */
#al-floating-btn:has(.al-algobot-icon) {
    background-color: transparent;
    box-shadow: 0 4px 20px rgba(1, 30, 52, 0.5);
}

.al-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    z-index: 10;
}

/* Show badge when active */
.al-badge.al-badge-active {
    display: block;
}

/* Subtle slow pulse animation - intensity increases/decreases slowly */
.al-badge-pulse {
    animation: alBadgeGlow 2.5s ease-in-out infinite;
}

@keyframes alBadgeGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 4px rgba(255, 71, 87, 0.4);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
    }
}

/* --- Greeting Popup --- */
.al-greeting-popup {
    position: fixed;
    bottom: 100px;
    z-index: 999998;
    pointer-events: auto;
}

.al-greeting-popup.al-greeting-left {
    left: 24px;
}

.al-greeting-popup.al-greeting-right {
    right: 24px;
}

.al-greeting-bubble {
    position: relative;
    background: var(--al-white);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(89, 66, 157, 0.25);
    max-width: 240px;
    cursor: pointer;
    border: 2px solid var(--al-primary);
}

.al-greeting-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--al-primary);
}

.al-greeting-left .al-greeting-bubble::after {
    left: 24px;
}

.al-greeting-right .al-greeting-bubble::after {
    right: 24px;
}

.al-greeting-bubble p {
    margin: 0;
    font-family: var(--al-font);
    font-size: 15px;
    color: var(--al-text-dark);
    line-height: 1.4;
}

.al-greeting-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    color: var(--al-text-grey);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.al-greeting-close:hover {
    opacity: 1;
}

/* Greeting Animation - Grows from button (right to left) */
.al-greeting-animate {
    animation: alGreetingGrowIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom right;
}

.al-greeting-hide {
    animation: alGreetingFadeOut 0.4s ease-out forwards;
    transform-origin: bottom right;
}

/* Greeting grows from the button (right to left) */
@keyframes alGreetingGrowIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateX(20px);
    }

    70% {
        opacity: 1;
        transform: scale(1.05) translateX(-3px);
    }

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

@keyframes cvGreetingFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
}

/* --- Chat Container --- */
#al-chat-container {
    font-family: var(--al-font);
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    height: 700px;
    max-height: calc(100vh - 120px);
    background: #FAFAFA;
    border-radius: var(--al-radius-card);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: none;
    display: flex;
    flex-direction: column;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

#al-chat-container.al-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- Header --- */
#al-chat-header {
    background: var(--al-primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(89, 66, 157, 0.2);
    height: auto;
    min-height: 60px;
}

.al-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.al-header-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.al-header-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Avatar container in header */
.al-avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.al-avatar-container .al-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.al-avatar-default {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.al-avatar-default svg {
    width: 20px;
    height: 20px;
    color: white;
}

.al-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--al-primary);
}

/* Header Info (Title & Subtitle) */
.al-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.al-header-info .al-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    font-family: var(--al-font-header);
    line-height: 1.2;
}

.al-header-info .al-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--al-font-header);
    line-height: 1.2;
}

#al-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    font-family: var(--al-font-header);
    letter-spacing: -0.3px;
}

#al-close-chat {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 6px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

#al-close-chat:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

#al-close-chat svg {
    width: 18px;
    height: 18px;
}

/* --- Messages Area --- */
#al-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #FAFAFA;
}

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

#al-messages::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

/* --- Chat Bubbles --- */
.al-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: al-fade-in 0.4s ease-out;
    width: 100%;
}

.al-msg-row .al-avatar {
    width: 32px;
    height: 32px;
    background: var(--al-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    margin-top: 4px;
}

.al-msg {
    max-width: 80%;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    box-shadow: none;
    border: 1px solid transparent;
}

.al-msg.bot {
    background: var(--al-white);
    color: var(--al-text-dark);
    border-radius: 4px 20px 20px 20px;
    border: 1px solid var(--al-border-light);
}

.al-msg-row.user {
    justify-content: flex-end;
}

.al-msg.user {
    background: var(--al-primary);
    color: var(--al-white);
    border-radius: 20px 20px 4px 20px;
    box-shadow: none;
}

/* --- Options Buttons --- */
#al-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-right: 20px;
}

.al-btn-opt {
    background: var(--al-white);
    color: var(--al-primary);
    border: 1px solid var(--al-primary);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.al-btn-opt:hover {
    background: var(--al-primary);
    color: white;
    transform: translateY(-2px);
}

button.al-btn-geo {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* --- Product Cards --- */
.al-product-card {
    background: var(--al-white);
    border-radius: var(--al-radius-card);
    padding: 24px;
    box-shadow: none;
    margin-bottom: 24px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--al-border-light);
    transition: transform 0.3s ease;
    animation: al-fade-in 0.5s ease-out;
}

.al-product-card:hover {
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.al-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.al-tag-brand {
    background: var(--al-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.al-tag-comfort {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--al-text-dark);
    font-weight: 600;
    font-size: 14px;
}

.al-tag-comfort svg {
    color: var(--al-primary);
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.al-product-card .al-btn-view,
.al-msg.bot a.al-btn-view,
.al-btn-view,
.al-btn-view:visited,
.al-btn-view:hover,
.al-btn-view:active {
    background: var(--al-primary);
    color: #ffffff !important;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    border-bottom: none !important;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.al-prod-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
    font-family: inherit;
}

.al-prod-desc {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
    line-height: 1.5;
    font-family: inherit;
}

.al-prod-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 16px;
    mix-blend-mode: multiply;
    background-color: transparent;
    padding: 5px;
}

.al-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.al-meta svg {
    color: var(--al-primary);
    width: 18px;
    height: 18px;
}

.al-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.al-feat-pill {
    background: var(--al-secondary-bg);
    color: var(--al-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
}

.al-btn-view:hover {
    background: var(--al-primary-hover);
}

/* --- Final CTA Block --- */
.al-final-cta {
    background: var(--al-primary);
    color: white;
    padding: 24px;
    border-radius: var(--al-radius-card);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 24px;
    animation: al-fade-in 0.6s ease-out;
}

.al-cta-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.al-cta-text {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.al-btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-bottom: 12px;
    border: none;
}

.al-btn-whatsapp:hover {
    background: #128C7E;
}

/* --- WhatsApp CTA Button (Large and Prominent) --- */
.al-btn-whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.al-btn-whatsapp-cta:hover {
    background: linear-gradient(135deg, #1fa855 0%, #0f7a60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.al-btn-whatsapp-cta svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.al-btn-whatsapp-cta span {
    color: #ffffff !important;
}

/* --- Instagram CTA Button (Purple/Pink Gradient) --- */
.al-btn-instagram-cta {
    background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.al-btn-instagram-cta:hover {
    background: linear-gradient(135deg, #6a2f95 0%, #c9295e 50%, #da6a30 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.5);
    color: #ffffff !important;
}

.al-btn-instagram-cta svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.al-btn-instagram-cta span {
    color: #ffffff !important;
}

/* --- Generic CTA Button (Blue Gradient) --- */
.al-btn-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.al-btn-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: #ffffff !important;
}

.al-btn-cta svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.al-btn-cta span {
    color: #ffffff !important;
}

/* --- Schedule/Calendar CTA Button (Teal Gradient) --- */
.al-btn-schedule-cta {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.al-btn-schedule-cta:hover {
    background: linear-gradient(135deg, #0f9d8e 0%, #0a7d72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    color: #ffffff !important;
}

.al-btn-schedule-cta svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.al-btn-schedule-cta span {
    color: #ffffff !important;
}

.al-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}

.al-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Action Buttons (WhatsApp/SAC in messages) --- */
.al-action-message {
    padding: 4px 0;
}

.al-action-message p {
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.5;
}

.al-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.al-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.al-action-btn svg {
    flex-shrink: 0;
}

.al-action-btn-whatsapp,
.al-action-btn-whatsapp:visited,
.al-action-btn-whatsapp:active,
.al-action-btn-whatsapp:link,
a.al-action-btn-whatsapp,
a.al-action-btn-whatsapp:visited,
a.al-action-btn-whatsapp:active,
a.al-action-btn-whatsapp:link,
.al-action-message .al-action-btn-whatsapp,
.al-action-message a.al-action-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
}

.al-action-btn-whatsapp span,
.al-action-btn-whatsapp svg,
a.al-action-btn-whatsapp span,
a.al-action-btn-whatsapp svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.al-action-btn-whatsapp:hover,
a.al-action-btn-whatsapp:hover,
.al-action-message .al-action-btn-whatsapp:hover {
    background: linear-gradient(135deg, #1fa855 0%, #0f7a60 100%) !important;
    color: #ffffff !important;
}

.al-action-btn-sac {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
}

/* Ensure SAC button text is always white */
.al-action-btn-sac,
.al-action-btn-sac:link,
.al-action-btn-sac:visited,
.al-action-btn-sac:active,
a.al-action-btn-sac,
.al-action-message .al-action-btn-sac,
.al-action-message a.al-action-btn-sac {
    color: #ffffff !important;
}

.al-action-btn-sac span,
.al-action-btn-sac svg,
a.al-action-btn-sac span,
a.al-action-btn-sac svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.al-action-btn-sac:hover {
    background: linear-gradient(135deg, #7c7ff5 0%, #6366f1 100%);
    color: #ffffff !important;
}

/* --- Input Area --- */
#al-input-area {
    padding: 5px 0px;
    background: var(--al-white);
    border-top: 1px solid var(--al-border-light);
    box-shadow: none;
}

.al-input-group {
    display: flex;
    gap: 10px;
    padding: 5px 10px;
}

#al-text-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    outline: none;
    font-size: 15px;
    background: #f8f9fa;
}

#al-text-input:focus {
    border-color: var(--al-primary);
    background: white;
}

#al-send-btn {
    background: var(--al-primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#al-send-btn svg {
    display: block;
}

#al-send-btn:hover {
    background: var(--al-primary-hover);
    transform: scale(1.05);
}

#al-send-btn:disabled {
    background: #e0e0e0;
    cursor: default;
    transform: none;
}

/* --- Animations --- */
.al-typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
    background: white;
    width: fit-content;
    border-radius: 4px 20px 20px 20px;
    border: 1px solid var(--al-border-light);
    box-shadow: none;
}

.al-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: al-bounce 1.4s infinite ease-in-out both;
}

.al-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.al-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes al-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes al-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* --- Form --- */
.al-form-container {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: none;
    border: 1px solid var(--al-border-light);
}

.al-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    background: #fafafa;
}

.al-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    margin-top: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.al-btn-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Form Field Wrappers */
.al-form-field {
    position: relative;
    margin-bottom: 12px;
}

.al-form-field .al-form-input {
    margin-bottom: 0;
}

/* Field Error States */
.al-field-error {
    display: none;
    color: #dc2626;
    font-size: 11px;
    margin-top: 4px;
    padding-left: 4px;
}

.al-input-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Modern Toggle Switch */
.al-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.al-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.al-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc2626;
    transition: .3s;
    border-radius: 26px;
}

.al-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.al-toggle-switch input:checked+.al-toggle-slider {
    background-color: #22c55e;
}

.al-toggle-switch input:checked+.al-toggle-slider:before {
    transform: translateX(24px);
}

/* Toggle with SIM on left - inverted colors when unchecked */
.al-toggle-yes-left .al-toggle-slider {
    background-color: #22c55e;
}

.al-toggle-yes-left input:not(:checked)+.al-toggle-slider {
    background-color: #dc2626;
}

.al-toggle-yes-left input:not(:checked)+.al-toggle-slider:before {
    transform: translateX(24px);
}

.al-toggle-yes-left input:checked+.al-toggle-slider:before {
    transform: translateX(0);
}

/* Transition Message */
.al-transition-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    animation: al-fade-in 0.5s ease-out;
}

.al-transition-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Fade-in Animation */
.al-fade-in {
    animation: al-fade-in 0.5s ease-out;
}

/* --- AI Chat Section --- */
.al-ai-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: var(--al-radius-card);
    margin-top: 16px;
    animation: al-fade-in 0.6s ease-out;
}

.al-ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.al-ai-header svg {
    flex-shrink: 0;
}

.al-ai-hint {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* --- Inline WhatsApp Button (for AI fallback) --- */
.al-wa-inline-container {
    padding: 8px 0;
    animation: al-fade-in 0.4s ease-out;
}

.al-btn-whatsapp-inline {
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.al-btn-whatsapp-inline:hover {
    background: #128C7E;
    color: white;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    #al-floating-btn {
        bottom: 16px;
        left: 16px;
        width: 56px;
        height: 56px;
    }

    #al-chat-container {
        bottom: 84px;
        left: 8px;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 100px);
        border-radius: 20px;
    }

    #al-messages {
        padding: 16px;
    }

    .al-product-card {
        padding: 16px;
    }

    .al-prod-img {
        height: 140px;
    }

    .al-final-cta,
    .al-ai-section {
        padding: 16px;
    }
}

/* -------------------------------------------------------------------------
   AI Product Card
   ------------------------------------------------------------------------- */
.al-msg.bot.al-card-container {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 5px;
}

.al-ai-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    overflow: hidden;
    max-width: 280px;
    font-family: inherit;
    animation: cvFadeIn 0.3s ease-out;
}

.al-ai-product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.al-ai-card-content {
    padding: 12px;
    text-align: center;
}

.al-ai-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
}

.al-ai-card-content .al-btn-action {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    background: var(--al-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
    box-sizing: border-box;
}

.al-ai-card-content .al-btn-action:hover {
    background: var(--al-primary-hover);
}

/* -------------------------------------------------------------------------
   AI Link Styling
   ------------------------------------------------------------------------- */
.al-msg.bot a {
    font-weight: 700;
    color: #442E89 !important;
    text-decoration: none;
    border-bottom: 1px dotted #442E89;
}

.al-msg.bot a:hover {
    text-decoration: none;
    border-bottom: 2px solid #442E89;
}

/* -------------------------------------------------------------------------
   Store Card Styling
   ------------------------------------------------------------------------- */
.al-store-card {
    background: linear-gradient(135deg, #59429d 0%, #7c5dc7 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(89, 66, 157, 0.3);
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
}

.al-store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.al-store-header svg {
    color: #fff;
}

.al-store-name {
    font-family: var(--al-font-header);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.al-store-info {
    padding: 16px;
    background: #fff;
}

.al-store-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.al-store-row:last-child {
    margin-bottom: 0;
}

.al-store-row svg {
    flex-shrink: 0;
    color: var(--al-primary);
    margin-top: 2px;
}

.al-store-row span {
    flex: 1;
}

.al-store-link {
    color: var(--al-primary) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none !important;
}

.al-store-link:hover {
    text-decoration: underline !important;
}

.al-input-group {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid var(--al-border-light);
    border-radius: 0 0 24px 24px;
    align-items: center;
}

.al-branding {
    text-align: center;
    margin-top: 2px;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #9aa0a6;
}

.al-brand-text {
    font-weight: 400;
}

.al-brand-name {
    font-weight: 700;
}

.al-branding a {
    color: #9aa0a6 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.al-branding a:hover {
    color: #5f6368 !important;
}

#al-text-input {
    margin-top: 0;
}

.al-store-parking {
    background: #f3f0ff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #59429d;
    margin-top: 8px;
}

.al-store-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    background: #fff;
}

/* Forçando especificidade máxima ABSOLUTA para o botão do Google Maps */
body #al-chat-container .al-store-actions .al-btn-maps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: var(--al-primary) !important;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body #al-chat-container .al-store-actions .al-btn-maps:visited,
body #al-chat-container .al-store-actions .al-btn-maps:active,
body #al-chat-container .al-store-actions .al-btn-maps:focus,
body #al-chat-container .al-store-actions .al-btn-maps:hover {
    color: #ffffff !important;
    background: var(--al-primary-hover) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.al-btn-maps svg {
    color: #fff;
}

.al-btn-stores {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f3f0ff;
    color: var(--al-primary) !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border-bottom: none !important;
}

.al-btn-stores:hover {
    background: #e8e2ff;
    transform: translateY(-1px);
    border-bottom: none !important;
}