#stc-popup-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Segoe UI', sans-serif;
}

/* tool */
.stc-tooltip {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10002;
}

.stc-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

#stc-popup-icon:hover:not(.shift-left) .stc-tooltip {
    opacity: 1;
}


/* tool */

/* Chat ikon */
#stc-popup-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 14px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    position: fixed;
    width: 3%;
    bottom: 30px;
    right: 0px;
}

#stc-popup-icon {
    position: fixed;
    bottom: 30px;
    right: 0px;
    transition: transform 0.3s ease;
    z-index: 10001;
}

#stc-popup-icon:hover {
    transform: scale(1.1);
}

#stc-popup-icon:hover {
    transform: translateX(0);
}

/* Félig kilógó állapot */
#stc-popup-icon.partially-hidden {
    transform: translateX(50%);
}

/* Gomb eltolása balra */
#stc-popup-icon.shift-left {
    transform: translateX(-410px); 
    transition: transform 0.3s ease;
}


/* A megnyíló tartalom doboz */
#stc-popup-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    animation: fadeInUp 0.4s ease-out;

     max-height: 80vh;          
    overflow-y: auto;          
    scrollbar-width: thin;     
}
/* szebb görgetés */
#stc-popup-content::-webkit-scrollbar {
    width: 6px;
}

#stc-popup-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

#stc-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

/* szebb görgetés */

/* Felirat */
#stc-popup-content h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #222;
    text-align: center;
}

/* Profil kártya */
.stc-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.stc-user:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Profilkép */
img.stc-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Név + státusz pötty */
.stc-name-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: #4CAF50;
}

.status-dot.red {
    background-color: #F44336;
}

.status-text {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* Zászlók */
.stc-flags {
    margin-top: 8px;
}

.stc-flags img {
    width: 24px;
    height: auto;
    margin: 0 3px;
}

/* Gomb */
.stc-message-button {
    margin-top: 12px;
    background: linear-gradient(135deg, #38f9d7, #43e97b);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.stc-message-button:hover {
  color: white !important;      
    text-decoration: none !important;  
    background: linear-gradient(135deg, #32d6c6, #3bd66b); 
    transform: scale(1.05); 
}

/* Fade animáció */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@media (max-width: 700px) {
  #stc-popup-icon.shift-left {
    transform: translateX(-10px);
  }
}

@media (max-width: 700px) {
  #stc-popup-icon.shift-left {
    transform: none; 
  }

  #stc-popup-icon {
    width: 5%;
  }
}

@media (max-width: 560px) {
  #stc-popup-icon {
    width: 6%;
  }

}

@media (max-width: 440px) {
  #stc-popup-icon {
    width: 8%;
  }
}

@media (max-width: 440px) {

#stc-popup-content {
width: 70%;
}

}

@media (max-width: 700px) {
  #stc-popup-content {
    position: fixed;
    bottom: 80px; 
    right: 20px;
    margin-top: 0;
  }

    .stc-tooltip {
    display: none;
    position: absolute;
  }

}

