/* ===== RATING ===== */
#uylc_rating {
    padding: 20px;
    text-align: center;
    animation: formFadeIn 0.4s ease;
}
#uylc_rating_stars {
    font-size: 38px;
    color: #ddd;
    letter-spacing: 6px;
    cursor: pointer;
    user-select: none;
    margin: 10px 0;
}
#uylc_rating_stars span {
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}
#uylc_rating_stars span:hover {
    transform: scale(1.15);
}
#uylc_rating_comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
#uylc_rating_comment:focus {
    outline: none;
    border-color: #ff7a7a;
    box-shadow: 0 0 0 3px rgba(255,122,122,0.1);
}
#uylc_rating_submit,
#uylc_rating_skip {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
#uylc_rating_submit {
    background: #ff6b6b;
    color: #fff;
}
#uylc_rating_submit:hover {
    background: #ff5252;
    transform: translateY(-1px);
}
#uylc_rating_skip {
    background: #f3f4f6;
    color: #374151;
}
#uylc_rating_skip:hover {
    background: #e5e7eb;
}
/* ===== FORM FIELD DESCRIPTION ===== */
.uy-field-description {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
}

/* Açıklama metni ile input arasında boşluk bırak */
.uy-field-description + input,
.uy-field-description + textarea,
.uy-field-description + select {
    margin-top: 0;
}
/* ===== FAB BUTTON ===== */
.uylc-fab{
    position:fixed;
    background:linear-gradient(135deg,#ff7a7a,#ff9d6d);
    color:#fff;
    z-index:9999;
    padding:10px 5px;
    border-radius:999px;
    cursor:pointer;
    font-weight:600;
    box-shadow:0 6px 15px rgba(255,122,122,.4);
    transition:all .3s ease;
    display:flex;
    align-items:center;
}
.uylc-fab:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(255,122,122,.5);
}

/* ===== LOGO ===== */
.uylc-logo{
    height:24px;
    width:auto;
    border-radius:4px;
    object-fit:contain;
}

