/* ==========================================================================
   Felito · Asistente Virtual - Oftalmoláser S.A.
   Estilos encapsulados bajo #oftalmo-chatbot-root para cero colisión con Bootstrap
   ========================================================================== */

#oftalmo-chatbot-root {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    z-index: 200000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Botón Flotante Animado (Adaptación exacta del componente React StyledWrapper)
   Con movimiento sutil de flotación, halo de pulso y auto-saludo
   -------------------------------------------------------------------------- */
#oftalmo-chatbot-root .Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(0, 127, 120, 0.28);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 127, 120, 0.28);
    background-color: #ffffff;
    padding: 0;
    outline: none;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .Btn {
        transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-radius 0.35s ease, border-color 0.25s ease, box-shadow 0.3s ease;
        animation: oftalmoFloatAndPulse 3.2s ease-in-out infinite;
    }
}

@keyframes oftalmoFloatAndPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 14px rgba(0, 127, 120, 0.28), 0 0 0 0 rgba(0, 127, 120, 0.4);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 127, 120, 0.36), 0 0 0 10px rgba(0, 127, 120, 0);
    }
}

#oftalmo-chatbot-root .Btn .sign {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .Btn .sign {
        transition: width 0.35s ease, padding-left 0.35s ease;
    }
}

#oftalmo-chatbot-root .Btn .sign svg {
    width: 32px;
    height: 40px;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .Btn .text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: #007F78;
    font-size: 1.05em;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .Btn .text {
        transition: opacity 0.3s ease, width 0.35s ease, padding-right 0.35s ease;
    }
}

/* Expansión tanto al pasar el cursor (:hover) como en el saludo automático (.oftalmo-cb-peek) */
#oftalmo-chatbot-root .Btn:hover,
#oftalmo-chatbot-root .Btn.oftalmo-cb-peek {
    width: 168px;
    border-radius: 40px;
    border-color: #007F78;
}

#oftalmo-chatbot-root .Btn:hover .sign,
#oftalmo-chatbot-root .Btn.oftalmo-cb-peek .sign {
    width: 30%;
    padding-left: 10px;
}

#oftalmo-chatbot-root .Btn:hover .text,
#oftalmo-chatbot-root .Btn.oftalmo-cb-peek .text {
    opacity: 1;
    width: 70%;
    padding-right: 10px;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .Btn:active {
        transform: translate(2px, 2px);
    }
}

/* Aviso flotante sobre la burbuja ("¿Tiene dudas? Escríbame aquí.") */
#oftalmo-chatbot-root .oftalmo-cb-callout {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 9px 12px 9px 16px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(0, 127, 120, 0.14);
    white-space: nowrap;
    z-index: 200001;
}

#oftalmo-chatbot-root .oftalmo-cb-callout::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 22px;
    width: 11px;
    height: 11px;
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 127, 120, 0.14);
    border-bottom: 1px solid rgba(0, 127, 120, 0.14);
    transform: rotate(45deg);
}

#oftalmo-chatbot-root .oftalmo-cb-callout.oftalmo-cb-callout-hidden {
    display: none !important;
}

#oftalmo-chatbot-root .oftalmo-cb-callout-text {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-callout-text:hover {
    color: #007F78;
}

#oftalmo-chatbot-root .oftalmo-cb-callout-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 17px;
    line-height: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-callout-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Ventana de Chat (Esquina inferior izquierda con altura amplia)
   -------------------------------------------------------------------------- */
#oftalmo-chatbot-root .oftalmo-cb-window {
    position: fixed !important;
    bottom: 92px !important;
    left: 24px !important;
    right: auto !important;
    width: 375px;
    max-width: calc(100vw - 32px);
    height: 535px;
    max-height: calc(100vh - 112px);
    background-color: #F4F6F9;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 127, 120, 0.25);
    z-index: 200005 !important;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .oftalmo-cb-window {
        animation: oftalmoCbFadeIn 0.22s ease-out;
    }
}

#oftalmo-chatbot-root .oftalmo-cb-window.oftalmo-cb-open {
    display: flex;
}

