/* Composer (compose-images.blade.php) — namespaced styles so we don't depend on Tailwind
   utility classes being JIT-compiled into Filament's panel CSS. */
.composer { display:flex; flex-direction:column; gap:1rem; }
.composer-bar { display:flex; flex-wrap:wrap; gap:1rem; align-items:end; padding-bottom:0.75rem; border-bottom:1px solid rgb(229 231 235); }
.composer-label { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:rgb(107 114 128); }
.composer-input { padding:6px 8px; border:1px solid rgb(209 213 219); border-radius:4px; background:white; color:rgb(17 24 39); }
.composer-count { display:inline-flex; border:1px solid rgb(209 213 219); border-radius:6px; overflow:hidden; }
.composer-count button { padding:6px 18px; border:0; border-right:1px solid rgb(209 213 219); font-weight:600; cursor:pointer; font-size:13px; background:white; color:rgb(55 65 81); }
.composer-count button:last-child { border-right:0; }
.composer-count button.active { background:rgb(245 158 11); color:white; }
.composer-row { display:grid; gap:0; border-radius:8px; overflow:hidden; box-shadow:0 0 0 1px rgb(229 231 235); width:100%; }
.composer-slot { position:relative; overflow:hidden; user-select:none; }
.composer-slot.active { box-shadow: inset 0 0 0 3px rgb(245 158 11); }
/* Fallback rules — apply even if Alpine :style binding fails. CSS vars carry the dynamic
   per-slot zoom + anchor so the image positions itself purely from CSS. */
.composer-slot img {
    position: absolute !important;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: var(--cmp-x, 50%) var(--cmp-y, 50%);
    transform: scale(var(--cmp-zoom, 1));
    transform-origin: var(--cmp-x, 50%) var(--cmp-y, 50%);
    display: block;
    max-width: none;
}
.composer-slot .badge { position:absolute; top:6px; left:6px; background:rgba(0,0,0,0.6); color:white; font-size:10px; font-weight:600; padding:2px 8px; border-radius:9999px; pointer-events:none; }
.composer-slot .controls { position:absolute; bottom:6px; right:6px; display:flex; gap:4px; }
.composer-slot .controls button { width:26px; height:26px; border-radius:4px; background:rgba(0,0,0,0.7); color:white; border:0; cursor:pointer; font-size:16px; font-weight:600; padding:0; line-height:1; }
.composer-slot .placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.6); font-size:12px; font-style:italic; pointer-events:none; }
.composer-library { display:grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap:6px; max-height:30vh; overflow-y:auto; padding:6px; background:rgb(249 250 251); border-radius:6px; }
.composer-library button { position:relative; display:block; aspect-ratio:1/1; width:100%; padding:0; border:0; background:rgb(228 228 231); border-radius:4px; overflow:hidden; cursor:pointer; transition:box-shadow .15s; box-shadow:0 0 0 1px rgb(229 231 235); }
.composer-library button.picked { box-shadow: 0 0 0 3px rgb(245 158 11); }
.composer-library button img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
[x-cloak] { display: none !important; }