/* ===== MESSAGE LINKS ===== */
.uylc-message-link {
    color: var(--uylc-primary, #2563eb) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}
.uylc-message-link:hover {
    opacity: 0.8 !important;
}

/* ===== MAIN WIDGET ===== */
.uylc-widget{
    position:fixed;
    width:340px;
    height:70vh;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    display:none;
    z-index:10011;
    overflow:hidden !important;
    display:flex;
    flex-direction:column;
}

/* Inline Widget (Elementor) */
.uylc-widget.uylc-inline {
    position:static!important;
    right:auto!important;
    left:auto!important;
    bottom:auto!important;
    top:auto !important;
    width:100%!important;
    max-width:100%!important;
    height:80vh!important;
    max-height:80vh!important;
    display:flex!important;
    flex-direction:column!important;
    z-index:1;
    transform:none !important;
}

/* Maximized Widget */
.uylc-widget.max{
    width: 768px !important;
    max-width: 90vw !important;
    height: 700px !important;
    max-height: 70vh !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

@media (min-width: 1440px) {
    .uylc-widget.max {
        width: 800px !important;
        height: 750px !important;
        bottom: 30px !important;
        right: 30px !important;
    }
}

@media (min-width: 1920px) {
    .uylc-widget.max {
        width: 900px !important;
        height: 800px !important;
        bottom: 40px !important;
        right: 40px !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .uylc-widget.max {
        width: 80vw !important;
        height: 70vh !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

@media (max-width: 768px) {
    .uylc-widget.max {
        width: 95vw !important;
        height: 70vh !important;
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
}

.uylc-widget.max .uylc-head{
    width:100% !important;
    box-sizing:border-box !important;
    border-top-left-radius:20px !important;
    border-top-right-radius:20px !important;
}

@media (max-width:480px){
    .uylc-widget.max{
        width:100vw !important;
        height:100vh !important;
        bottom:0 !important;
        right:0 !important;
        border-radius:0 !important;
        max-width:100vw !important;
        max-height:100vh !important;
    }
    .uylc-widget.max .uylc-head{
        border-radius:0 !important;
    }
}

/* ===== HEADER ===== */
.uylc-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:linear-gradient(90deg,#ff7a7a,#ff9d6d);
    color:#fff;
    padding:12px 16px;
    font-weight:600;
    flex:0 0 auto;
    overflow:visible !important;
}

.uylc-head>div{
    display:flex;
    align-items:center;
}

.uylc-head button{
    background:transparent;
    border:none;
    color:#fff;
    font-size:18px;
    cursor:pointer;
    padding:0;
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:4px;
    transition:all .2s ease;
    margin-left:8px;
}

.uylc-head button:hover{
    background:rgba(255,255,255,.2);
}

.uylc-agent-info{
    display:flex;
    align-items:center;
    gap:8px;
    margin-right:auto;
}

#uylc_agent_info{
    color:#fff;
    font-size:12px;
    font-weight:500;
    max-width:160px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.uylc-widget.max #uylc_agent_info{
    max-width:300px;
}

.uylc-widget.max .uylc-head{
    padding:10px 12px;
}

.uylc-widget.max .uylc-head button{
    width:22px;
    height:22px;
    font-size:15px;
}

.uylc-widget.max #uylc_newchat{
    padding:8px 12px !important;
    font-size:20px !important;
}

/* ===== BODY ===== */
.uylc-body{
    padding:12px;
    display:flex;
    flex-direction:column;
    flex:1;
    min-height:0;
    overflow:hidden;
}

/* ===== MESSAGES AREA ===== */
#uylc_messages{
    flex:1 1 auto;
    min-height:0;
    overflow-y: auto;
    background:#f8fafc;
    padding:10px;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

#uylc_messages .msg{
    background:#fff;
    padding:10px 14px;
    border-radius:12px;
    display:inline-block;
    max-width:80%;
    word-wrap:break-word;
    box-shadow:0 2px 5px rgba(0,0,0,.05);
    line-height:1.4;
    position:relative;
    padding-right:30px !important;
}

#uylc_messages .msg.me{
    background:#ffecec;
    align-self:flex-end;
    color:#d14545;
}

#uylc_messages .msg.system{
    background:#f0f7ff;
    align-self:center;
    max-width:90%;
    font-style:italic;
    color:#555;
    text-align:center;
}

.msg-status{
    position:absolute;
    right:8px;
    bottom:8px;
    font-size:11px !important;
}

#uylc_willkommen{
    margin-top:8px;
    padding:10px;
    background:#f8fafc;
    border-radius:8px;
    border-left:4px solid #ff9d6d;
}

/* ===== COMPOSER ===== */
.uylc-composer{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:nowrap;
    flex:0 0 auto;
    position:relative;
    overflow:visible !important;
    margin-top:8px;
    padding:0;
    width:100%;
    min-width:0;
    box-sizing:border-box;
}

#uylc_emoji_btn,
#uylc_file_btn{
    background:#f8f8f8;
    border:none;
    border-radius:8px;
    padding:8px 10px;
    cursor:pointer;
    font-size:16px;
    transition:all .2s ease;
    flex:0 0 auto;
}

#uylc_emoji_btn:hover,
#uylc_file_btn:hover{
    background:#f0f0f0;
}

.uylc-composer > #uylc_emoji_btn,
.uylc-composer > #uylc_file_btn{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    padding:0 !important;
    box-sizing:border-box !important;
}

#uylc_input{
    flex:1 1 0%;
    width:0;
    min-width:0 !important;
    max-width:100%;
    padding:10px 12px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    font-size:16px;
    box-sizing:border-box;
}

#uylc_send{
    background:#ff6b6b;
    border:none;
    color:#fff;
    border-radius:10px;
    padding:10px 16px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:all .2s ease;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    padding:0 !important;
    white-space:nowrap;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

#uylc_send svg{
    display:block;
    width:18px;
    height:18px;
    flex:0 0 18px;
}

#uylc_send:hover{
    background:#ff5252;
}

/* ===== EMOJI PANEL ===== */
.uylc-emoji-panel{
    position:absolute;
    bottom:140px;
    right:12px;
    width:360px;
    max-width:calc(100% - 24px);
    max-height:55vh;
    max-height:min(55vh, calc(100% - 160px), 340px);
    background:#fff;
    border:1px solid #eee;
    border-radius:10px;
    padding:10px;
    box-sizing:border-box;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    display:none;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    z-index:10001;
}

.uylc-emoji-heading{
    font-weight:700;
    padding:8px;
    margin:0 0 8px;
    border-radius:6px;
    background:#f5f5f5;
}

.uylc-standard-emoji-grid,
.uylc-animated-emoji-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(38px, 1fr));
    gap:4px;
}

