.bpfc {
  --bpfc-accent: var(--c-main, #9370db);
  --bpfc-line: rgba(127, 127, 127, .3);
  --bpfc-soft: rgba(127, 127, 127, .08);
  margin: 0 0 2em;
  line-height: 1.5;
}
.bpfc *, .bpfc *::before, .bpfc *::after { box-sizing: border-box; }

.bpfc .bpfc-lead { margin: 0 0 1.5em; }

.bpfc .bpfc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 767px) {
  .bpfc .bpfc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.bpfc .bpfc-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.bpfc .bpfc-field[hidden] { display: none; }
.bpfc .bpfc-field.is-off { opacity: .45; }
.bpfc .bpfc-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.bpfc .bpfc-hint { margin: 8px 0 0; font-size: 13px; opacity: .75; }

.bpfc .bpfc-select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--bpfc-line);
  border-radius: 4px;
  background-color: transparent;
  color: inherit;
  font: inherit;
}
.bpfc .bpfc-select option { color: #222; background: #fff; }

.bpfc .bpfc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bpfc .bpfc-chip { position: relative; margin: 0; cursor: pointer; }
.bpfc .bpfc-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.bpfc .bpfc-chip span {
  display: block;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--bpfc-line);
  border-radius: 4px;
  font-size: 14px;
  line-height: 22px;
}
.bpfc .bpfc-chip input:checked + span {
  border-color: var(--bpfc-accent);
  background: var(--bpfc-accent);
  color: #fff;
}
.bpfc .bpfc-chip input:focus-visible + span,
.bpfc .bpfc-select:focus-visible {
  outline: 2px solid var(--bpfc-accent);
  outline-offset: 2px;
}
.bpfc fieldset:disabled .bpfc-chip { cursor: default; }

.bpfc .bpfc-result {
  padding: 24px;
  border: 1px solid var(--bpfc-accent);
  border-radius: 6px;
  background: var(--bpfc-soft);
}
@media (min-width: 768px) {
  .bpfc .bpfc-result { position: sticky; top: 90px; }
}
.bpfc .bpfc-result-title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
}
.bpfc .bpfc-amounts { margin: 0 0 18px; padding: 0; }
.bpfc .bpfc-amount { margin: 0 0 14px; }
.bpfc .bpfc-amount dt { margin: 0; font-size: 14px; font-weight: 400; opacity: .8; }
.bpfc .bpfc-amount dd { margin: 0; font-size: 18px; }
.bpfc .bpfc-amount dd b {
  font-family: var(--title-font, inherit);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bpfc .bpfc-amount dd small { display: block; font-size: 13px; opacity: .75; }

.bpfc .bpfc-bar {
  display: flex;
  height: 34px;
  margin: 0 0 8px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 34px;
  white-space: nowrap;
}
.bpfc .bpfc-bar span {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: flex-grow .25s ease;
}
.bpfc .bpfc-bar-dye { background: var(--bpfc-accent); color: #fff; }
.bpfc .bpfc-bar-ox { background: var(--bpfc-line); }
@media (prefers-reduced-motion: reduce) {
  .bpfc .bpfc-bar span { transition: none; }
}

.bpfc .bpfc-total,
.bpfc .bpfc-time { margin: 0 0 6px; font-size: 15px; }
.bpfc .bpfc-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--bpfc-line);
  font-size: 14px;
}

.bpfc .bpfc-safety { margin: 24px 0; font-size: 14px; opacity: .85; }

.bpfc .bpfc-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.bpfc .bpfc-table caption {
  margin: 0 0 10px;
  text-align: left;
  font-family: var(--title-font, inherit);
  font-size: 20px;
  font-weight: 600;
  caption-side: top;
  color: inherit;
}
.bpfc .bpfc-table th,
.bpfc .bpfc-table td {
  padding: 10px 12px;
  border: 1px solid var(--bpfc-line);
  text-align: left;
  vertical-align: top;
}
.bpfc .bpfc-table thead th { background: var(--bpfc-soft); font-weight: 600; }
.bpfc .bpfc-table tbody th { white-space: nowrap; font-weight: 600; }

.bpfc .bpfc-sticky { display: none; }
@media (max-width: 767px) {
  .bpfc .bpfc-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #2b2140;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
  }
  .bpfc .bpfc-sticky[hidden] { display: none; }
  .bpfc .bpfc-sticky-more {
    flex: none;
    padding: 5px 10px;
    border-radius: 3px;
    background: #fff;
    color: #2b2140;
    font-size: 13px;
  }
}
