@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');

* {
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

#chatBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: #00000073;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 90;
}

/* visible state */
#chatBackdrop.show {
    opacity: 1;
    visibility: visible;
}

.chatbox {
    font-size: 12px;
    color: #555;
}

/* raise chat above backdrop */
.chat_card {
    z-index: 99;
}

#chatLauncher {
    z-index: 100;
}

.chatbox .chat_card.collapsed {
    height: 60px;
    overflow: hidden;
}

.chatbox .chat_card {
    height: 0;
    width: 33%;
    opacity: 0;
    visibility: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    position: fixed;
    bottom: 12px;
    right: 12px;
    border-radius: 6px;
}

.chatbox .chat_card.open {
    height: 500px;
    opacity: 1;
    visibility: visible;
    /* border: 4px solid #ffdd0091; */
}

.chatbox #chatLauncher {
    position: fixed;
    bottom: 65px;
    right: 12px;
    /*width: 60px;*/
    /*height: 60px;*/
    /*border-radius: 50%;*/
    /*background: #000;*/
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.chatbox #chatLauncher img {
    width: 60px;
    height: 60px;
    /*border-radius: 50%;*/
}

.chatbox .chat_card #header {
    border-bottom: 1px solid #bababa;
    height: 60px;
    background: linear-gradient(135deg, #eae9e9, #f0f0f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.3s ease-in-out;
}

.chatbox .chat_card #header .header_heading {
    display: flex;
    padding: 5px 0;
}

.chatbox .chat_card #header img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #ffdd0091;
    margin-left: 10px;
}

.chatbox .chat_card #header h1 {
    color: #000000;
    font-size: 18px;
    padding: 0 16px;
    font-family: "Prata", serif !important;
    font-family: 800;
}

.chatbox .chat_card #header .header_icons_parent,
.chatbox .chat_card #header .header_icons_parent div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbox .chat_card #header .header_icons_parent div {
    color: #000000;
    font-size: 26px;
    cursor: pointer;
    margin-right: 16px;
    background: linear-gradient(to right, #ffffff41, #ffffff8e);
    height: 30px;
    width: 30px;
    border-radius: 50%;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.bot-actions-dropdown {
    position: absolute;
    top: 60px;
    right: 15px;
    width: 60%;
    background: #ffffffc2;
    border-radius: 10px;
    box-shadow: 0 10px 30px #0000001a;
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bot-actions-dropdown.show {
    display: flex;
}

.bot-actions-dropdown .action-item {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s ease;
}

.bot-actions-dropdown .action-item div {
    padding: 5px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px #00000038;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-actions-dropdown .action-header {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
}

.bot-actions-dropdown .action-item:last-child {
    border-bottom: none;
}

.bot-actions-dropdown .action-item:hover {
    background: #fffffff3;
}

.chatbox .chat_card #message-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(#ffffff, #ffffff);
}

#message-sub-section {
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: #000 #f1f1f1;
    overflow-y: auto;
}

.chatbox .chat_card #message-sub-section::-webkit-scrollbar {
    width: 8px;
}

.chatbox .chat_card #message-sub-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chatbox .chat_card #message-sub-section::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.chatbox .chat_card #message-sub-section::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

.chatbox .chat_card #input-section {
    padding: 10px;
}

.chatbox .chat_card #input-section .type_part {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid #000;
}

.chatbox .chat_card #input-section input {
    width: 100%;
    height: 36px;
    border: none;
    outline: none;
    font-size: 14px;
}

.chatbox .chat_card .send {
    background: none;
    border: none;
    cursor: pointer;
}

.chatbox .chat_card .send .circle i {
    font-size: 22px;
}

.chatbox .message {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    max-width: 92%;
}


.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.qa-btn {
    background: linear-gradient(135deg, #4b5fd6, #6a82fb);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-btn:hover {
    opacity: 0.9;
}

.chatbox .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
}

.chatbox .message .text {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 20px;
}

.chatbox .bot-msg {
    justify-content: flex-start;
}

.chatbox .bot-msg .text {
    font-size: 13px;
    background: #fff;
    color: #4f4f4f;
    box-shadow: 0 10px 30px #00000025;
    /* border: 1px solid #777; */
    border-radius: 18px 18px 18px 0;
}

/* Bot content wrapper */
.chatbox .bot-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbox .user-msg {
    justify-content: end;
    margin-left: auto;
    flex-direction: row-reverse;
}

.chatbox .user-msg .text {
    background: #000;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

.chatbox .typing {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #777;
    border-radius: 18px;
}

.chatbox .typing span {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.chatbox .typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbox .typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.order-card, .shipping-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.5;
}

.order-card ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.order-card li {
    margin: 4px 0;
}

.shipping-card a {
    color: #007bff;
    text-decoration: underline;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 991px) {
    .chatbox .chat_card {
        width: 94%;
        height: 95% !important;
    }
}

.typing .dots::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-radius: 50%;
    background: #000;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
