/* 寵物彩虹橋 · 「編輯牠的卡片」視窗裡的「一起上窗台的毛孩」（小窗台多相框，2026-11-26）
 * HTML：_edit_modal.php 的 #brFramesField；JS：bridge-frames.js。牆（index.php）與小窗台（room.php）都載入。
 * 獨立成新檔：bridge.css 不動（上傳時只傳自己的檔案）。配色沿用視窗的 --br-* 變數。 */
.br-frames-field[hidden], .br-frames-form[hidden], .br-frames-preview[hidden] { display: none !important; }

.br-frames { display: flex; flex-direction: column; gap: 0.45rem; }
.br-fr-row {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.5rem; border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.br-fr-thumb {
  flex: 0 0 auto; width: 3rem; height: 3.5rem; border-radius: 0.35rem; overflow: hidden; background: #e8cfa6;
  border: 3px solid #d8b585; display: flex; align-items: center; justify-content: center; color: #8a5a2e;
}
.br-fr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.br-fr-thumb .material-icons { font-size: 1.3rem; }
.br-fr-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.br-fr-txt strong { font-size: 0.95rem; color: var(--br-gold-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-fr-txt span { font-size: 0.78rem; color: var(--br-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-fr-acts { flex: 0 0 auto; display: flex; gap: 0.2rem; }
.br-fr-btn {
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--br-text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.br-fr-btn:hover { background: rgba(255, 255, 255, 0.18); }
.br-fr-btn[disabled] { opacity: 0.3; cursor: default; }
.br-fr-btn .material-icons { font-size: 1.15rem; }

.br-fr-add {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.6rem 0.75rem; border-radius: 0.8rem; font: inherit; font-size: 0.9rem;
  color: var(--br-gold-soft); background: transparent; border: 1px dashed var(--br-gold); cursor: pointer; text-align: left;
}
.br-fr-add:hover { background: rgba(255, 255, 255, 0.07); }
.br-fr-add[disabled] { opacity: 0.5; cursor: default; }
.br-fr-add .material-icons { font-size: 1.2rem; }

.br-frames-form {
  margin-top: 0.5rem; padding: 0.75rem; border-radius: 0.9rem; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.12);
}

.br-frames-preview { display: block; width: 6rem; height: 7rem; margin: 0 auto 0.6rem; object-fit: cover; border-radius: 0.35rem; border: 4px solid #d8b585; background: #e8cfa6; }
.br-frames-in { display: block; margin-bottom: 0.55rem; }
.br-frames-in span { display: block; margin-bottom: 0.25rem; font-size: 0.85rem; color: var(--br-text-dim); }
.br-frames-in span b { color: var(--br-flame); font-weight: 400; }
.br-frames-in input, .br-frames-in textarea { width: 100%; box-sizing: border-box; }
.br-frames-form-btns { display: flex; gap: 0.5rem; }
.br-frames-ok, .br-frames-cancel {
  flex: 1 1 0; height: 2.6rem; border-radius: 99rem; font: inherit; font-size: 0.92rem; cursor: pointer;
}
.br-frames-ok { border: 0; background: var(--br-gold); color: #2a1a0a; font-weight: 600; }
.br-frames-ok:hover { background: var(--br-gold-soft); }
.br-frames-cancel { border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--br-text); }
.br-frames-cancel:hover { background: rgba(255, 255, 255, 0.08); }
.br-frames-ok[disabled], .br-frames-cancel[disabled] { opacity: 0.5; cursor: default; }

.br-frames-field button:focus, .br-frames-field button:focus-visible { outline: none; }
.br-frames-field button { -webkit-tap-highlight-color: transparent; }


/* 「看範例」連結（編輯視窗、建立表單；範例窗台布置好才出現） */
.br-frames-example { color: var(--br-gold-soft); font-weight: 600; white-space: nowrap; }
.br-frames-example::after { content: " ›"; }
.br-frames-example:hover { color: var(--br-gold); }
.br-frames-tip { margin-top: 0.5rem; }

/* 離開的日期＋生日並排（窄螢幕上下排） */
.br-frames-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 420px) { .br-frames-row2 { grid-template-columns: 1fr; gap: 0; } }
