/* ---------- TikTok post settings ---------- */

#ttModal { z-index: 280; }
.tt-modal { width: min(520px, 100%); }
.tt-creator { margin-top: 2px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.tt-creator img { width: 20px; height: 20px; border-radius: 50%; }
.tt-form { display: contents; }
.tt-modal .modal-body { display: grid; gap: 14px; font-size: 13px; color: var(--text-2); }
.tt-block, .tt-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
#ttFields { display: grid; gap: 14px; }
.tt-preview { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.tt-preview .cs-media { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.tt-preview .cs-media img, .tt-preview .cs-media video { width: 100%; height: 100%; object-fit: cover; }
.tt-preview p { margin: 0; flex: 1; min-width: 0; max-height: 96px; overflow: auto; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.tt-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tt-field > span, .tt-field > legend { padding: 0; font-size: 12.5px; font-weight: 700; color: var(--text); }
.tt-field .lab-select { width: 100%; min-height: 44px; }
.tt-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.tt-check input { flex: none; width: 20px; height: 20px; accent-color: var(--primary); }
.tt-check em { font-style: normal; font-size: 12px; color: var(--text-3); }
.tt-check:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.tt-check input:focus-visible, .tt-modal select:focus-visible, .tt-modal a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tt-commercial span { font-weight: 700; color: var(--text); }
.tt-note { margin: 0; font-size: 12px; color: var(--text-3); }
.tt-footer { flex-wrap: wrap; align-items: center; }
.tt-consent { flex: 1 0 100%; margin: 0 0 4px; font-size: 12px; color: var(--text-2); }
.tt-consent a { color: var(--primary-dark); font-weight: 700; }
.tt-footer .btn { min-height: 44px; padding: 0 16px; font-size: 13px; }
@media (max-width: 520px) {
    .tt-footer { flex-direction: column-reverse; align-items: stretch; }
    .tt-consent { flex-basis: auto; order: -1; }
}
