




.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s cubic-bezier(0.4, 0, .2, 1);
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgb(74, 147, 200, .3);
    opacity: 0;
    visibility: hidden;
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
    z-index: 1;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(74, 147, 200, .4);
}

.chatbot-button:active {
    transform: scale(1.05);
}

.chatbot-button-show {
    opacity: 1;
    visibility: visible;
    animation: chatbot-fade-in .6s cubic-bezier(0.4, 0, .2, 1) forwards;
}


.chatbot-button-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.chatbot-button-show-circles .chatbot-button-circles {
    opacity: 1;
}

.chatbot-button-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    opacity: 0;
}

.chatbot-button-show-circles .chatbot-button-circle {
    animation: chatbot-ripple 1.5s cubic-bezier(0.4, 0, .2, 1);
}

.chatbot-button-circle:nth-child(2) {
    animation-delay: .2s;
}

.chatbot-button-circle:nth-child(3) {
    animation-delay: .4s;
}


.chat-bubble {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(65, 136, 170, .2);
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 999;
    font-size: var(--paragraph);
    color: var(--color-dark-2);
}

.chat-bubble:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    border: 8px solid transparent;
    border-top-color: white;
    border-bottom: 0;
}

.chat-bubble.show {
    opacity: 1;
    transform: translateY(0);
}


.chatbot-app {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 550px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(65, 136, 170, .2);
    display: none;
    flex-direction: column;
    z-index: 1000;
}


.chatbot-nav-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--heading-6);
}

.chatbot-nav-bar b {
    font-weight: 600;
}

.chatbot-close-button {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.chatbot-close-button:hover {
    background: rgba(255, 255, 255, .3);
    transform: rotate(90deg);
}


.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 15px;
    background: #fafafa;
	border-bottom: 1px solid var(--border-light-2);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--color-gray-light);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-3);
}


.chatbot-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.5;
    font-size: var(--paragraph);
    animation: chatbot-message-appear .3s ease;
}

.chatbot-message-bot {
    background-color: white;
    align-self: flex-start;
    color: var(--color-dark-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.chatbot-message-user {
    background: linear-gradient(135deg, #FFF3E0 0, #FFE0B2 100%);
    color: var(--color-dark-2);
    align-self: flex-end;
    margin-left: auto;
    border: 1px solid #FFCC80;
}

.chatbot-message-user .chatbot-message-date {
    color: #E65100;
    opacity: .8;
}


.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .3);
    background: white;
    object-fit: cover;
    animation: chatbot-avatar-pulse 3s infinite;
}

@keyframes chatbot-avatar-pulse {
    0, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}


.chatbot-avatar:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, .6);
    transition: all .3s ease;
}


.chatbot-message-bot a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: all .2s ease;
}

.chatbot-message-bot a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.chatbot-message-bot b {
    color: var(--color-primary-light);
}


.chatbot-message-date {
    display: block;
    font-size: 11px;
    color: var(--color-gray-light);
    margin-top: 5px;
    opacity: .8;
}


.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    
}

