/* Custom Font + GIF Smileys V14 - usa extras nativi + colorPicker esistente */

.customChatMiniIcon{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    padding:0 !important;
    margin:0 6px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    color:#111 !important;
    cursor:pointer;
    vertical-align:middle;
    line-height:32px !important;
    border-radius:0 !important;
}
.customChatMiniIcon:hover{
    background:transparent !important;
    color:#ff00c8 !important;
    box-shadow:none !important;
}
.customChatMiniIcon i{
    font-size:27px !important;
    line-height:32px !important;
    color:inherit !important;
}
.customPenIcon{
    display:inline-block !important;
    font-family:Arial, sans-serif !important;
    font-weight:900 !important;
    font-size:31px !important;
    line-height:31px !important;
    transform:rotate(-12deg);
    color:inherit !important;
}
.customPenTiny{
    display:inline-block;
    font-size:20px;
    font-weight:bold;
    transform:rotate(-12deg);
    margin-right:5px;
}

.customChatModal.customLightModal{
    position:fixed;
    left:50%;
    bottom:86px;
    transform:translateX(-50%);
    width:min(520px,92vw);
    max-height:70vh;
    overflow:auto;
    background:#ffffff;
    color:#1d1d1d;
    border:1px solid #d8d8d8;
    border-radius:14px;
    box-shadow:0 10px 35px rgba(0,0,0,.28);
    z-index:999999;
    display:none;
}
.customChatModalHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    background:#f7f7f7;
    border-bottom:1px solid #e1e1e1;
    font-weight:bold;
    color:#111;
}
.customChatModalBody{padding:14px;background:#fff}
.customChatModalClose{cursor:pointer;font-size:20px;color:#222}
.customFontRow{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center;margin-bottom:12px;color:#222}
.customFontRow label{font-weight:bold;color:#333}
.customFontRow select,.customFontRow input{
    width:100%;
    padding:9px;
    border-radius:8px;
    border:1px solid #cfcfcf;
    background:#fff;
    color:#111;
}
.customFontActions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.customFontPreview{padding:12px;border-radius:8px;background:#fafafa;border:1px solid #ddd;margin-top:12px}
.customChatToolBtn{
    border:0;
    background:#ff00c8;
    color:#fff;
    border-radius:8px;
    padding:8px 13px;
    cursor:pointer;
    font-size:13px;
    line-height:1;
    box-shadow:0 3px 10px rgba(255,0,200,.25);
}
.customChatToolBtn:hover{background:#d600a8}
.customResetBtn{background:#777}
.customResetBtn:hover{background:#555}

#customGifGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px;min-height:80px}
.customGifItem{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid #d0d0d0;border-radius:8px;padding:4px;cursor:pointer;transition:.15s}
.customGifItem:hover{transform:scale(1.08);border-color:#ff00c8;box-shadow:0 0 12px rgba(255,0,200,.35)}
.customGifEmpty{color:#555;padding:15px;text-align:center;grid-column:1/-1}

.custom-gif-smiley-preview{
    max-width:38px !important;
    max-height:38px !important;
    object-fit:contain;
    vertical-align:middle;
    margin:0 3px;
}
.custom-gif-smiley-rendered{
    max-width:80px !important;
    max-height:80px !important;
    object-fit:contain;
    vertical-align:middle;
    margin:0 4px;
}

@media(max-width:700px){
    .customFontRow{grid-template-columns:1fr}
    .customChatModal.customLightModal{bottom:80px}
    .customChatMiniIcon{width:28px !important;min-width:28px !important;height:28px !important;margin:0 4px !important}
    .customChatMiniIcon i{font-size:22px !important;line-height:28px !important}
    .customPenIcon{font-size:27px !important;line-height:27px !important}
}
