/* Price-book confirmation modal (builder chrome only) */

.pb-dialog {
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  max-width: min(420px, calc(100vw - 28px));
  width: 100%;
}

.pb-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
}

.pb-sheet {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.pb-head {
  position: relative;
  padding: 18px 44px 12px 18px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.pb-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1d1d1f;
}

.pb-head p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #6e6e73;
}

.pb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 980px;
  background: rgba(120, 120, 128, 0.12);
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pb-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.pb-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 12px 10px;
  text-align: left;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pb-card:hover {
  border-color: rgba(0, 113, 227, 0.35);
  background: #fff;
}

.pb-card.is-selected {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.06);
  box-shadow: inset 0 0 0 1px #0071e3;
}

.pb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pb-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #1d1d1f;
}

.pb-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0071e3;
}

.pb-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pb-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.35;
}

.pb-row dt {
  margin: 0;
  padding-top: 1px;
  color: #86868b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pb-row dd {
  margin: 0;
  min-width: 0;
  color: #1d1d1f;
  font-weight: 500;
}

.pb-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-person {
  display: grid;
  gap: 1px;
}

.pb-person + .pb-person {
  margin-top: 6px;
}

.pb-person-name {
  color: #1d1d1f;
  font-weight: 600;
}

.pb-person-detail {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 500;
}

.pb-rates {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #1d1d1f;
}
