/* Extends the shared rate-dialog chrome with a selectable PPOB catalog. */
.ppob-dialog { width: min(760px, calc(100% - 48px)); }
.ppob-customer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rate-line); }
.ppob-customer > div { min-width: 0; }
.ppob-customer strong { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ppob-edit { min-height: 40px; padding: 8px 12px; border: 1px solid var(--rate-line); border-radius: 8px; color: var(--rate-blue); background: var(--white); font: 600 12px/20px var(--font); cursor: pointer; }
.ppob-edit:hover { background: #f3f8ff; }
.ppob-edit:active { transform: scale(0.98); }
.ppob-demo-note { color: var(--rate-muted); font-size: 12px; line-height: 19px; }
.ppob-products { min-width: 0; margin: 0; padding: 0; border: 0; }
.ppob-product-grid, .ppob-loading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ppob-product { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid #cfd7e1; border-radius: 10px; cursor: pointer; transition: background 160ms, border-color 160ms; }
.ppob-product:hover { border-color: #7c9fc7; background: #f8fbff; }
.ppob-product:has(:checked) { border-color: var(--rate-blue); background: #edf5ff; box-shadow: inset 0 0 0 1px var(--rate-blue); }
.ppob-product:has(:focus-visible) { outline: 2px solid var(--rate-blue); outline-offset: 3px; }
.ppob-product:has(:disabled) { background: var(--gray-50); border-color: var(--rate-line); cursor: not-allowed; }
.ppob-product-name { display: block; padding-right: 26px; color: var(--rate-muted); font-size: 14px; line-height: 21px; font-weight: 500; overflow-wrap: anywhere; }
.ppob-product:has(:checked) .ppob-product-name, .ppob-product:has(:checked) .ppob-agent-price { color: #4e6d94; }
.ppob-product-price { display: block; margin-top: 8px; color: var(--heading); font-size: 22px; line-height: 29px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.ppob-product-price + .ppob-agent-price { margin-top: 3px; }
.ppob-agent-price { color: var(--rate-muted); font-size: 12px; line-height: 19px; font-variant-numeric: tabular-nums; }
.ppob-product-commission { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce6f2; color: #245d9f; font-size: 12px; line-height: 19px; }
.ppob-product-commission strong { font-size: 15px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ppob-check { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #cfd7e1; border-radius: 50%; background: var(--white); }
.ppob-check svg { width: 13px; height: 13px; visibility: hidden; }
.ppob-product:has(:checked) .ppob-check { border-color: var(--rate-blue); color: var(--white); background: var(--rate-blue); }
.ppob-product:has(:checked) .ppob-check svg { visibility: visible; }
.ppob-unavailable { display: block; margin-top: 12px; color: var(--rate-muted); font-size: 12px; }
.ppob-loading > div { height: 184px; }
.ppob-footer { flex-direction: column; gap: 12px; }
.ppob-footer .ppob-cta { flex: auto; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 18px; font-size: 14px; }
.ppob-footer .ppob-cta svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
#panel-ppob .field:has([aria-invalid="true"]) .field-box { border-color: #b42332; }
@media (max-width: 700px) {
  .ppob-dialog { width: calc(100% - 24px); }
  .ppob-dialog-body { gap: 18px; }
  .ppob-customer { padding-bottom: 16px; }
  .ppob-product-grid, .ppob-loading { gap: 12px; }
  .ppob-product { padding: 14px 12px; }
  .ppob-product-name { padding-right: 18px; font-size: 12px; line-height: 19px; }
  .ppob-check { top: 15px; right: 11px; width: 16px; height: 16px; }
  .ppob-check svg { width: 11px; height: 11px; }
  .ppob-product-price { font-size: 19px; line-height: 26px; }
  .ppob-agent-price { font-size: 11px; line-height: 18px; }
  .ppob-product-commission { flex-direction: column; align-items: flex-start; margin-top: 12px; padding-top: 10px; font-size: 11px; line-height: 17px; }
  .ppob-product-commission strong { font-size: 14px; line-height: 21px; }
  .ppob-footer .ppob-cta { gap: 12px; padding: 12px; font-size: 12px; }
}
@media (max-width: 350px) {
  .ppob-product { padding-inline: 10px; }
  .ppob-product-price { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ppob-product { transition: none; } }