.chatbot-suggestion-chip {
    background: linear-gradient(135deg, #FFF8E1 0, #FFECB3 100%);
    border: 1.5px solid #FFB74D;
    color: #E65100;
    
	padding: 8px 14px;
    border-radius: 25px;
    font-size: var(--text-13);
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.chatbot-suggestion-chip:hover {
    background: linear-gradient(135deg, #FF9800 0, #F57C00 100%);
    border-color: #E65100;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, .3);
}

.chatbot-suggestion-chip:active {
    transform: scale(0.95);
}


.chatbot-input-area {
    margin: 15px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    padding: 2px 12px;
    border: 1px solid var(--border-light-2);
}

.chatbot-input-area:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(74, 147, 200, .15);
}

.chatbot-input {
    flex-grow: 1;
    resize: none;
    width: calc(100% - 40px);
    height: 44px;
    max-height: 100px;
    min-height: 44px;
    border: none;
    font-family: inherit;
    font-size: var(--paragraph);
    font-weight: 400;
    line-height: 24px;
    outline: none;
    color: var(--color-dark-2);
    padding: 10px 5px;
}

.chatbot-input::placeholder {
    color: var(--color-gray-light);
}

.chatbot-send-button {
    border: none;
    cursor: pointer;
    font-size: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-primary);
    transition: all .2s ease;
}

.chatbot-send-button:not(:disabled):hover {
    background: var(--color-primary);
    color: white;
}

.chatbot-send-button:disabled {
    opacity: .3;
    cursor: not-allowed;
}


.chatbot-policy {
    font-size: 11px;
    padding: 10px;
    text-align: center;
    line-height: 14px;
    color: var(--color-gray-light);
    background: white;
    border-top: 1px solid var(--border-light-2);
}

.chatbot-policy a {
    color: var(--color-primary);
    text-decoration: none;
}


.chatbot-typing {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.chatbot-typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 3px;
    animation: chatbot-typing 1.4s infinite ease-in-out;
}

.chatbot-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.chatbot-typing-dot:nth-child(2) {
    animation-delay: .2s;
}

.chatbot-typing-dot:nth-child(3) {
    animation-delay: .4s;
}


@keyframes chatbot-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatbot-ripple {
    0 {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes chatbot-typing {
    0, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

@keyframes chatbot-message-appear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 768px) {
    .chatbot-app {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
        height: calc(100vh - 100px);
        max-height: 600px;
    }

    .chatbot-button {
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }

    .chat-bubble {
        bottom: 85px;
        right: 20px;
    }

    .chatbot-message {
        max-width: 90%;
    }
}


#chatbot-messages p {
    margin-bottom: 8px;
}

#chatbot-messages h5 {
    margin: 12px 0 8px 0;
    color: var(--color-primary);
    font-size: var(--heading-6);
}

#chatbot-messages ul,
#chatbot-messages ol {
    margin: 8px 0;
    padding-left: 20px;
}

#chatbot-messages li {
    margin-bottom: 5px;
}






.chatbot-privacy-screen {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    overflow-y: auto;
}

.chatbot-privacy-content {
    width: 100%;
    text-align: center;
    animation: chatbot-message-appear .4s ease;
}

.chatbot-privacy-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(74, 147, 200, .25);
    animation: chatbot-avatar-pulse 3s infinite;
}

.chatbot-privacy-title {
    color: var(--color-primary);
    font-size: var(--heading-5);
    font-weight: 600;
    margin: 0 0 6px 0;
}

.chatbot-privacy-subtitle {
    color: var(--color-dark-3);
    font-size: var(--paragraph);
    margin: 0 0 28px 0;
}


.chatbot-privacy-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
    font-size: var(--paragraph);
    color: var(--color-dark-2);
    user-select: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .2s ease;
}

.chatbot-privacy-checkbox-label:hover {
    background: rgba(74, 147, 200, .06);
}

.chatbot-privacy-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chatbot-privacy-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    background: white;
    flex-shrink: 0;
    position: relative;
    transition: all .2s ease;
}

.chatbot-privacy-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.chatbot-privacy-checkbox:checked + .chatbot-privacy-checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.chatbot-privacy-checkbox:checked + .chatbot-privacy-checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.chatbot-privacy-checkbox-text a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: all .2s ease;
}

.chatbot-privacy-checkbox-text a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.chatbot-privacy-accept-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 13px 35px;
    font-size: var(--paragraph);
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.chatbot-privacy-accept-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 147, 200, .35);
}

.chatbot-privacy-accept-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}


.chatbot-app.privacy-pending .chatbot-messages,
.chatbot-app.privacy-pending .chatbot-input-area,
.chatbot-app.privacy-pending .chatbot-policy {
    display: none;
}

.chatbot-app:not(.privacy-pending) .chatbot-privacy-screen {
    display: none;
}





.chatbot-privacy-overlay {
    position: absolute;
    top: 65px; 
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10;
    display: none;
    flex-direction: column;
    animation: chatbot-message-appear .25s ease;
}

.chatbot-app.privacy-overlay-open .chatbot-privacy-overlay {
    display: flex;
}

.chatbot-privacy-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light-2);
    background: #fafafa;
    flex-shrink: 0;
}

.chatbot-privacy-back-btn {
    background: white;
    border: 1px solid var(--border-light-2);
    color: var(--color-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--text-13);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s ease;
}

.chatbot-privacy-back-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.chatbot-privacy-overlay-title {
    font-size: var(--paragraph);
    font-weight: 600;
    color: var(--color-dark-2);
}

.chatbot-privacy-overlay-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background: white;
    -webkit-overflow-scrolling: touch;
}


.chatbot-privacy-overlay-content iframe {
    width: 100% !important;
    min-height: 100% !important;
    border: none !important;
}