/* ===============================
   BUTTON BASE
=================================*/

.avy-chat-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: all .3s ease;
}

/* RIGHT POSITION */
.avy-chat-button.avy-right {
    right: 20px;
}

/* LEFT POSITION */
.avy-chat-button.avy-left {
    left: 20px;
}

/* Hover */
.avy-chat-button:hover {
    transform: scale(1.1);
    background: #09675a;
}

/* ===============================
   ICON FIX
=================================*/

/* If using inline SVG */
.avy-chat-button svg {
    width: 26px;
    height: 26px;
    fill: #ffffff !important;
    display: block;
}

.avy-chat-button svg path {
    fill: #ffffff !important;
}



/* ===============================
   HOVER TOOLTIP
=================================*/

.avy-hover-text {
    position: absolute;
    background: #ffffff;
    color: #333;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

/* RIGHT TOOLTIP */
.avy-chat-button.avy-right .avy-hover-text {
    right: 70px;
    transform: translateX(15px);
}

.avy-chat-button.avy-right:hover .avy-hover-text {
    opacity: 1;
    transform: translateX(0);
}

/* LEFT TOOLTIP */
.avy-chat-button.avy-left .avy-hover-text {
    left: 70px;
    transform: translateX(-15px);
}

.avy-chat-button.avy-left:hover .avy-hover-text {
    opacity: 1;
    transform: translateX(0);
}

/* Arrow RIGHT */
.avy-chat-button.avy-right .avy-hover-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

/* Arrow LEFT */
.avy-chat-button.avy-left .avy-hover-text::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

@media(max-width:768px){
    .avy-hover-text { display:none; }
}

/* ===============================
   POPUP BASE
=================================*/

.avy-chat-popup {
    position: fixed;
    bottom: 90px;
    width: 360px;
    max-width: 95vw;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 9999;
}

.avy-chat-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

/* RIGHT POPUP */
.avy-chat-button.avy-right + .avy-chat-popup {
    right: 20px;
}

/* LEFT POPUP */
.avy-chat-button.avy-left + .avy-chat-popup {
    left: 20px;
}

/* ===============================
   POPUP HEADER
=================================*/

.avy-chat-header {
    background: #0b7d6d;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
}

.avy-chat-avatar {
    position: relative;
    margin-right: 10px;
}

.avy-chat-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.avy-online-dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
    right: 3px;
    border: 2px solid #fff;
}

.avy-chat-info h4 {
    margin: 0;
    font-size: 16px;
}

.avy-chat-info p {
    margin: 0;
    font-size: 13px;
    opacity: .8;
}

.avy-chat-close {
    margin-left: auto;
    cursor: pointer;
}

/* ===============================
   BODY
=================================*/

.avy-chat-body {
    padding: 15px;
}

.avy-chat-bubble {
    background: #f1f1f1;
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 10px;
   
}

.avy-language-buttons button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    background: #fff;
    transition: .2s ease;
}

.avy-language-buttons button:hover {
    background: #0b7d6d;
    color: #fff;
}