.uylc-emoji-panel button.emoji{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    min-height:44px;
    background:none;
    border:none;
    font-size:22px;
    cursor:pointer;
    padding:4px;
    border-radius:6px;
    box-sizing:border-box;
}

.uylc-emoji-panel button.emoji:hover{
    background:#f0f0f0;
}

.uylc-emoji-panel .animated-emoji-container{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    aspect-ratio:1;
    padding:4px;
    border:0;
    border-radius:8px;
    background:transparent;
    cursor:pointer;
}

.uylc-emoji-panel .animated-emoji-container:hover{
    background:#f0f0f0;
}

.uylc-emoji-panel .animated-emoji-container video{
    display:block;
    width:100%;
    max-width:56px;
    aspect-ratio:1;
    height:auto;
    margin:0 auto;
    border-radius:8px;
    object-fit:cover;
}

.uylc-emoji-panel .animated-emoji-fallback{
    font-size:34px;
    line-height:1;
}

@media (max-width:480px){
    .uylc-emoji-panel{
        right:8px;
        bottom:104px;
        width:calc(100% - 16px);
        max-width:none;
        max-height:min(55vh, calc(100% - 120px), 340px);
        padding:8px;
    }
}

/* ===== END CHAT BUTTON ===== */
.uylc-head .uylc-newchat{
    background-color:#D4D4D4 !important;
    border:none !important;
    border-radius:25% !important;
    color:#fff !important;
    font-size:18px !important;
    margin-right:6px !important;
    cursor:pointer !important;
}

.uylc-end-chat-btn{
    position:relative !important;
    overflow:visible !important;
}

#uylc_newchat.uylc-end-chat-btn{
    background:#ff4d4d !important;
    border:none !important;
    border-radius:10px !important;
    color:#fff !important;
    font-size:16px !important;
    padding:10px 14px !important;
    cursor:pointer !important;
    transition:all 0.2s ease !important;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left:4px;
    overflow:visible !important;
}

.uylc-composer > #uylc_newchat.uylc-end-chat-btn,
.uylc-widget.max .uylc-composer > #uylc_newchat.uylc-end-chat-btn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    flex:0 0 42px !important;
    padding:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

#uylc_newchat.uylc-end-chat-btn:hover{
    background:#ff3333 !important;
    transform:scale(1.05);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator{
    background:#f0f0f0;
    border-radius:10px;
    padding:8px 12px;
    margin:5px 0;
    display:inline-block;
    max-width:80%;
    animation:typing-pulse 1.5s infinite;
}

@keyframes typing-pulse{
    0%,100%{opacity:0.7}
    50%{opacity:1}
}

/* ===== NOTIFICATIONS ===== */
.uylc-notification{
    animation:slideIn 0.3s ease;
    border-left:4px solid #2563eb;
}

.uylc-notification.success{
    border-left-color:#10b981;
}

.uylc-notification.error{
    border-left-color:#ef4444;
}

.uylc-notification.warning{
    border-left-color:#f59e0b;
}

@keyframes slideIn{
    from{transform:translateX(100%);opacity:0}
    to{transform:translateX(0);opacity:1}
}

/* ===== TOOLTIP ===== */
.uylc-tooltip-global{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:120px;
    width:92vw;
    max-width:420px;
    background:#ff4d4d;
    color:#fff;
    padding:14px 16px;
    border-radius:12px;
    z-index:999999;
    display:none;
    text-align:left;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    font-size:13px;
    line-height:1.5;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing:0.3px;
    border:1px solid rgba(255,255,255,0.1);
    pointer-events:none;
    word-wrap:break-word;
}

.uylc-tooltip-global::after{
    content:"";
    position:absolute;
    bottom:-8px;
    left:50%;
    transform:translateX(-50%);
    border-width:8px;
    border-style:solid;
    border-color:#ff4d4d transparent transparent transparent;
}

/* ===== PRE-CHAT FORM STYLES ===== */
#uy-preform {
    padding: 25px 20px;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: auto;
    display: block;
    flex: 0 0 auto;
    animation: formFadeIn 0.4s ease;
}

.uylc-widget:not(.max) #uy-preform {
    padding: 15px;
}

.uylc-widget[data-popup="1"] #uy-preform {
    border-radius: 16px 16px 0 0;
}

.uylc-widget.uylc-inline #uy-preform {
    border-radius: 16px 16px 0 0;
}

