/* 价格页（price.html、f_price_list.html；摆法在 app/f_price.py）。整页套 .fprice，只补几处：尺子上的字别叠、手机上小表别伸出卡片、按店一键撤、价目表列少时不撑宽 */

/* 尺子：字离左右边太近时靠边对齐，不再居中出界；日常价不画在尺上（写在下面那行字里），最低价的字不会再和它叠在一起 */
.fprice .fpr-rul span.l { transform: none; }
.fprice .fpr-rul span.r { transform: translateX(-100%); }

/* 价格卡上的按钮：一行放不下就换行 */
.fprice .pk-f .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fprice .pk-f > span { min-width: 0; overflow-wrap: anywhere; }
.fprice .pk { scroll-margin-top: 80px; }

/* 「先留着这个优惠」「查到原因了」「我处理不了」点开的小表：一样一行，提交按钮不被挤到边上 */
.fprice details.cant form.skipf, .fprice details.cant form.fpr-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fprice details.cant form.skipf .in[type=text], .fprice details.cant form.fpr-f .in[type=text] { flex: 1 1 100%; min-width: 0; }
.fprice details.cant form.skipf label { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; margin: 0; }
.fprice details.cant form.skipf input[type=date].in { flex: 1 1 auto; min-width: 0; width: auto; }

/* 按店一键撤（老板、大刘） */
.fprice .fpr-all { padding: 12px 16px; margin: 0 0 12px; }
.fprice .fpr-all > p { margin: 0 0 6px; font-size: 12.5px; color: var(--mute); }
.fprice .fpr-all > p b { color: var(--ink); }
.fprice .fpr-allr { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fprice .fpr-allr form { margin: 0; }
.fprice .fpr-allr .btn { padding: 6px 14px; font-size: 13px; }
.fprice .fpr-shops { margin: 0 0 14px; }
.fprice .fpr-fold { margin: 0 4px 10px; }
.fprice .fpr-others { margin-top: 14px; }
.fprice .fpr-others .pk-grid { margin-top: 10px; }
.fprice .fpr-mine a { text-decoration: underline; }

/* 价目表：只放自己几列时不按 6 列的宽度撑开 */
.fprice .fpr-chs { margin: 0 4px 8px; font-size: 12.5px; color: var(--mute); }
.fprice .fpr-chs a { color: var(--ink); text-decoration: underline; }
.fprice .fpr-few .tbl.fpl { min-width: 0; width: 100%; display: table; }
.fprice .fpr-few .fpl th:nth-child(2), .fprice .fpr-few .fpl td.d { width: 1%; min-width: 0; }
.fprice .fpl td.k, .fprice .fpl td.d { white-space: nowrap; }
.fprice .fpr-hid a { color: var(--ink); text-decoration: underline; }

/* 手机上：点开的小表不浮在上面（会伸出卡片），就地往下展开，占满这一行 */
@container main (max-width: 640px) {
  .fprice .pk-f { flex-direction: column; align-items: stretch; }
  .fprice .pk-f .acts { justify-content: flex-start; }
  .fprice details.cant[open] { flex-basis: 100%; width: 100%; }
  .fprice details.cant form, .fprice details.cant form.skipf, .fprice details.cant form.fpr-f { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}
@media (max-width: 640px) {
  .fprice .pk-f { flex-direction: column; align-items: stretch; }
  .fprice details.cant[open] { flex-basis: 100%; width: 100%; }
  .fprice details.cant form, .fprice details.cant form.skipf, .fprice details.cant form.fpr-f { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* 点开以后的按钮底色变灰：白字看不清，换成深色字 */
.fprice details.cant[open] > summary.btn.go { color: var(--ink); }