@keyframes oftalmoCbFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cabecera con diseño corporativo de iris y anillos láser */
#oftalmo-chatbot-root .oftalmo-cb-header {
    background-color: #043B4A;
    background-image:
        linear-gradient(90deg, rgba(4, 59, 74, 0.28) 0%, rgba(4, 59, 74, 0.08) 55%, rgba(4, 59, 74, 0) 100%),
        url('../img/chatbot-header-bg.jpg'),
        linear-gradient(125deg, #043B4A 0%, #007F78 58%, #F47732 92%, #FFDD26 100%);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#oftalmo-chatbot-root .oftalmo-cb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-avatar svg {
    width: 26px;
    height: 33px;
}

#oftalmo-chatbot-root .oftalmo-cb-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

#oftalmo-chatbot-root .oftalmo-cb-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 3px rgba(4, 38, 48, 0.55);
}

#oftalmo-chatbot-root .oftalmo-cb-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(4, 38, 48, 0.5);
}

#oftalmo-chatbot-root .oftalmo-cb-close {
    background: rgba(4, 38, 48, 0.22);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(4, 38, 48, 0.55);
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-close:hover {
    opacity: 1;
    background: rgba(4, 38, 48, 0.4);
    transform: scale(1.08);
}

/* Área de mensajes */
#oftalmo-chatbot-root .oftalmo-cb-messages {
    flex: 1;
    padding: 16px 14px 10px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #F4F6F9;
}

#oftalmo-chatbot-root .oftalmo-cb-row {
    display: flex;
    width: 100%;
}

#oftalmo-chatbot-root .oftalmo-cb-row-assistant {
    justify-content: flex-start;
}

#oftalmo-chatbot-root .oftalmo-cb-row-user {
    justify-content: flex-end;
}

#oftalmo-chatbot-root .oftalmo-cb-bubble {
    max-width: 83%;
    padding: 12px 15px;
    font-size: 14.5px;
    line-height: 1.45;
    word-wrap: break-word;
}

/* Burbuja de Felito (Blanca a la izquierda, como en la captura) */
#oftalmo-chatbot-root .oftalmo-cb-row-assistant .oftalmo-cb-bubble {
    background-color: #ffffff;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Burbuja de Preguntas del Usuario (Verde corporativo #007F78 a la derecha) */
#oftalmo-chatbot-root .oftalmo-cb-row-user .oftalmo-cb-bubble {
    background-color: #007F78;
    color: #ffffff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 5px rgba(0, 127, 120, 0.22);
}

/* Pills clicables integrados en medio de la respuesta (evitan huecos en blanco) */
#oftalmo-chatbot-root .oftalmo-cb-bubble-text em {
    font-style: italic;
    color: #475569;
}

#oftalmo-chatbot-root .oftalmo-cb-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 2px;
    padding: 2px 10px;
    background-color: #E6F4F2;
    color: #005C56 !important;
    border: 1px solid #007F78;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: baseline;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

#oftalmo-chatbot-root .oftalmo-cb-inline-link:hover,
#oftalmo-chatbot-root .oftalmo-cb-inline-link:focus-visible {
    background-color: #007F78;
    color: #ffffff !important;
    outline: 2px solid #043B4A;
    outline-offset: 1px;
}

#oftalmo-chatbot-root .oftalmo-cb-inline-link-typing {
    opacity: 0.9;
}

/* Botones de enlaces a formularios dentro de las respuestas de Felito */
#oftalmo-chatbot-root .oftalmo-cb-link-btn {
    display: inline-block;
    margin-top: 2px;
    margin-right: 4px;
    padding: 7px 13px;
    background-color: #007F78;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 127, 120, 0.2);
}

#oftalmo-chatbot-root .oftalmo-cb-link-btn:hover,
#oftalmo-chatbot-root .oftalmo-cb-link-btn:focus-visible {
    background-color: #00635d;
    color: #ffffff !important;
    outline: 2px solid #043B4A;
    outline-offset: 1px;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .oftalmo-cb-link-btn {
        transition: background-color 0.2s, color 0.2s, transform 0.15s;
    }
    #oftalmo-chatbot-root .oftalmo-cb-link-btn:hover {
        transform: translateY(-1px);
    }
}

