/* SMAU FILE
 * Path: css/smau-bubbleEditor.css
 * Owns: the ON-PHONE MESSAGE EDITOR (js/creator/creator.bubble.js) — the
 * popover a creator gets by pressing and holding a bubble in the Messages app.
 * It sits BESIDE the bubble, never over it, because the point is watching the
 * message change while you change it. Creator sessions only.
 */

#smau-bubble-editor {
  position: absolute;
  inset: 0;
  z-index: 292;
  display: none;
}
#smau-bubble-editor[data-state="open"] { display: block; }

#smau-bubble-editor .bub-scrim {
  position: absolute;
  inset: 0;
  /* Barely there: the conversation behind must stay readable, because the
     whole feature is editing in context. */
  background: rgba(4, 6, 12, 0.25);
}

#smau-bubble-editor .bub-pop {
  position: absolute;
  left: 8px; right: 8px;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(22, 26, 38, 0.98);
  border: 1px solid rgba(255, 204, 102, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  color: #fff;
  overflow: hidden;
  animation: bubIn 160ms ease-out;
}
@keyframes bubIn {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #smau-bubble-editor .bub-pop { animation: none; }
}

#smau-bubble-editor .bub-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#smau-bubble-editor .bub-grip { opacity: 0.4; font-size: 13px; cursor: grab; }
#smau-bubble-editor .bub-title { flex: 1; font-size: 13px; font-weight: 800; }
#smau-bubble-editor .bub-pos { font-weight: 500; opacity: 0.5; font-size: 11px; }
#smau-bubble-editor .bub-close {
  width: 26px; height: 26px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8);
}

#smau-bubble-editor .bub-body {
  flex: 1;
  overflow-y: auto;
  padding: 9px 11px 4px;
  -webkit-overflow-scrolling: touch;
}

#smau-bubble-editor .bub-note {
  min-height: 14px;
  padding: 2px 12px 8px;
  font-size: 11px;
  color: #ffcc66;
}

#smau-bubble-editor .bub-warn {
  font-size: 12px; line-height: 1.5; opacity: 0.8; padding: 8px 2px 12px;
}

#smau-bubble-editor .bub-field { display: block; margin-bottom: 8px; }
#smau-bubble-editor .bub-field > span {
  display: block; font-size: 10.5px; opacity: 0.55; margin-bottom: 3px;
}
#smau-bubble-editor .bub-field input,
#smau-bubble-editor .bub-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  resize: vertical;
}
#smau-bubble-editor .bub-field input:focus,
#smau-bubble-editor .bub-field textarea:focus {
  outline: none;
  border-color: rgba(255, 204, 102, 0.8);
}

#smau-bubble-editor .bub-label {
  font-size: 10.5px; opacity: 0.55; margin: 6px 0 4px;
}
#smau-bubble-editor .bub-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
#smau-bubble-editor .bub-chip {
  padding: 5px 10px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
#smau-bubble-editor .bub-chip.on {
  border-color: #ffcc66; background: rgba(255, 204, 102, 0.16);
}

#smau-bubble-editor .bub-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; opacity: 0.85; margin-bottom: 8px;
}

#smau-bubble-editor .bub-ops {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}
#smau-bubble-editor .bub-btn {
  padding: 6px 10px; border-radius: 10px; cursor: pointer;
  font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.07); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
#smau-bubble-editor .bub-btn[disabled] { opacity: 0.35; cursor: default; }
#smau-bubble-editor .bub-btn.danger {
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 120, 120, 0.4);
}