/* Form Header */
.uy-preform-header {
    margin-bottom: 20px;
    text-align: center;
}

.uy-preform-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.uy-preform-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Fields */
.uy-form-field {
    margin-bottom: 18px;
    position: relative;
}

.uy-form-field.uy-required label {
    font-weight: 600;
}

.uy-form-field.uy-optional label {
    font-weight: 400;
    color: #555;
}

.uy-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.uy-required-star {
    color: #ff4d4d;
    margin-left: 3px;
    font-size: 16px;
    vertical-align: middle;
}

.uy-optional-text {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-left: 5px;
    font-style: italic;
}

/* Form Inputs */
#uy-preform input,
#uy-preform textarea,
#uy-preform select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #f9f9f9;
}

#uy-preform input:focus,
#uy-preform textarea:focus,
#uy-preform select:focus {
    outline: none;
    border-color: #ff7a7a;
    box-shadow: 0 0 0 3px rgba(255,122,122,0.1);
    background: #fff;
}

/* Error States */
#uy-preform input.uy-error,
#uy-preform textarea.uy-error,
#uy-preform select.uy-error {
    border-color: #ff4d4d;
    background: #fff5f5;
}

.uy-field-error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

/* Submit Button */
#uy-preform button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #ff7a7a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#uy-preform button[type="submit"]:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,122,122,0.3);
}

#uy-preform button[type="submit"]:active {
    transform: translateY(0);
}

#uy-preform button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Chat Container */
#uy-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    flex: 1;
}

/* Inline Widget */
.uylc-widget.uylc-inline {
    display: flex !important;
    flex-direction: column !important;
    height: 80vh !important;
    overflow: hidden !important;
}

.uylc-widget.uylc-inline .uylc-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Maximized Widget Form */
.uylc-widget.max #uy-preform {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Loading Spinner */
.uy-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.uy-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff7a7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #uy-preform {
        padding: 15px;
    }
    
    #uy-preform input,
    #uy-preform textarea,
    #uy-preform select {
        padding: 10px;
        font-size: 16px;
    }
    
    #uy-preform button[type="submit"] {
        padding: 12px;
        font-size: 16px;
    }
    
    .uy-preform-header h3 {
        font-size: 16px;
    }
    
    .uy-preform-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #uy-preform {
        padding: 12px;
    }
    
    .uy-form-field {
        margin-bottom: 12px;
    }
    
    .uy-form-field label {
        font-size: 13px;
    }
    
    .uy-preform-header h3 {
        font-size: 15px;
    }
    
    .uy-optional-text {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .uylc-composer{
        flex-wrap:wrap;
        gap:6px;
    }
    
    #uylc_input{
        flex:1 1 100%;
        order:1;
    }
    
    #uylc_emoji_btn,
    #uylc_file_btn{
        flex:0 0 auto;
        order:0;
    }
    
    #uylc_send{
        flex:0 0 42px !important;
        order:2;
        padding:0 !important;
    }

    .uylc-composer > #uylc_newchat{
        order:2;
    }
    
    .uylc-tooltip-global{
        width:85vw !important;
        font-size:12px;
        padding:12px 14px;
        bottom:100px;
    }
    
    .uylc-widget:not(.max){
        width:95vw !important;
        left:2.5vw !important;
        right:auto !important;
    }
}

@media (max-width:360px){
    .uylc-widget{
        width:95vw !important;
        height:90vh !important;
        left:2.5vw !important;
        right:auto !important;
    }
    
    .uylc-head{
        font-size:14px;
    }
    
    #uylc_newchat{
        font-size:13px !important;
        padding:6px 10px !important;
    }
    
    .uylc-tooltip-global{
        width:90vw !important;
        font-size:11.5px;
        padding:10px 12px;
        bottom:90px;
    }
    
    .uylc-composer{
        gap:4px;
    }
}

@media (min-width:481px) and (max-width:768px){
    .uylc-tooltip-global{
        max-width:380px;
        font-size:12.5px;
        padding:12px 16px;
    }
}

@media (min-width:769px){
    .uylc-tooltip-global{
        max-width:420px;
        font-size:13px;
        padding:14px 18px;
        bottom:130px;
    }
}