/* Opciones / Sub-botones asociados a la respuesta (siempre visibles por defecto si reduce-motion está activo) */
#oftalmo-chatbot-root .oftalmo-cb-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    opacity: 1;
}

#oftalmo-chatbot-root .oftalmo-cb-options-container:empty,
#oftalmo-chatbot-root .oftalmo-cb-bubble.oftalmo-cb-writing .oftalmo-cb-options-container:not(.oftalmo-cb-visible) {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .oftalmo-cb-options-container {
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    #oftalmo-chatbot-root .oftalmo-cb-options-container.oftalmo-cb-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

#oftalmo-chatbot-root .oftalmo-cb-option-btn {
    background-color: #ffffff;
    color: #007F78;
    border: 1.5px solid #007F78;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 127, 120, 0.15);
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-option-btn:hover,
#oftalmo-chatbot-root .oftalmo-cb-option-btn:focus-visible {
    background-color: #007F78;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 127, 120, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .oftalmo-cb-option-btn {
        transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    #oftalmo-chatbot-root .oftalmo-cb-option-btn:hover {
        transform: translateY(-1px);
    }
}

#oftalmo-chatbot-root .oftalmo-cb-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botón sutil de saltar animación typewriter */
#oftalmo-chatbot-root .oftalmo-cb-skip-btn {
    display: inline-block;
    margin-top: 6px;
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0.75;
    transition: opacity 0.2s, color 0.2s;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-skip-btn:hover {
    opacity: 1;
    color: #007F78;
}

#oftalmo-chatbot-root .oftalmo-cb-bubble.oftalmo-cb-writing {
    cursor: pointer;
}

/* Indicador de escritura */
#oftalmo-chatbot-root .oftalmo-cb-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
}

#oftalmo-chatbot-root .oftalmo-cb-dot {
    width: 7px;
    height: 7px;
    background-color: #007F78;
    border-radius: 50%;
    opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
    #oftalmo-chatbot-root .oftalmo-cb-dot {
        animation: oftalmoCbBounce 1.3s infinite ease-in-out both;
    }
    #oftalmo-chatbot-root .oftalmo-cb-dot:nth-child(1) { animation-delay: -0.32s; }
    #oftalmo-chatbot-root .oftalmo-cb-dot:nth-child(2) { animation-delay: -0.16s; }
}

@keyframes oftalmoCbBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Botones de acción rápida */
#oftalmo-chatbot-root .oftalmo-cb-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 12px 8px 12px;
    overflow-x: auto;
    background-color: #F4F6F9;
    scrollbar-width: thin;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-quick-actions:empty {
    display: none;
}

#oftalmo-chatbot-root .oftalmo-cb-chip {
    background-color: #ffffff;
    color: #007F78;
    border: 1px solid #007F78;
    border-radius: 16px;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-chip:hover {
    background-color: #007F78;
    color: #ffffff;
}

/* Barra inferior de entrada (idéntica a la captura con botón #007F78) */
#oftalmo-chatbot-root .oftalmo-cb-footer {
    background-color: #ffffff;
    padding: 10px 12px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-input {
    flex: 1;
    height: 42px;
    border: 1px solid #CBD5E1;
    border-radius: 24px;
    padding: 0 16px;
    font-size: 14px;
    color: #1E293B;
    background-color: #F8FAFC;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

#oftalmo-chatbot-root .oftalmo-cb-input:focus {
    border-color: #007F78;
    background-color: #ffffff;
}

#oftalmo-chatbot-root .oftalmo-cb-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background-color: #007F78;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-send:hover {
    background-color: #00635d;
}

#oftalmo-chatbot-root .oftalmo-cb-send:active {
    transform: scale(0.95);
}

#oftalmo-chatbot-root .oftalmo-cb-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#oftalmo-chatbot-root [hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Pantalla previa "Antes de empezar" (Aviso de IA y Ley 1581 de 2012)
   -------------------------------------------------------------------------- */
