/* BALELE Pin Hunt frontend CSS. Intentionally scoped under .bph-page only. */
.bph-page {
  --bph-orange: #ff4b0b;
  --bph-orange-soft: #fff0e7;
  --bph-ink: #171923;
  --bph-muted: #7b8190;
  --bph-line: #eceff4;
  --bph-card: #ffffff;
  min-height: 72vh;
  background: #f7f8fb;
  color: var(--bph-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 32px 18px 96px;
  box-sizing: border-box;
}
.bph-page *, .bph-page *::before, .bph-page *::after { box-sizing: border-box; }
.bph-shell { width: min(980px, 100%); margin: 0 auto; }
.bph-hero, .bph-page-head { margin-bottom: 20px; }
.bph-kicker { display: inline-flex; color: var(--bph-orange); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; }
.bph-page h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.bph-page h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.bph-page p { color: var(--bph-muted); line-height: 1.55; }
.bph-card { background: var(--bph-card); border: 1px solid var(--bph-line); border-radius: 22px; box-shadow: 0 18px 45px rgba(30,35,50,.08); padding: 22px; }
.bph-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--bph-line); padding-bottom: 14px; margin-bottom: 18px; }
.bph-card-head p { margin: 4px 0 0; font-size: 13px; }
.bph-card-head > span { color: var(--bph-muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bph-form label { display: grid; gap: 7px; font-weight: 800; margin: 0 0 14px; }
.bph-form label b { color: var(--bph-orange); }
.bph-form input, .bph-form textarea { width: 100%; border: 1px solid #dfe3ea; border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--bph-ink); background: #f9fafc; }
.bph-form input[type="file"] { padding: 12px; background: #fff; }
.bph-form input:focus, .bph-form textarea:focus { outline: 2px solid rgba(255,75,11,.18); border-color: var(--bph-orange); }
.bph-upload-box em { font-style: normal; font-size: 12px; color: var(--bph-muted); }
.bph-item { border: 1px dashed #dfe3ea; border-radius: 18px; padding: 16px; background: #fcfcfd; margin-bottom: 14px; }
.bph-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bph-item-head strong { font-size: 15px; }
.bph-remove-item { border: 0; background: transparent; color: #e5484d; font-weight: 800; cursor: pointer; }
.bph-email-row { margin-top: 18px !important; }
.bph-primary, .bph-primary-link, .bph-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; min-height: 44px; padding: 0 18px; text-decoration: none; border: 0; font-weight: 900; cursor: pointer; }
.bph-primary, .bph-primary-link { background: var(--bph-orange); color: #fff; }
.bph-secondary { background: var(--bph-orange-soft); color: var(--bph-orange); }
.bph-primary:disabled, .bph-secondary:disabled { opacity: .55; cursor: not-allowed; }
.bph-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.bph-form-status { color: var(--bph-muted); font-weight: 700; }
.bph-form-status.is-error { color: #c62828; }
.bph-form-status.is-ok { color: #2e7d32; }
.bph-footnote, .bph-muted { font-size: 13px; color: var(--bph-muted); }
.bph-notice { padding: 12px 14px; border-radius: 16px; margin: 0 0 16px; background: #fff8df; border: 1px solid #f0d88b; }
.bph-notice-success { background: #effaf2; border-color: #b7e2bf; }
.bph-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bph-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 12px; }
.bph-tabs button { border: 0; border-radius: 999px; background: #fff; color: var(--bph-muted); padding: 10px 14px; font-weight: 900; white-space: nowrap; }
.bph-tabs button.is-active { background: var(--bph-orange); color: #fff; }
.bph-empty { text-align: left; }
.bph-request-list { display: grid; gap: 14px; }
.bph-request-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: inherit; text-decoration: none; }
.bph-request-card h2 { margin: 6px 0 4px; }
.bph-request-card p { margin: 0; font-size: 13px; }
.bph-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; background: var(--bph-orange-soft); color: var(--bph-orange); }
.bph-request-thumbs { display: flex; justify-content: flex-end; min-width: 120px; }
.bph-request-thumbs span { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bph-line); background: #f6f7f9; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; margin-left: -8px; font-size: 10px; font-weight: 900; color: var(--bph-muted); }
.bph-request-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bph-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.bph-back-link { color: var(--bph-muted); font-weight: 900; text-decoration: none; }
.bph-hunt-items { display: grid; gap: 12px; margin-top: 18px; }
.bph-hunt-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--bph-line); border-radius: 16px; }
.bph-hunt-thumb { width: 82px; height: 82px; border-radius: 14px; background: #f5f6f8; border: 1px solid var(--bph-line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--bph-muted); font-size: 12px; font-weight: 800; }
.bph-hunt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bph-hunt-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.bph-hunt-item small { color: var(--bph-muted); font-weight: 800; }
.bph-hunt-item p { margin: 8px 0 0; font-size: 13px; }
.bph-next-step { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bph-orange-soft); }
.bph-next-step p { margin: 4px 0 0; }
@media (max-width: 768px) {
  .bph-page { padding: 22px 14px 110px; }
  .bph-card { border-radius: 18px; padding: 18px; }
  .bph-page-head { align-items: flex-start; flex-direction: column; }
  .bph-primary-link { width: 100%; }
  .bph-card-head { flex-direction: column; gap: 8px; }
  .bph-submit-row .bph-primary { width: 100%; }
  .bph-request-card { align-items: flex-start; flex-direction: column; }
  .bph-request-thumbs { justify-content: flex-start; }
}


/* Phase 9B1: Pin Hunt page scroll isolation.
   Some BALELE wall pages intentionally lock body scrolling; Pin Hunt is a normal form page. */
html.bph-html-active,
html.bph-html-active body.bph-active-page,
body.bph-active-page {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: auto !important;
}
body.bph-active-page .bph-page {
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
}
body.bph-active-page .bph-shell,
body.bph-active-page .bph-card,
body.bph-active-page .bph-form,
body.bph-active-page .bph-item-list {
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 768px) {
  body.bph-active-page .bph-page { padding-bottom: 160px; }
  .bph-item { scroll-margin-top: 18px; }
}

/* Phase 9C: My Pin Hunts management */
.bph-page .bph-tabs a { display:inline-flex; align-items:center; gap:6px; border:0; border-radius:999px; background:#fff; color:var(--bph-muted); padding:10px 14px; font-weight:900; white-space:nowrap; text-decoration:none; }
.bph-page .bph-tabs a.is-active { background:var(--bph-orange); color:#fff; }
.bph-page .bph-tabs a em { font-style:normal; font-size:11px; min-width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:#f2f3f6; color:inherit; opacity:.9; }
.bph-page .bph-tabs a.is-active em { background:rgba(255,255,255,.22); }
.bph-summary-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 14px; }
.bph-summary-row div { background:#fff; border:1px solid var(--bph-line); border-radius:16px; padding:14px 10px; box-shadow:0 12px 30px rgba(30,35,50,.05); }
.bph-summary-row strong { display:block; color:var(--bph-orange); font-size:22px; line-height:1; }
.bph-summary-row span { display:block; margin-top:7px; font-size:11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; color:var(--bph-muted); }
.bph-progress-card, .bph-update-card, .bph-note-card { border:1px solid var(--bph-line); border-radius:16px; padding:14px; margin:14px 0; background:#fff; }
.bph-progress-card { background:linear-gradient(135deg,#fff,#fff6f0); border-color:#ffd9c7; }
.bph-progress-card strong, .bph-update-card strong, .bph-note-card strong { display:block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--bph-muted); margin-bottom:5px; }
.bph-progress-card span { display:inline-flex; border-radius:999px; padding:6px 10px; font-weight:900; background:var(--bph-orange); color:#fff; margin-bottom:8px; }
.bph-progress-card p, .bph-update-card p, .bph-note-card p { margin:0; }
.bph-update-card { border-color:#ffe0cc; background:#fffaf6; }
.bph-detail-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.bph-card-update { color:var(--bph-orange) !important; font-weight:800; margin-top:6px !important; }
@media (max-width: 720px) {
  .bph-summary-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bph-page-head { align-items:flex-start; }
  .bph-page-head .bph-primary-link { min-height:38px; padding:0 13px; font-size:13px; }
}

/* Phase 9C1: simplified status UI + softer button typography */
.bph-page {
  --bph-orange: #ff5a1f;
  --bph-orange-soft: #fff3ec;
  --bph-ink: #20232d;
  --bph-muted: #818796;
}
.bph-page .bph-kicker,
.bph-page .bph-card-head > span,
.bph-page .bph-summary-row span,
.bph-page .bph-progress-card strong,
.bph-page .bph-update-card strong,
.bph-page .bph-note-card strong {
  font-weight: 600;
  letter-spacing: .05em;
}
.bph-page h1 {
  font-weight: 700;
  letter-spacing: -.025em;
}
.bph-page h2,
.bph-request-card h2,
.bph-hunt-item strong {
  font-weight: 650;
}
.bph-form label,
.bph-form-status,
.bph-item-head strong,
.bph-hunt-item small,
.bph-back-link,
.bph-status,
.bph-remove-item,
.bph-request-thumbs span,
.bph-card-update {
  font-weight: 600 !important;
}
.bph-primary,
.bph-primary-link,
.bph-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}
.bph-primary,
.bph-primary-link {
  background: #fff2eb;
  color: #f05a24;
  border: 1px solid #ffd8c5;
}
.bph-primary:hover,
.bph-primary-link:hover {
  background: #ffe8dc;
  color: #de4816;
}
.bph-secondary {
  background: #f7f8fa;
  color: #4d5565;
  border: 1px solid #e6e9ef;
}
.bph-secondary:hover {
  background: #f0f2f5;
  color: #2d3440;
}
.bph-submit-row .bph-primary {
  background: #ff6a2e;
  color: #fff;
  border-color: #ff6a2e;
  border-radius: 18px;
}
.bph-page .bph-tabs {
  gap: 10px;
}
.bph-page .bph-tabs a {
  border: 1px solid #edf0f4;
  background: #fff;
  color: #7d8491;
  padding: 8px 13px;
  font-weight: 600;
  border-radius: 14px;
}
.bph-page .bph-tabs a.is-active {
  background: #fff1e9;
  color: #f05a24;
  border-color: #ffd7c2;
}
.bph-page .bph-tabs a em {
  background: #f5f6f8;
  font-weight: 600;
}
.bph-page .bph-tabs a.is-active em {
  background: rgba(255, 106, 46, .12);
  color: #f05a24;
}
.bph-status {
  padding: 4px 9px;
  border: 1px solid #ffd7c2;
  background: #fff3ec;
  color: #f05a24;
}
.bph-status-pending { background: #f6f7f9; border-color: #e8ebf0; color: #737b89; }
.bph-status-found { background: #fff3ec; border-color: #ffd7c2; color: #f05a24; }
.bph-status-orders { background: #eef8f1; border-color: #cfead6; color: #2f7f45; }
.bph-status-closed { background: #f5f5f6; border-color: #e1e2e5; color: #777d87; }
.bph-summary-row div {
  box-shadow: 0 8px 24px rgba(30,35,50,.045);
  border-radius: 14px;
}
.bph-summary-row strong {
  font-size: 20px;
  font-weight: 650;
}
.bph-progress-card span {
  background: #fff1e9;
  color: #f05a24;
  border: 1px solid #ffd7c2;
  font-weight: 600;
}
.bph-progress-card small {
  display: block;
  margin-top: 8px;
  color: var(--bph-muted);
  font-size: 12px;
}
.bph-progress-pending { background: #fff; border-color: var(--bph-line); }
.bph-progress-found { background: #fffaf7; border-color: #ffd7c2; }
.bph-progress-orders { background: #f7fff9; border-color: #cfead6; }
.bph-progress-closed { background: #fafafa; border-color: #e1e2e5; }
@media (max-width: 768px) {
  .bph-page h1 { font-size: 28px; }
  .bph-page h2 { font-size: 16px; }
  .bph-page p { font-size: 13px; }
  .bph-page .bph-tabs a { padding: 8px 12px; font-size: 13px; }
  .bph-primary, .bph-primary-link, .bph-secondary { min-height: 38px; font-size: 13px; }
}

/* Phase 9D: actual photos + basic quote display. Still scoped to .bph-page only. */
.bph-page .bph-actual-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 2px;
  margin-top: 8px;
}
.bph-page .bph-actual-photos a {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bph-line);
  background: #f7f8fb;
}
.bph-page .bph-actual-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bph-page .bph-item-quote {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8f3;
  border: 1px solid #ffe1d0;
}
.bph-page .bph-item-quote span { display: block; color: var(--bph-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bph-page .bph-item-quote strong { display: block; color: var(--bph-orange); font-size: 18px; margin-top: 2px; }
.bph-page .bph-item-quote small { display: block; color: var(--bph-muted); font-size: 12px; margin-top: 2px; }
.bph-page .bph-item-quote p { margin: 8px 0 0; font-size: 12px; color: var(--bph-muted); }
.bph-page .bph-next-step button[disabled] { opacity: .65; cursor: not-allowed; }

/* Phase 9D1: actual photo in-page gallery. Loaded only on Pin Hunt pages. */
.bph-page .bph-gallery-photo { cursor: zoom-in; }
body.bph-active-page.bph-gallery-open { overflow: hidden !important; }
body.bph-active-page .bph-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
body.bph-active-page .bph-gallery-modal.is-open { display: flex; }
body.bph-active-page .bph-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 22, .72);
  backdrop-filter: blur(4px);
}
body.bph-active-page .bph-gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 96vw);
  min-height: 260px;
  max-height: 88dvh;
  border-radius: 18px;
  background: #11131a;
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.bph-active-page .bph-gallery-image {
  display: block;
  max-width: 100%;
  max-height: calc(88dvh - 54px);
  object-fit: contain;
}
body.bph-active-page .bph-gallery-close,
body.bph-active-page .bph-gallery-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #20232d;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
body.bph-active-page .bph-gallery-close { top: 10px; right: 10px; }
body.bph-active-page .bph-gallery-prev { left: 10px; top: 50%; transform: translateY(-50%); }
body.bph-active-page .bph-gallery-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.bph-active-page .bph-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(17,19,26,0), rgba(17,19,26,.86));
  color: #fff;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 768px) {
  body.bph-active-page .bph-gallery-modal { padding: 10px; }
  body.bph-active-page .bph-gallery-dialog { width: 96vw; max-height: 84dvh; border-radius: 16px; }
  body.bph-active-page .bph-gallery-image { max-height: calc(84dvh - 48px); }
}

/* Phase 9E: buyer quote acceptance */
.bph-accept-box {
  display: grid;
  gap: 8px;
  align-items: start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ffe0cc;
  border-radius: 16px;
  background: #fffaf6;
}
.bph-accept-box > span {
  font-size: 12px;
  color: var(--bph-muted);
  font-weight: 600;
}
.bph-accept-box > strong {
  color: #f05a24;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}
.bph-accept-box > small {
  color: var(--bph-muted);
  font-size: 12px;
  line-height: 1.45;
}
.bph-accept-box .bph-primary {
  width: max-content;
  min-height: 38px;
  border-radius: 14px;
  background: #ff6a2e;
  border-color: #ff6a2e;
  color: #fff;
}
.bph-accept-status { margin-top: 4px; }
@media (max-width: 768px) {
  .bph-accept-box .bph-primary { width: 100%; }
}

/* Phase 9E1: Pin Hunt status timeline. Scoped to Pin Hunt frontend only. */
.bph-status-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0;
  padding: 16px 12px 14px;
  border: 1px solid var(--bph-line);
  border-radius: 16px;
  background: #fff;
}
.bph-status-timeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 29px;
  height: 3px;
  border-radius: 999px;
  background: #e1e4ea;
}
.bph-status-timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #9399a5;
}
.bph-status-timeline-step span {
  display: inline-flex;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #dfe3ea;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dfe3ea;
}
.bph-status-timeline-step strong,
.bph-status-timeline-step em { display: block; }
.bph-status-timeline-step strong {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: inherit;
}
.bph-status-timeline-step em {
  margin-top: 3px;
  font-size: 10px;
  font-style: normal;
  color: #8d94a1;
}
.bph-status-timeline-step.is-active span {
  background: #00a878;
  box-shadow: 0 0 0 1px #00a878;
}
.bph-status-timeline-step.is-active strong { color: #20232d; }
.bph-status-timeline-step.is-current span {
  background: #6f5ef6;
  box-shadow: 0 0 0 2px rgba(111,94,246,.18);
}
.bph-status-timeline-step.is-current strong { color: #6f5ef6; }
@media (max-width: 768px) {
  .bph-status-timeline { padding: 14px 8px 12px; }
  .bph-status-timeline-step strong { font-size: 11px; }
  .bph-status-timeline-step em { display:none; }
}

/* Phase 9E2: payment-aware Pin Hunt timeline polish. */
.bph-status-timeline-paid {
  border-color: #cfead6;
  background: linear-gradient(180deg, #ffffff, #f7fff9);
}
.bph-status-timeline-paid::before {
  background: linear-gradient(90deg, #00a878, #2fbb71);
}
.bph-status-timeline-paid .bph-status-timeline-step.is-active span,
.bph-status-timeline-paid .bph-status-timeline-step.is-current span {
  background: #00a878;
  box-shadow: 0 0 0 1px #00a878, 0 0 0 4px rgba(0,168,120,.12);
}
.bph-status-timeline-paid .bph-status-timeline-step.is-active strong,
.bph-status-timeline-paid .bph-status-timeline-step.is-current strong {
  color: #188553;
}
.bph-status-timeline-closed .bph-status-timeline-step.is-current span {
  background: #8f96a3;
  box-shadow: 0 0 0 2px rgba(143,150,163,.16);
}
.bph-status-timeline-closed .bph-status-timeline-step.is-current strong { color: #5f6673; }

/* Phase 9E3: quote quantity selection and correct multi-item total. Scoped to Pin Hunt frontend only. */
.bph-page .bph-quote-selection-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.bph-page .bph-quote-selection-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ffe4d4;
  border-radius: 14px;
  background: #fff;
}
.bph-page .bph-quote-selection-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bph-line);
  background: #f7f8fb;
  display: grid;
  place-items: center;
  color: var(--bph-muted);
  font-size: 11px;
  font-weight: 700;
}
.bph-page .bph-quote-selection-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bph-page .bph-quote-selection-main { min-width: 0; }
.bph-page .bph-quote-selection-main strong {
  display: block;
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--bph-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bph-page .bph-quote-selection-main small {
  display: block;
  color: var(--bph-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.bph-page .bph-quote-selection-qty label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bph-muted);
  font-size: 11px;
  font-weight: 700;
}
.bph-page .bph-quote-selection-qty select {
  min-width: 58px;
  height: 32px;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #fff;
  color: var(--bph-text);
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
}
.bph-page .bph-fixed-qty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f6f7f9;
  color: var(--bph-muted);
  font-size: 12px;
  font-weight: 700;
}
.bph-page .bph-quote-selection-line-total {
  color: #f05a24;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.bph-page .bph-quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #ffd9c6;
  color: var(--bph-muted);
  font-size: 13px;
  font-weight: 700;
}
.bph-page .bph-quote-total-row strong {
  color: #f05a24;
  font-size: 20px;
  font-weight: 750;
}
@media (max-width: 768px) {
  .bph-page .bph-quote-selection-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .bph-page .bph-quote-selection-thumb { width: 46px; height: 46px; }
  .bph-page .bph-quote-selection-line-total {
    grid-column: 2 / 4;
    justify-self: end;
    margin-top: -4px;
  }
  .bph-page .bph-quote-selection-main strong { font-size: 13px; }
}

/* Phase 9E5: buyer selects quoted pins by checkbox instead of remove/add-back buttons. */
.bph-page .bph-quote-selection-item {
  grid-template-columns: 28px 52px minmax(0, 1fr) auto auto;
}
.bph-page .bph-quote-selection-item.is-removed {
  opacity: .68;
  background: #f8f9fb;
  border-color: #e9edf3;
}
.bph-page .bph-quote-selection-item.is-removed .bph-quote-selection-thumb,
.bph-page .bph-quote-selection-item.is-removed .bph-quote-selection-qty,
.bph-page .bph-quote-selection-item.is-removed .bph-quote-selection-line-total {
  filter: grayscale(1);
}
.bph-page .bph-quote-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.bph-page .bph-quote-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bph-page .bph-quote-check span {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid #ffc4a6;
  background: #fff;
  box-shadow: 0 2px 7px rgba(240, 90, 36, .08);
  position: relative;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bph-page .bph-quote-check input:checked + span {
  background: #ff6a2e;
  border-color: #ff6a2e;
  box-shadow: 0 4px 12px rgba(255, 106, 46, .18);
}
.bph-page .bph-quote-check input:checked + span::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bph-page .bph-quote-selection-main em {
  display: block;
  margin-top: 3px;
  color: #8f96a3;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}
.bph-page .bph-accept-box .bph-primary:disabled {
  opacity: .48;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .bph-page .bph-quote-selection-item {
    grid-template-columns: 24px 46px minmax(0, 1fr) auto;
  }
  .bph-page .bph-quote-check { width: 22px; height: 22px; }
  .bph-page .bph-quote-check span { width: 18px; height: 18px; border-radius: 6px; }
  .bph-page .bph-quote-selection-qty {
    grid-column: 4 / 5;
    justify-self: end;
  }
  .bph-page .bph-quote-selection-line-total {
    grid-column: 3 / 5;
    justify-self: end;
    margin-top: 0;
  }
}
