/* 4Download Community Custom Editor V1: inherits original template palette */
.fdcc-composer.fdcc-ce-ready .ac-form__editor{position:relative;min-height:150px!important;background:var(--bg-darker)!important;border-color:var(--bdc)!important;overflow:visible!important}
.fdcc-composer.fdcc-ce-ready .ac-form__editor .dleaddcomments-editor,
.fdcc-composer.fdcc-ce-ready .ac-form__editor .bb-editor{display:none!important}
.fdcc-composer.fdcc-ce-ready .ac-form__editor textarea#comments{display:none!important}
.fdcc-ce-input{position:relative;z-index:2;display:block;min-height:150px;padding:18px 18px 32px;background:transparent;color:var(--tt);font-family:inherit;font-size:14px;line-height:1.8;outline:0;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}
.fdcc-ce-input:focus{outline:0}.fdcc-ce-input img.fdcc-ce-inserted{max-width:min(230px,85%);max-height:180px;object-fit:contain;vertical-align:middle;border-radius:12px;margin:4px}
.fdcc-ce-hint{position:absolute;pointer-events:none;z-index:1;top:18px;left:18px;font-size:14px;color:var(--tt-fade);line-height:1.8}.fdcc-ce-hint[hidden]{display:none!important}
.fdcc-ce-picker{position:fixed!important;z-index:2147483000!important;display:block;max-width:calc(100vw - 16px);max-height:min(430px,75dvh);padding:0;border-radius:16px;background:var(--bg)!important;color:var(--tt)!important;border:1px solid var(--bdc)!important;box-shadow:0 16px 55px rgba(0,0,0,.22);overflow:hidden}
.fdcc-ce-picker[hidden]{display:none!important}.fdcc-ce-tabs{display:flex;align-items:stretch;gap:3px;padding:8px 8px 0;border-bottom:1px solid var(--bdc)}
.fdcc-ce-tabs button{font-family:inherit;font-weight:700;font-size:12px;flex:1;min-height:35px;border:0!important;background:transparent!important;color:var(--tt-fade)!important;border-bottom:2px solid transparent!important;cursor:pointer}
.fdcc-ce-tabs button.selected{border-bottom-color:var(--accent-primary)!important;color:var(--tt)!important}.fdcc-ce-tabs [data-ce-dismiss]{flex:0 0 32px;font-size:23px}
.fdcc-ce-search{display:block!important;box-sizing:border-box;width:calc(100% - 24px);height:40px;margin:12px;border-radius:10px;border:1px solid var(--bdc)!important;background:var(--bg-darker)!important;color:var(--tt)!important;padding:8px 12px;font-size:13px}
.fdcc-ce-results{max-height:min(305px,48dvh);min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 12px}
.fdcc-ce-category{padding:0 0 9px}.fdcc-ce-category h4{font-size:11px;color:var(--tt-fade);font-weight:800;margin:10px 0 7px}
.fdcc-ce-emoji-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:1px}.fdcc-ce-emoji-grid button{display:grid;place-items:center;min-width:0;min-height:36px;padding:1px!important;background:transparent!important;color:inherit!important;border:0!important;border-radius:0!important;font-family:system-ui,'Segoe UI Emoji',sans-serif;font-size:24px;line-height:1.2;cursor:pointer;transition:transform .14s ease}.fdcc-ce-emoji-grid button:hover{transform:scale(1.3);z-index:1}
.fdcc-ce-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.fdcc-ce-media-grid button{border:0!important;background:transparent!important;cursor:pointer;overflow:hidden;border-radius:10px;display:block;padding:0!important}.fdcc-ce-media-grid img{width:100%;height:100px;object-fit:cover;display:block}.fdcc-ce-status{text-align:center;font-size:12px;color:var(--tt-fade);padding:30px 0}
.fdcc-ce-foot{font-size:10px;color:var(--tt-fade);text-align:center;padding:8px 10px;border-top:1px solid var(--bdc)}
.fdcc-composer.fdcc-ce-ready .fdcc-tools-hint{display:none}
@media(max-width:580px){.fdcc-ce-input{min-height:120px}.fdcc-ce-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.fdcc-ce-emoji-grid button{font-size:24px;min-height:35px}}
@media(prefers-reduced-motion:reduce){.fdcc-ce-emoji-grid button{transition:none!important}}


/* FD CUSTOM EDITOR SAFE DESIGN V2 */
/* CSS ONLY — no JavaScript, no DOM manipulation */

.fdcc-composer.fdcc-ce-ready .ac-form {
    border-radius: 20px !important;
    padding: 14px !important;
}

.fdcc-composer.fdcc-ce-ready .ac-form__editor {
    border-radius: 15px !important;
    min-height: 145px !important;
}

.fdcc-composer.fdcc-ce-ready .fdcc-ce-input {
    min-height: 145px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.fdcc-composer.fdcc-ce-ready .fdcc-ce-hint {
    top: 16px;
    left: 16px;
}

.fdcc-composer.fdcc-ce-ready .fdcc-tools {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bdc);
}

.fdcc-composer.fdcc-ce-ready .fdcc-tool {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid transparent !important;
    border-radius: 12px;
    background: transparent !important;
    color: var(--tt) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
    transition: background .15s ease, color .15s ease;
}

.fdcc-composer.fdcc-ce-ready .fdcc-tool:hover,
.fdcc-composer.fdcc-ce-ready .fdcc-tool:focus-visible {
    background: var(--bg-darker) !important;
    color: var(--accent-primary) !important;
}

.fdcc-composer.fdcc-ce-ready [data-fdcc-format] {
    display: none !important;
}

.fdcc-composer.fdcc-ce-ready .fdcc-tools-hint {
    display: none !important;
}

.fdcc-composer.fdcc-ce-ready .ac-form__bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 11px;
}

.fdcc-composer.fdcc-ce-ready .ac-form__bottom .has-checkbox {
    order: 1;
    flex: 1 1 auto;
    min-width: 150px;
}

.fdcc-composer.fdcc-ce-ready .ac-form__bottom .ac-form__btn {
    order: 2;
    margin-left: auto;
    min-width: 130px;
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 13px !important;
    background: var(--bg-btn) !important;
    color: var(--tt-btn) !important;
    box-shadow: none !important;
    font-weight: 800;
    font-size: 12px;
    transition: background .15s ease, transform .15s ease;
}

.fdcc-composer.fdcc-ce-ready .ac-form__bottom .ac-form__btn:hover {
    background: var(--bg-btn-hover) !important;
    transform: translateY(-1px);
}

@media (max-width: 580px) {
    .fdcc-composer.fdcc-ce-ready .ac-form {
        padding: 11px !important;
    }

    .fdcc-composer.fdcc-ce-ready .fdcc-ce-input {
        min-height: 120px;
    }

    .fdcc-composer.fdcc-ce-ready .ac-form__bottom .has-checkbox {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdcc-composer.fdcc-ce-ready .fdcc-tool,
    .fdcc-composer.fdcc-ce-ready .ac-form__btn {
        transition: none !important;
        transform: none !important;
    }
}
