/* Compact shared control; layout adjustments are limited to owning editors. */
.shopao-image-model-choice { --model-ink:#27272a;--model-muted:#71717a;--model-border:#e4e4e7;--model-accent:#be4560;display:grid;gap:7px;width:100%;min-width:0;padding:8px 0 14px;box-sizing:border-box;color:var(--model-ink);font-family:inherit;font-size:14px;line-height:1.5; }
.shopao-image-model-label { font-size:13px;line-height:20px;font-weight:500;color:#52525b; }
.shopao-image-model-choice [data-image-model-trigger] { display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:8px 12px;border:1px solid var(--model-border);border-radius:10px;background:#fff;color:var(--model-ink);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;box-shadow:0 1px 2px rgb(24 24 27 / 3%); }
.shopao-image-model-choice [data-image-model-trigger]:hover { border-color:#a1a1aa;background:#fafafa; }
.shopao-image-model-choice [data-image-model-trigger][aria-expanded=true] { border-color:var(--model-accent); }
.shopao-image-model-choice strong { font-size:14px;line-height:22px;font-weight:600;white-space:nowrap; }
.shopao-image-model-choice [data-image-model-title] { min-width:0;overflow:hidden;text-overflow:ellipsis; }
.shopao-image-model-choice [data-catalog-model] [data-image-model-title] { white-space:normal;line-height:18px;overflow-wrap:anywhere; }
.shopao-image-model-logo { display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px; }
.shopao-image-model-logo img { display:block;width:24px!important;height:24px!important;max-width:none;object-fit:contain; }
.shopao-image-model-chevron { flex:0 0 6px;width:6px;height:6px;border:solid #71717a;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-4px 3px 0 auto; }
.shopao-image-model-menu { position:fixed;inset:auto;margin:0;padding:6px;border:1px solid #e4e4e7;border-radius:12px;background:#fff;color:#27272a;box-shadow:0 8px 32px rgb(24 24 27 / 12%);overflow:auto;box-sizing:border-box; }
.shopao-image-model-option { position:relative;display:flex;align-items:center;gap:12px;min-height:64px;padding:9px 10px;border-radius:8px;cursor:pointer;box-sizing:border-box; }
.shopao-image-model-option:hover { background:#fafafa; }
.shopao-image-model-option:has(input:checked) { background:#fcf2f4; }
.shopao-image-model-option input { position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden; }
.shopao-image-model-copy { display:grid;gap:2px;min-width:0; }
.shopao-image-model-copy > span { color:#71717a;font-size:12px;line-height:18px; }
[data-image-model-price] { color:#52525b;font-size:12px;line-height:18px;overflow-wrap:anywhere; }
.shopao-image-model-menu [data-model-id] { overflow-wrap:anywhere; }
.shopao-image-model-menu strong { white-space:normal;overflow-wrap:anywhere; }
.shopao-image-model-check { width:14px;height:14px;margin-left:auto; }
.shopao-image-model-option:has(input:checked) .shopao-image-model-check { width:7px;height:12px;margin-right:4px;border:solid #be4560;border-width:0 2px 2px 0;transform:rotate(45deg); }
.shopao-image-model-choice [data-image-model-trigger]:focus-visible,.shopao-image-model-option:has(input:focus-visible) { outline:2px solid #be4560;outline-offset:2px; }
.image-fusion-input-header:has(.shopao-image-model-choice) { height:auto!important;min-height:72px;flex-shrink:0;gap:16px; }
.image-fusion-input-header .shopao-image-model-choice { order:2;width:240px;max-width:60%;padding:0;flex-shrink:0; }
.creative-input-wrapper > .shopao-image-model-choice { width:240px; }
.shopao-image-model-react { width:240px;max-width:100%; }
.schema-field-wrapper-form .shopao-image-model-choice { order:10;padding:0;margin-bottom:96px;max-width:calc(100vw - 200px);flex-shrink:0; }
.shopao-image-model-repair { width:240px;max-width:calc(100vw - 189px);margin-left:84px;padding:12px 0; }
@media(min-width:768px){
 :is(.shopao-checkin-output,.shopao-plog-output,.shopao-ootd-output,.shopao-pet-output,.shopao-multioutfit-output):has(.shopao-image-model-react) { display:grid;grid-template-columns:240px minmax(0,1fr);align-items:end;column-gap:20px;row-gap:4px;padding:8px 0; }
 :is(.shopao-checkin-output,.shopao-plog-output,.shopao-ootd-output,.shopao-pet-output,.shopao-multioutfit-output) > .shopao-image-model-react { grid-row:1 / 3; }
 .shopao-image-model-react .shopao-image-model-choice { padding:0; }
}
@media(max-width:1279px){
 .shopao-image-model-react { width:100%; }
 .image-fusion-input-header:has(.shopao-image-model-choice) { flex-wrap:wrap;gap:10px; }
 .image-fusion-input-header .shopao-image-model-choice { width:100%;max-width:100%; }
 body[data-shopao-ai-operation="image_fusion"] .shopao-image-model-fusion-shell { position:fixed!important;left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;min-width:0!important;max-width:none!important;transform:none!important;z-index:40;padding:16px!important;max-height:70dvh;overflow:auto; }
 body[data-shopao-ai-operation="image_fusion"] .shopao-image-model-fusion-shell .view-layer,body[data-shopao-ai-operation="image_fusion"] .shopao-image-model-fusion-shell .image-fusion-input-normal { width:100%!important;min-width:0!important; }
 body[data-shopao-ai-operation="creative_scene"] .creative-scene-inner-input:has([data-shopao-image-model-host]) { position:fixed!important;left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;min-width:0!important;max-width:none!important;transform:none!important;z-index:40;max-height:70dvh;overflow:auto; }
 body[data-shopao-ai-operation="creative_scene"] .creative-scene-inner-input:has([data-shopao-image-model-host]) .creative-scene-inner-input-wrapper,body[data-shopao-ai-operation="creative_scene"] .creative-scene-inner-input:has([data-shopao-image-model-host]) .creative-input-wrapper { width:100%!important;min-width:0!important;box-sizing:border-box; }
 .creative-input-wrapper > .shopao-image-model-choice { width:100%; }
}
@media(min-width:768px) and (max-width:1279px){
 body[data-shopao-ai-operation="image_fusion"] .shopao-image-model-fusion-shell,body[data-shopao-ai-operation="creative_scene"] .creative-scene-inner-input:has([data-shopao-image-model-host]) { left:264px!important;right:16px!important; }
 .shopao-image-model-react { width:240px; }
 .image-fusion-input-header .shopao-image-model-choice,.creative-input-wrapper > .shopao-image-model-choice { width:240px;max-width:100%; }
}
@media(max-width:767px){
 .creation-dialog-edit-input-wrapper:has(.shopao-image-model-react) .creation-model-edit-input { max-height:min(420px,50dvh);overflow-y:auto;overscroll-behavior:contain; }
 .creation-dialog-edit-input-wrapper:has(.shopao-image-model-react) .creation-model-edit-input > * { flex-shrink:0; }
 .creation-dialog-edit-input-wrapper:has(.shopao-image-model-react) .aic-model-edit-footer { position:sticky;bottom:0;z-index:1;background:#fff;padding-top:8px; }
}

