.voicer-short-text-overlay { position: absolute; right: 8%; left: 8%; z-index: 3; max-height: 66%; overflow: hidden; padding: 4px 7px; border-radius: 8px; color: #fff; font: 700 19px/1.25 system-ui, sans-serif; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 2px 5px rgba(0,0,0,.9); pointer-events: none; }
.voicer-short-text-overlay[data-position="top"] { top: 12%; }
.voicer-short-text-overlay[data-position="middle"] { top: 50%; transform: translateY(-50%); }
.voicer-short-text-overlay[data-position="bottom"] { bottom: 15%; }
.voicer-short-text-overlay[data-size="small"] { font-size: 15px; }
.voicer-short-text-overlay[data-size="large"] { font-size: 26px; }
.voicer-short-text-overlay[data-color="yellow"] { color: #fff178; }
.voicer-short-text-overlay[data-color="black"] { color: #132036; text-shadow: 0 1px 3px rgba(255,255,255,.85); }
.voicer-short-text-overlay[data-shade="true"] { background: rgba(5,15,30,.48); }
.voicer-short-text-overlay[data-shade="true"][data-color="black"] { background: rgba(255,255,255,.73); }
.voicer-short-text-overlay__edit { position: absolute; top: 13px; left: 50%; z-index: 8; transform: translateX(-50%); padding: 7px 11px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(9,26,46,.75); color: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.voicer-short-text-overlay__edit:hover, .voicer-short-text-overlay__edit:focus-visible { background: #1e63c8; color: #fff; }
.voicer-short-overlay-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; margin: 10px 0 0; padding: 7px 12px; border: 1px solid #adcaf0; border-radius: 9px; background: #eaf3ff; color: #185db8; font-size: 12px; font-weight: 750; cursor: pointer; }
.voicer-short-overlay-trigger:hover { background: #dbeaff; }
.voicer-short-overlay-trigger[hidden] { display: none !important; }
body.voicer-post-composer #shortOverlayEditButton, .voicer-video-upload #shortOverlayEditButton { display: none; }
body.voicer-post-composer #image-container:has(#boxscale3-fac-radio:checked):has(#videodiv.enabled) #shortOverlayEditButton,
.voicer-video-upload #image-container.enabled:has(#boxS-fac-radio:checked) #shortOverlayEditButton { display: inline-flex; }
body.voicer-post-composer #shortOverlayEditButton { margin: 0 auto 10px; }
.voicer-video-upload #shortOverlayEditButton { margin: 0 40px 10px 0; }
.voicer-short-text-editor { width: min(690px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto; border: 1px solid #dbe7f5; border-radius: 17px; background: #fff; color: #1c3757; box-shadow: 0 28px 75px rgba(5,19,39,.42); }
.voicer-short-text-editor::backdrop { background: rgba(8,24,43,.76); }
.voicer-short-text-editor__panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 19px 14px; border-bottom: 1px solid #e4edf8; }
.voicer-short-text-editor__panel > header h2 { margin: 0 0 4px; color: inherit; font-size: 18px; font-weight: 780; }
.voicer-short-text-editor__panel > header p { margin: 0; color: #6d829b; font-size: 12px; }
.voicer-short-text-editor__panel > header button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #eef4fc; color: #436487; font-size: 23px; line-height: 1; cursor: pointer; }
.voicer-short-text-editor__body { display: grid; grid-template-columns: minmax(0,1fr) 235px; align-items: center; gap: 18px; padding: 16px 19px; }
.voicer-short-text-editor__stage { position: relative; width: min(100%, 270px, 33.75dvh); aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #081421; }
.voicer-short-text-editor__stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.voicer-short-text-editor__scrim { position: absolute; inset: 0; background: rgba(3,12,25,.18); pointer-events: none; }
.voicer-short-text-editor__stage > .voicer-short-text-overlay { z-index: 2; }
.voicer-short-text-editor__tools { display: grid; gap: 6px; align-content: start; }
.voicer-short-text-editor__tools > label:not(.voicer-short-text-editor__shade) { margin-top: 5px; color: #294460; font-size: 12px; font-weight: 750; }
.voicer-short-text-editor__tools textarea, .voicer-short-text-editor__tools select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cdddf0; border-radius: 9px; background: #fff; color: #1d3858; font: 13px/1.35 system-ui, sans-serif; }
.voicer-short-text-editor__tools textarea { min-height: 76px; resize: vertical; }
.voicer-short-text-editor__tools :is(textarea, select):focus-visible { outline: 2px solid #7baff3; outline-offset: 1px; }
.voicer-short-text-editor__count { color: #7389a2; font-size: 10px; text-align: right; }
.voicer-short-text-editor__shade { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #365472; font-size: 12px; cursor: pointer; }
.voicer-short-text-editor__shade input { accent-color: #1e63c8; }
.voicer-short-text-editor__error { margin: 5px 0 0; color: #ad3441; font-size: 12px; }
.voicer-short-text-editor__error[hidden] { display: none; }
.voicer-short-text-editor__panel > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 19px 17px; border-top: 1px solid #e4edf8; }
.voicer-short-text-editor__panel > footer button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px; background: #eef4fc; color: #355675; font-size: 12px; font-weight: 750; cursor: pointer; }
.voicer-short-text-editor__panel > footer [data-overlay-save] { background: #1e63c8; color: #fff; }
.voicer-short-text-editor__panel > footer button:disabled { opacity: .55; cursor: wait; }
body.theme-dark .voicer-short-text-editor { border-color: #405776; background: #1e2e44; color: #f0f6ff; }
body.theme-dark .voicer-short-text-editor__panel > :is(header, footer) { border-color: #405776; }
body.theme-dark .voicer-short-text-editor__panel > header p, body.theme-dark .voicer-short-text-editor__tools > label:not(.voicer-short-text-editor__shade), body.theme-dark .voicer-short-text-editor__shade { color: #c0d2e9; }
body.theme-dark .voicer-short-text-editor__tools :is(textarea, select) { border-color: #4c6381; background: #273b55; color: #f0f6ff; }
body.theme-dark .voicer-short-overlay-trigger { border-color: #4c70a1; background: #294565; color: #d7eaff; }
@media (max-width: 590px) { .voicer-short-text-editor__body { grid-template-columns: 1fr; gap: 13px; padding: 12px; } .voicer-short-text-editor__stage { width: min(100%, 270px, 25.875dvh); } .voicer-short-text-editor__tools { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 8px; } .voicer-short-text-editor__tools > :is(textarea, .voicer-short-text-editor__count, .voicer-short-text-editor__shade, .voicer-short-text-editor__error) { grid-column: 1 / -1; } .voicer-short-text-editor__tools > label:not(.voicer-short-text-editor__shade) { margin-top: 2px; } }
