.fp-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: 88dvh;
  box-sizing: border-box;
  border: 0;
  border-radius: 24px;
  padding: 24px;
  background: #f8faf7;
  color: #173d2e;
  box-shadow: 0 24px 90px #082b2d40;
}
.fp-dialog::backdrop {
  background: #10281faa;
  backdrop-filter: blur(3px);
}
.fp-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.fp-dialog h2 {
  margin: 4px 0;
  font-size: 24px;
}
.fp-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #617d69;
}
.fp-dialog button {
  min-height: 44px;
  cursor: pointer;
}
.fp-dialog [data-close] {
  border: 0;
  background: #e9efe8;
  border-radius: 50%;
  width: 44px;
  font-size: 20px;
}
.fp-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
}
.fp-dialog input,
.fp-dialog select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd9cb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #163e2a;
}
.fp-search {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.fp-own {
  width: 100%;
  margin: 10px 0;
}
.fp-result {
  border-bottom: 1px solid #dce5dc;
  padding: 10px 0;
}
.fp-result > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px;
}
.fp-result > button:hover {
  background: #eaf2e7;
  border-radius: 12px;
}
.fp-result strong,
.fp-result small,
.fp-result b {
  display: block;
}
.fp-result strong {
  font-size: 17px;
}
.fp-result small {
  color: #647769;
  font-size: 12px;
  margin: 4px 0;
}
.fp-result b {
  font-size: 14px;
  font-weight: 500;
}
.fp-result > button > span:nth-child(2) {
  flex: 1;
}
.fp-leaf {
  background: #e1edde;
  border-radius: 14px;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 48px;
  font-size: 28px;
  color: #437844;
}
.fp-details {
  font-size: 13px;
  margin: 6px 8px;
}
.fp-details summary {
  cursor: pointer;
  color: #547159;
  min-height: 28px;
}
.fp-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.fp-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid #e1e7de;
}
.fp-details dd {
  margin: 0;
  text-align: right;
}
.fp-details a {
  color: #246438;
}
.fp-two,
.fp-three {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fp-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fp-error {
  color: #9b3827;
  font-size: 14px;
}
.fp-muted {
  color: #657569;
  font-size: 13px;
  line-height: 1.5;
}
.fp-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.fp-totals {
  background: #edf4e9;
  border: 1px solid #d5e2cf;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  color: #214731;
}
.fp-totals h4 {
  margin: 0 0 12px;
}
.fp-totals strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
}
.fp-totals strong small {
  font-weight: 400;
  font-size: 12px;
}
.fp-totals p,
.fp-totals summary {
  font-size: 13px;
  line-height: 1.5;
}
.fp-totals .fp-three > div {
  border-right: 1px solid #d3dece;
}
.fp-totals .fp-three > div:last-child {
  border: 0;
}
.fp-lines {
  margin: 18px 0;
}
.fp-line {
  padding: 16px 0;
  border-bottom: 1px solid #dce5dc;
}
.fp-line-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.fp-line h4 {
  margin: 0 0 4px;
}
.fp-line input {
  max-width: 180px;
}
.fp-line .fp-amount {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fp-line .fp-amount input {
  width: 140px;
}
.fp-pick-button {
  margin: 6px 0;
  width: 100%;
  text-align: left;
}
.fp-line-error {
  font-size: 13px;
  color: #9b3827;
}
@media (max-width: 480px) {
  .fp-dialog {
    padding: 18px;
  }
  .fp-search {
    grid-template-columns: 1fr;
  }
  .fp-search label {
    margin: 4px 0;
  }
  .fp-details dl {
    grid-template-columns: 1fr;
  }
  .fp-totals {
    padding: 12px;
  }
  .fp-totals strong {
    font-size: 19px;
  }
}
