
/* Floating button */
.chat-btn {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: #F9B711;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

.chat-btn i {
    font-size: 22px;
}

/* Chat box */
.chat-box {
    position: fixed;
    bottom: 204px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 99999;
}

.chat-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.chat-header span {
    display: block;
    font-weight: normal;
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}

.chat-header .close {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.chat-body {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.chat-card {
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #f5f7fb;
    transition: 0.3s;
}

.chat-card:hover {
    transform: translateY(-3px);
}

.chat-card i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.messenger {
    color: #0084ff;
}
.whatsapp {
    color: #25d366;
}
.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
}
.apex {
    background: #F9B711;
    color: #fff;
}

.instagram i,
.apex i {
    color: #fff;
}

.avijatry-chat {
    position: fixed;
    bottom: 200px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 999999;
}

.avijatry-chat-header {
    background: #F9B711;
    color: #fff;
    padding: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avijatry-chat-header span {
    cursor: pointer;
    font-size: 18px;
}

.avijatry-chat-body {
    height: 360px;
    padding: 15px;
    overflow-y: auto;
    background: #e2dfdf;
}

.msg {
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 80%;
    word-wrap: break-word;
    clear: both;
}

.msg.user {
    background: #fff;
    margin-left: auto;
}

.msg.admin {
    background: #F9B711;
    color: #fff;
    align-self: flex-start;
    margin-right: auto;
}

.avijatry-chatbox-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

.avijatry-chatbox-footer input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.avijatry-chatbox-footer button {
    background: #F9B711;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
}

.start-form {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}
.start-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.start-form button {
    width: 100%;
    background: #F9B711;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.avijatry-user-form {
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 320px;
    display: none;
    z-index: 999999;
    pointer-events: auto;
}

.start-form {
    background: #fff;
    padding: 0px 0px 100px 0px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 200px;
}

.start-form h4 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
}

.start-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.start-form button {
    width: 100%;
    background: #F9B711;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.start-form button:hover {
    opacity: 0.9;
}

/* Make chat cards clickable properly */
.chat-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Message loading animation */
.msg-loading {
    text-align: center;
    font-size: 13px;
    color: #777;
    padding: 8px;
    animation: fadePulse 1s infinite;
}

.chat-start-header {
    background-color: #F9B711;
    border-radius: 6px;
    position: relative;
}
.chat-start-header span {
    position: absolute;
    float: right;
    color: #ffff;
    padding-top: 1px;
    padding-right: 10px;
    cursor: pointer !important;
    z-index: 9999999;
    right: 0;
}
.chat-start-header h4 {
    color: #ffff;
    padding: 29px 10px 25px 10px;
    font-size: 15px;
}
.chat-start-div {
    padding: 30px;
}
@keyframes fadePulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}
