#wcsc-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 99999;
    transition: transform 0.3s ease;
}

#wcsc-chat-bubble:hover {
    transform: scale(1.1);
}

/* Fő keret: Fix magasság, nincs flex kinyomódás */
#wcsc-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 450px;
    max-height: calc(100vh - 110px); /* Mobilon ne lógjon le a képről */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    z-index: 99999;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Erőltetett dobozméretezés, hogy a padding ne növelje a méretet */
#wcsc-chat-widget * {
    box-sizing: border-box !important;
}

/* Fejléc: Fixen a tetején */
#wcsc-chat-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #0073aa;
    color: #fff;
    padding: 0 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 3;
}

/* Középső rész: A fejléc és lábléc között */
#wcsc-chat-body {
    position: absolute;
    top: 50px;
    bottom: 60px; /* Hely a láblécnek */
    left: 0;
    width: 100%;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    z-index: 1;
}

/* Lábléc: Fixen az alján */
#wcsc-chat-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    z-index: 3;
}

#wcsc-privacy-screen {
    text-align: center;
    margin-top: 10px;
}

#wcsc-privacy-screen p {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.wcsc-input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#wcsc-privacy-screen label {
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}

#wcsc-start-chat-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
}

#wcsc-start-chat-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#wcsc-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcsc-msg {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.wcsc-msg.customer {
    background: #0073aa;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.wcsc-msg.admin {
    background: #e5e5ea;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

#wcsc-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

#wcsc-chat-send {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}