/* ===== ELEMENTOR EDIT MODE ===== */
.elementor-edit-mode .uylc-fab,
.elementor-edit-mode .uylc-widget {
    display: none !important;
}
/* ===== BILDIRIM ROZETİ ===== */
.uylc-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background-color: #ff4d4d;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: badgePulse 1s ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* ===== DOSYA ÖNİZLEMELERİ (WhatsApp tarzı) ===== */
#uylc_messages .msg .uylc-attach {
    margin-top: 8px;
    line-height: 0;
}

#uylc_messages .msg .uylc-attach-image,
#uylc_messages .msg .uylc-attach-video {
    max-width: 240px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

#uylc_messages .msg .uylc-attach-image img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform .2s ease, opacity .2s ease;
    object-fit: cover;
}

#uylc_messages .msg .uylc-attach-image img:hover {
    transform: scale(1.02);
    opacity: .95;
}

#uylc_messages .msg .uylc-attach-video video {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
    background: #000;
}

#uylc_messages .msg .uylc-attach-file a {
    display: inline-block;
    padding: 6px 10px;
    background: rgba(0,0,0,.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
}

#uylc_messages .msg .uylc-attach-file a:hover {
    background: rgba(0,0,0,.1);
}

/* Küçük ekranlarda daha kompakt */
@media (max-width: 480px) {
    #uylc_messages .msg .uylc-attach-image,
    #uylc_messages .msg .uylc-attach-video { max-width: 200px; }
    #uylc_messages .msg .uylc-attach-image img,
    #uylc_messages .msg .uylc-attach-video video { max-width: 200px; }
}
/* Animasyonlu emoji: minimum boyut garanti, video görünmese de fallback kalır */
.uylc-emoji-anim { min-width: 40px; min-height: 40px; }
.uylc-emoji-anim > video { display: block; max-width: 100%; }
.uylc-emoji-anim > span  { user-select: none; }
/* ============================================================
   REACTIONS — Frontend
   Button sitzt UNTER der Bubble, Hover-Brücke hält ihn sichtbar
   ============================================================ */

#uylc_messages .msg {
  position: relative;
  overflow: visible;
  margin-bottom: 44px;               /* Platz für Button */
}

/* Hover-Brücke: verlängert den Hover-Bereich unter die Bubble */
#uylc_messages .msg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 36px;
}

/* --- Trigger (unter der Bubble) --- */
#uylc_messages .msg .uylc-react-trigger {
  position: absolute;
  top: 100%;
  bottom: auto;
  margin-top: 0px;
  right: 6px;
  display: none;
  background: #10b981;
  color: #fff;
  border: 1px solid #059669;
  border-radius: 30px;
  padding: 0px 0px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(16, 185, 129, .35);
  z-index: 10;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 0px !important;
}
#uylc_messages .msg:hover .uylc-react-trigger {
  display: inline-block;
}
#uylc_messages .msg .uylc-react-trigger:hover {
  background: #059669;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 5px 12px rgba(16, 185, 129, .45);
}
#uylc_messages .msg .uylc-react-popover {
  position: absolute;
  top: 100%;                    /* trigger ile aynı dikey hizada */
  bottom: auto;
  right: 0;                     /* trigger'ın sağ kenarıyla hizalı */
  margin-top: 0;
  margin-right: 0;
  transform: translateY(-50%);  /* trigger ile tam aynı hizaya otur */
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 4px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  z-index: 30;
  gap: 2px;
  flex-direction: row-reverse;  /* emojiler sağdan sola dizilsin */
  left: auto;
  width: max-content;
  max-width: min(260px, 70vw);  /* ekran genişliğine göre sınırla */
}
#uylc_messages .msg .uylc-react-popover .uylc-react-emoji {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  line-height: 1;
  transition: transform .12s ease, background .12s ease;
}
#uylc_messages .msg .uylc-react-popover .uylc-react-emoji:hover {
  transform: scale(1.25);
  background: #f3f4f6;
}

/* --- Reaktions-Chips --- */
.uylc-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.uylc-reaction {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  user-select: none;
}
.uylc-reaction.uylc-mine {
  background: #ffe4e6;
  border-color: #ff9d9d;
  color: #b91c1c;
  font-weight: 600;
}
@media (max-width: 480px) {
  #uylc_messages .msg .uylc-react-popover {
    margin-right: 0;
    max-width: 85vw;
    padding: 3px 4px;
  }
  #uylc_messages .msg .uylc-react-popover .uylc-react-emoji {
    font-size: 20px;
    padding: 3px 5px;
  }
}
