/* Text effect samples use the same carousel controller as the live pause cards. */
.editor-video-text-stage{position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;width:100%}
.editor-video-text-stage .editor-text-layer{position:absolute;inset:0;z-index:3;pointer-events:none}
.editor-video-text-stage .editor-text-item{pointer-events:auto}
.editor-text-effects{min-width:0;width:100%;margin:14px 0 18px}
.editor-text-effect-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.editor-text-effect-heading h5{margin:0;font:inherit;font-size:13px;font-weight:600}
.editor-text-effect-heading>div{display:flex;align-items:center;gap:3px}
.editor-text-effect-heading [data-carousel-step]{display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:4px;border:0;border-radius:0;background:transparent;color:inherit}
.editor-text-effect-heading svg,.editor-text-control-actions svg{width:17px;height:17px;flex:none;vertical-align:middle}
.editor-text-effect-scroller{position:relative;container-type:inline-size;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;padding:10px 0 12px}
.editor-text-effect-scroller::-webkit-scrollbar{display:none}
.editor-text-effect-scroller[data-free=true]{scroll-snap-type:none}
.editor-text-effect-track{position:relative;display:flex;align-items:stretch;width:max-content;gap:10px;padding:0 4px}
.editor-text-effect-card{position:relative;flex:none;width:180px;scroll-snap-align:center;margin:0;padding:0}
.editor-text-effect-card [data-rail-link]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;width:100%;min-height:118px;margin:0;padding:18px 12px 12px;border:1px solid var(--line,#263146);border-radius:12px;background:linear-gradient(145deg,#172236,#0d1420);color:#fff;text-align:center;cursor:pointer;touch-action:pan-x pan-y}
.editor-text-effect-card [aria-pressed=true]{border-color:#ba9bf9;box-shadow:inset 0 0 0 1px #a97cf855}
.editor-text-effect-example{display:block;max-width:100%;min-height:33px;font-family:'FP DM Sans',sans-serif;font-size:24px;font-weight:700;line-height:1.15;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}
.editor-text-effect-name{font-size:11px;font-weight:500;color:#c6cbd6;pointer-events:none}
.editor-text-effect-card button:disabled,.editor-text-effect-heading button:disabled{opacity:.5;cursor:default}
.editor-text-effect-card button:focus-visible,.editor-text-effect-scroller:focus-visible,.editor-text-effect-heading button:focus-visible{outline:2px solid #ba9bf9;outline-offset:3px}
.editor-text-control-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.editor-text-control-actions button{display:inline-flex;gap:5px;align-items:center}
@media(max-width:480px){.editor-text-effect-card{width:158px}.editor-text-effect-example{font-size:21px}}
@media(pointer:fine){.editor-text-effect-scroller{cursor:grab}.editor-text-effect-scroller[data-dragging=true]{cursor:grabbing}}
@media(prefers-reduced-motion:reduce){.editor-text-effect-scroller{scroll-behavior:auto}}
/* Keep the entire output frame visible, with text placed against the saved frame rather than a clipped player. */
.compose-video-editor .editor-preview:has(.editor-video-text-stage){height:auto;min-height:0;max-height:none;padding:0}
.editor-video-text-stage{flex:0 1 auto;max-width:100%;margin-inline:auto}
.editor-controls-layout>.editor-photo-style{grid-column:1/-1;order:-1;min-width:0}

.editor-text-effect-example{min-width:0;overflow:hidden}
