/**
 * AucKit トップページ — 操作できるモック用の追加スタイル
 * ベースは _shared/mock-real.css。ここには「操作できる」状態のための
 * 追加分(クリック可能・スクロール枠・入力欄・選択状態)だけを定義する。
 */

/* ---- パネル内の操作モック領域 ---- */
.feat-pickup__demo:has([data-mock]) {
  padding: 12px 14px 14px;
}
/* :has() 非対応ブラウザ向けフォールバック */
.feat-pickup__demo [data-mock] { margin: 0 2px; }

/* ---- クリック可能なチップ・ボタン共通 ---- */
.mock-real__yauc-tpl-chip,
.mock-real__yauc-var-chip,
[data-mock-copy],
[data-mock-paste],
[data-mock-toggle],
[data-mock-reset] {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s, border-color .12s, transform .08s, box-shadow .12s;
}
.mock-real__yauc-tpl-chip:hover,
.mock-real__yauc-var-chip:hover {
  border-color: #0070f3;
  background: #f0f6ff;
}
.mock-real__yauc-tpl-chip:active,
.mock-real__yauc-var-chip:active { transform: translateY(1px); }
.mock-real__yauc-tpl-chip.is-flash,
.mock-real__yauc-var-chip.is-flash {
  background: #dbeafe;
  border-color: #0070f3;
}