#oftalmo-chatbot-root .oftalmo-cb-consent-gate {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #1E293B;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    outline: none;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
    position: relative;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-input {
    accent-color: #007F78;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-input:focus-visible {
    outline: 2px solid #043B4A;
    outline-offset: 2px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-label {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #1E293B;
    cursor: pointer;
    font-weight: 400;
    display: inline-block;
    padding: 2px 0;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-link {
    color: #006660 !important;
    text-decoration: underline !important;
    font-weight: 600;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-link:hover,
#oftalmo-chatbot-root .oftalmo-cb-consent-link:focus-visible {
    color: #043B4A !important;
    outline: 2px solid #043B4A;
    outline-offset: 2px;
    border-radius: 3px;
}

@supports not (accent-color: #007F78) {
    #oftalmo-chatbot-root .oftalmo-cb-consent-input {
        position: absolute !important;
        clip-path: inset(50%) !important;
        overflow: hidden !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        border: 0 !important;
        white-space: nowrap !important;
    }

    #oftalmo-chatbot-root .oftalmo-cb-consent-label {
        position: relative;
        padding-left: 28px;
    }

    #oftalmo-chatbot-root .oftalmo-cb-consent-label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 3px;
        width: 18px;
        height: 18px;
        border: 2px solid #64748B;
        border-radius: 4px;
        background-color: #ffffff;
        box-sizing: border-box;
    }

    #oftalmo-chatbot-root .oftalmo-cb-consent-input:focus-visible + .oftalmo-cb-consent-label::before {
        outline: 2px solid #043B4A;
        outline-offset: 2px;
    }

    #oftalmo-chatbot-root .oftalmo-cb-consent-input:checked + .oftalmo-cb-consent-label::before {
        background-color: #007F78;
        border-color: #007F78;
    }

    #oftalmo-chatbot-root .oftalmo-cb-consent-input:checked + .oftalmo-cb-consent-label::after {
        content: "✓";
        position: absolute;
        left: 3px;
        top: 1px;
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        line-height: 18px;
    }
}

#oftalmo-chatbot-root .oftalmo-cb-consent-error {
    margin: -4px 0 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
    color: #B91C1C;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 8px 10px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-error:empty {
    display: none;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background-color: #007F78;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 127, 120, 0.24);
}

#oftalmo-chatbot-root .oftalmo-cb-consent-btn:hover {
    background-color: #006660;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-btn:focus-visible {
    outline: 3px solid #043B4A;
    outline-offset: 2px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background-color: #F8FAFC;
    padding: 8px 10px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs-summary {
    font-size: 12.5px;
    font-weight: 700;
    color: #006660;
    cursor: pointer;
    padding: 4px 2px;
    min-height: 28px;
    display: list-item;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs-summary:focus-visible {
    outline: 2px solid #043B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs-note {
    margin: 8px 0 6px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs-note a {
    color: #006660 !important;
    text-decoration: underline !important;
    font-weight: 600;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 132px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-doc-item {
    margin: 0;
    padding: 0;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    color: #0F172A !important;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1.35;
    transition: border-color 0.2s, background-color 0.2s;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-doc-link.is-primary-doc {
    border-color: #99D5CF;
    background-color: #F0FAF9;
    font-weight: 600;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-doc-link:hover,
#oftalmo-chatbot-root .oftalmo-cb-consent-doc-link:focus-visible {
    border-color: #007F78;
    background-color: #E6F4F2;
    outline: 2px solid #043B4A;
    outline-offset: 1px;
}

#oftalmo-chatbot-root .oftalmo-cb-consent-doc-badge {
    font-size: 10px;
    font-weight: 700;
    color: #006660;
    background-color: #E6F4F2;
    border: 1px solid #99D5CF;
    border-radius: 10px;
    padding: 1px 6px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    #oftalmo-chatbot-root {
        bottom: 16px;
        left: 14px;
    }
    #oftalmo-chatbot-root .oftalmo-cb-window {
        left: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        height: 75vh;
        max-height: calc(100vh - 96px);
    }
}
