/* DPS Chatbot Popup Styles */

* {
    box-sizing: border-box;
}

/* Chat Trigger Button */
.dps-chat-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--e-global-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -3px 55px 15px 0px rgba(0, 0, 0, 0.00), -2px 35px 14px 0px rgba(0, 0, 0, 0.02), -1px 20px 12px 0px rgba(0, 0, 0, 0.06), 0px 9px 9px 0px rgba(0, 0, 0, 0.10), 0px 2px 5px 0px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 9998;
}

.dps-chat-trigger svg {
    width: 25px;
    height: 30px;
    fill: #FFF;
    margin-right: 4px;
}

.chatbot-tooltip {
    position: absolute;
    right: 65px;
    color: var(--e-global-color-ed08105);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 30px 0px 30px 30px;
    border: 1px solid rgba(154, 166, 178, 0.40);
    background: var(--White, #FFF);
    box-shadow: -3px 55px 15px 0px rgba(0, 0, 0, 0.00), -2px 35px 14px 0px rgba(0, 0, 0, 0.02), -1px 20px 12px 0px rgba(0, 0, 0, 0.06), 0px 9px 9px 0px rgba(0, 0, 0, 0.10), 0px 2px 5px 0px rgba(0, 0, 0, 0.12);
    display: flex;
    height: 48px;
    padding: 0px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    font-family: var(--e-global-typography-a779c3c-font-family), Sans-serif;
}

.dps-chat-trigger:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Main Popup Container */
.dps-chat-popup {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 514px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 25px 0 0 25px;
    box-shadow: -4px 4px 20px 0 rgba(215, 25, 32, 0.24);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.dps-chat-popup.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.dps-chat-screen {
    display: none;
    height: 100%;
    flex-direction: column;
    background: linear-gradient(195deg, #D21C1E 0.59%, #6C0E0F 100%);
    backdrop-filter: blur(21px);
}

.dps-chat-screen.active {
    display: flex;
}

.dps-chat-header {
    padding: 60px 25px 20px;
    color: white;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.dps-chat-header h2 {
    margin: 0;
    color: #fff;
    font-family: var(--e-global-typography-df30a5d-font-family), Sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.63px;
}

.dps-close-btn {
    position: absolute;
    padding: 0 !important;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dps-close-btn svg {
    color: #D71920;
}

.dps-close-btn:hover {
    transform: scale(1.1);
    background: #f5f5f5;
}

.dps-close-btn svg path {
    fill: #D71920;
}

.dps-chat-body {
    padding: 0 25px 45px;
    flex: 1;
    overflow-y: auto;
}

.dps-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
}

.dps-input-icon {
    background: #D71920;
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dps-input-icon svg {
    fill: #fff;
    height: 24px;
    width: 21px;
}

.dps-message-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    outline: 0 !important;
    padding: 8px !important;
    padding-right: 20px !important;
    outline: none;
    color: #575757;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    height: 53px;
    background-color: #fff;
}

.dps-message-input::placeholder {
    color: #575757;
}

.dps-input-container .dps-chat-mic,
.dps-input-container .dps-chat-mic-1,
.dps-input-container-secondary .dps-chat-mic,
.dps-input-container-secondary .dps-chat-mic-1 {
    background: none;
    border: none;
    color: #030303;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    border-radius: 0 60px 60px 0;
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.dps-input-container .dps-chat-mic-1:hover,
.dps-input-container-secondary .dps-chat-mic-1:hover {
    background: transparent;
    color: #D71920;
}

.dps-prompt-text {
    color: #fff;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin: 0 0 30px;
}

.dps-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    margin-top: 15px;
}

.dps-suggestion-btn {
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.06);
    display: inline-block;
    height: 40px;
    padding: 7px 14px;
    flex: 1;
    color: #FFF;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: none;
}

.dps-suggestion-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: #D71920;
}

.dps-recommendations {
    color: #FFF;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.dps-recommendations span:last-child {
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.dps-recommendations span:last-child:hover {
    opacity: 0.8;
}

/* Chat Screen - White Background */
.dps-chat-header-secondary {
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dps-chat-header-secondary h3 {
    margin: 0 0 0 4px;
    flex: 1;
    text-align: left;
    color: #030303;
    font-family: var(--e-global-typography-df30a5d-font-family), Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.48px;
}

.dps-back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dps-back-btn:hover {
    background: #f5f5f5;
    border-radius: 50%;
}

.dps-chat-body-secondary {
    background: white;
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dps-message-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 53px;
    padding-right: 10px;
}

.dps-user-message,
.dps-bot-message {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.dps-message-avatar {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: top;
    margin-right: 4px;
}

.dps-user-avatar {
    border-radius: 6px;
    border: 4px solid #D71920;
    background: #FBFBFB;
}

.dps-bot-avatar svg {
    width: 17px;
    height: 20px;
    fill: #D71920;
}

.dps-message-content {
    flex: 1;

}

.dps-message-content div {
    margin-left: 28px
}

.dps-user-message .dps-message-content {
    padding: 16px 14px;
    border-radius: 20px;
    border: 2px solid rgba(215, 25, 32, 0.20);
}

.dps-message-content strong {
    /*     display: block; */
    color: #030303;
    font-family: Poppins;
    /*     font-size: 16px; */
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 12px;
}

.dps-message-content p {
    color: #575757;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 300;
    line-height: normal;
    margin-top: 0;
    text-align: justify;
	word-break: break-word;
}

.dps-message-content p:last-of-type {
    margin-bottom: 0;
}

.dps-message-content p:last-child {
    margin-bottom: 0;
    margin-left: 12px;
}

.dps-message-content div {
    color: #575757;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    margin-top: 0;
    margin-bottom: 16px !important;
    text-align: justify;
}

.dps-message-content div:last-of-type {
    margin-bottom: 0;
}

.dps-message-content div:last-child {
    margin-bottom: 0;
}

.dps-message-content ul {
    color: #575757;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 0;
    padding-inline-start: 18px !important;
	text-align:justifyp;
}

.dps-message-content ul:last-of-type {
    margin-bottom: 0;
}

.dps-message-content ul:last-child {
    margin-bottom: 0;
}


.dps-message-content a {
    color: #C62828;
    text-decoration: none;
}

.dps-message-content a:hover {
    text-decoration: underline;
}

.dps-copy-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.2s ease;
    color: #030303;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: none;
    margin-left: 17px;
}

.dps-copy-btn:focus,
.dps-copy-btn:hover {
    background: transparent !important;
    color: #D71920;
}

.dps-copy-btn svg {
    color: #D71920;
}

.dps-copy-btn+* {
    margin-top: 20px;
}

.dps-input-container-secondary {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: fixed;
    bottom: 9px;
    width: 87%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dps-chat-popup {
        bottom: 0;
        right: 0;
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
    }
}

@media (max-width: 575px) {
    .dps-chat-popup {
        width: 100%;
        max-width: 100%;
    }
}

/* Scrollbar Styling */
.dps-chat-body::-webkit-scrollbar,
.dps-chat-body-secondary::-webkit-scrollbar,
.dps-message-container::-webkit-scrollbar {
    width: 6px;
}

.dps-chat-body::-webkit-scrollbar-track,
.dps-chat-body-secondary::-webkit-scrollbar-track,
.dps-message-container::-webkit-scrollbar-track {
    background: transparent;
}

.dps-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dps-chat-body-secondary::-webkit-scrollbar-thumb,
.dps-message-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.dps-chat-body::-webkit-scrollbar-thumb:hover,
.dps-chat-body-secondary::-webkit-scrollbar-thumb:hover,
.dps-message-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}


.loading {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #D71920;
    border-radius: 50%;
    animation: loading 1.4s infinite ease-in-out;
}

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

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

@keyframes loading {

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

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

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.dps-list {
    margin-left: -8px;
}



.dps-bot-message .dps-message-content {
    margin-left: 16px;
}