/* ---- 取引メッセージ: 実際に入力できる textarea ---- */
.mock-real__yauc-msg-textarea {
  flex: 1;
  min-height: 96px;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
  font-size: 11.5px;
  line-height: 1.7;
  color: #333;
  resize: vertical;
  box-sizing: border-box;
}
.mock-real__yauc-msg-textarea:focus {
  outline: 2px solid #cfe2ff;
  border-color: #0070f3;
}
.mock-real__yauc-msg-textarea::placeholder { color: #aaa; }

/* ---- 出品/終了リスト: スクロールする枠 ---- */
.mock-scroll {
  max-height: 270px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid #eee;
}
.mock-scroll::-webkit-scrollbar { width: 9px; }
.mock-scroll::-webkit-scrollbar-thumb {
  background: #ccc; border-radius: 5px; border: 2px solid #fff;
}
.mock-scroll-hint {
  font-size: 10.5px;
  color: #888;
  text-align: center;
  padding: 5px 0 2px;
}
.mock-scroll-hint strong { color: #333; }

/* コンパクト切替: 既定は tall 行表示、is-compact で圧縮行表示 */
[data-mock-toggle-area] .mock-compact-rows { display: none; }
[data-mock-toggle-area].is-compact .mock-tall-rows { display: none; }
[data-mock-toggle-area].is-compact .mock-compact-rows { display: block; }

/* 圧縮行 */
.mock-crow {
  display: grid;
  grid-template-columns: 26px 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 11px;
  white-space: nowrap;
}
.mock-crow__thumb {
  width: 22px; height: 22px; border-radius: 3px;
  background: linear-gradient(135deg, #eef0f3, #dfe3e8);
}
.mock-crow__title {
  overflow: hidden; text-overflow: ellipsis; color: #1f1f1c;
}
.mock-crow__price { color: #c0392b; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-crow__sub { color: #6f6a62; font-variant-numeric: tabular-nums; }
.mock-crow__pill {
  font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.mock-crow__pill--need { background: #fde7d8; color: #b9651b; }
.mock-crow__pill--done { background: #e3f5ea; color: #1f9d57; }
.mock-crow__pill--live { background: #e7f0fd; color: #0058c7; }
.mock-crow__pill--soon { background: #fde7d8; color: #b9651b; }
.mock-crow--need { box-shadow: inset 3px 0 0 #ff7a4d; }
.mock-crow--done { box-shadow: inset 3px 0 0 #1f9d57; }
.mock-crow--live { box-shadow: inset 3px 0 0 #0070f3; }

/* ---- 入札者ID / アカウント識別: ON/OFF切替 ---- */
[data-mock-toggle-area] .mock-reveal { display: none; }
[data-mock-toggle-area].is-on .mock-reveal { display: inline; }
[data-mock-toggle-area] .mock-mask { display: inline; }
[data-mock-toggle-area].is-on .mock-mask { display: none; }

.mock-bid-id {
  font-weight: 700; color: #0058c7;
  background: #eef4ff; border-radius: 3px; padding: 1px 6px;
}
.mock-bid-rep { color: #6f6a62; font-size: 10.5px; margin-left: 6px; }

/* ---- アカウント識別: 検索結果カード(実画面に忠実) ---- */
.mock-hlcard {
  display: grid;
  grid-template-columns: 70px 1fr 130px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  align-items: center;
  transition: background-color .2s, box-shadow .2s;
}
.mock-hlcard__thumb {
  width: 70px; height: 70px; border-radius: 3px;
  background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
}
.mock-hlcard__body { min-width: 0; }
.mock-hlcard__cat { font-size: 10px; color: #888; margin-bottom: 2px; }
.mock-hlcard__name {
  font-size: 12px; color: #1f3996; font-weight: 500; line-height: 1.5;
  margin-bottom: 4px;
}
.mock-hlcard__price { font-size: 11.5px; color: #555; }
.mock-hlcard__price strong { color: #cc0000; font-size: 13px; }
.mock-hlcard__meta { font-size: 10.5px; color: #888; margin-top: 2px; }
.mock-hlcard__side { text-align: right; }
.mock-hlcard__seller { font-size: 10.5px; color: #555; }
.mock-hlcard__rep { font-size: 10.5px; color: #f5a623; margin-top: 2px; }
.mock-hlcard__from { font-size: 10px; color: #999; margin-top: 2px; }

/* 自分アカウントの行ハイライト(適用後のみ・行全体を塗る) */
.mock-hl-tag {
  display: none; font-size: 10px; font-weight: 700;
}
[data-mock-toggle-area].is-on .mock-hl-row--mine-a {
  background: #fff3d0;
  box-shadow: inset 4px 0 0 #f0a500;
}
[data-mock-toggle-area].is-on .mock-hl-row--mine-b {
  background: #e2f3ea;
  box-shadow: inset 4px 0 0 #1f9d57;
}
[data-mock-toggle-area].is-on .mock-hl-row--mine-a .mock-hl-tag { display: inline; color: #b9651b; }
[data-mock-toggle-area].is-on .mock-hl-row--mine-b .mock-hl-tag { display: inline; color: #1f9d57; }

/* ---- 追跡URL生成: 入力できるフォーム ---- */
.mock-track-select,
.mock-track-input {
  font: inherit; font-size: 11.5px;
  border: 1px solid #c8c8c8; border-radius: 3px;
  padding: 4px 8px; color: #333; background: #fff;
}
.mock-track-input { width: 150px; }
.mock-track-select:focus,
.mock-track-input:focus { outline: 2px solid #cfe2ff; border-color: #0070f3; }

/* 貼り付け先フィールド */
.mock-paste-field {
  font-size: 11.5px; padding: 4px 8px;
  border: 1px solid #c8c8c8; border-radius: 3px; background: #fff;
  transition: background-color .25s, border-color .25s;
}
.mock-paste-field.is-empty { color: #aaa; }
.mock-paste-field.is-filled { background: #eef4ff; border-color: #0070f3; color: #1f1f1c; }

/* 共通ボタンの押下後・無効状態 */
[data-mock-copy].is-done {
  background: #0f6e56;
}
[data-mock-paste] {
  background: linear-gradient(135deg, #ff8a4c, #ef5f2e);
  color: #fff; border: none; border-radius: 4px;
  padding: 7px 14px; font-size: 11.5px; font-weight: 700;
}
[data-mock-paste]:disabled {
  background: #d8b3a4; cursor: not-allowed;
}
[data-mock-toggle] {
  background: #fff; border: 1px solid #0070f3; color: #0058c7;
  border-radius: 5px; padding: 5px 13px; font-size: 11px; font-weight: 700;
}
[data-mock-toggle].is-on {
  background: #0070f3; color: #fff;
}

/* パネル下部の操作補助 */
.mock-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-top: 10px;
}
[data-mock-reset] {
  background: none; border: none; color: #6f6a62;
  font-size: 11px; text-decoration: underline; text-underline-offset: 3px;
}
[data-mock-reset]:hover { color: #1f1f1c; }
.mock-sample-note { font-size: 10px; color: #9b958c; }

/* 操作ヒント */
.mock-try-hint {
  font-size: 11px; color: #0058c7; font-weight: 700;
  background: #eef4ff; border-radius: 5px;
  padding: 5px 10px; margin: 8px 0; display: inline-block;
}

@media (max-width: 640px) {
  .mock-scroll { max-height: 240px; }
  .mock-crow { grid-template-columns: 22px 1fr auto; font-size: 10.5px; }
  .mock-crow__sub:nth-of-type(2) { display: none; }
  .mock-track-input { width: 120px; }
}
