.blf-picker {
  color: #201636;
  background: #fbf7ef;
  padding: clamp(22px, 4vw, 54px);
  border: 1px solid #e6dbce;
  border-radius: 24px;
  margin: 24px auto;
  max-width: 1160px;
  scroll-margin-top: 24px;
}
.blf-picker h2 {
  font: 400 clamp(31px, 5vw, 54px)/1.04 "DM Serif Display", Georgia, serif;
  letter-spacing: -.04em;
  margin: 0 0 9px;
}
.blf-picker p { margin: 0 0 14px; }
.blf-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin: 22px 0; }
.blf-filters label { display: grid; gap: 4px; font-weight: 700; }
.blf-filters input, .blf-filters select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #9889a3;
  border-radius: 8px;
  color: #201636;
  background: #fff;
  min-height: 44px;
}
.blf-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.blf-picker button { font: inherit; cursor: pointer; }
.blf-picker button:focus-visible, .blf-picker :is(input, select, summary):focus-visible {
  outline: 3px solid #7852a1;
  outline-offset: 3px;
}
.blf-picker .blf-book {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: start;
  text-align: left;
  align-content: start;
  gap: 6px;
  color: #201636;
  background: #fffdf8;
  border: 1px solid #d8cddd;
  padding: 13px;
  border-radius: 11px;
}
.blf-book:hover, .blf-picker .blf-book[aria-pressed="true"] { border-color: #695184; background: #f4eefa; }
.blf-book img { width: 62px; height: 82px; object-fit: cover; border-radius: 2px; }
.blf-book-title { font-size: 14px; line-height: 1.32; font-weight: 750; overflow-wrap: anywhere; }
.blf-format { color: #5b4b67; font-weight: 700; font-size: 11px; }
.blf-pick-action { font-size: 13px; font-weight: 800; color: #563878; }
.blf-picker .blf-more { margin: 16px 0; text-align: center; }
.blf-more button, .blf-selected button {
  min-height: 40px;
  border: 1px solid #a294ae;
  border-radius: 7px;
  background: #fff;
  color: #39244f;
  padding: 6px 10px;
}
.blf-selected { margin: 16px 0; }
.blf-selected summary { cursor: pointer; font-weight: 750; min-height: 35px; }
.blf-selected li { padding: 5px 0; }
.blf-selected li button { margin-left: 8px; }
.blf-progress {
  position: sticky;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #26183d;
  color: #fff9ec;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px #21153535;
  z-index: 4;
}
.blf-progress strong, .blf-progress span { display: block; }
.blf-progress span { font-size: 12px; }
.blf-progress [data-blf-count],
.blf-progress [data-blf-remaining] { font-variant-numeric: tabular-nums; }
.blf-progress [data-blf-remaining] { color: #ffd579; font-size: 14px; font-weight: 750; }
.blf-progress [data-blf-selection-progress] {
  display: block;
  appearance: none;
  width: min(100%, 13rem);
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #5f4e73;
  color: #ffd579;
}
.blf-progress [data-blf-selection-progress]::-webkit-progress-bar { background: #5f4e73; }
.blf-progress [data-blf-selection-progress]::-webkit-progress-value { background: #ffd579; }
.blf-progress [data-blf-selection-progress]::-moz-progress-bar { background: #ffd579; }
.blf-selection-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.blf-progress button {
  border: 0;
  border-radius: 8px;
  background: #ffd579;
  color: #241637;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 13px;
}
.blf-progress button:disabled { background: #ebe2ed; color: #4d3e57; cursor: default; }
.blf-progress button[data-blf-defer] { border: 1px solid #bcaacb; background: transparent; color: #fff9ec; }
.blf-picker [data-blf-message] { font-size: 14px; margin: 8px 0 0; }
.blf-lifetime {
  margin: 22px 0 0;
  padding: clamp(18px, 4vw, 34px);
  background: #efe5f6;
  border: 1px solid #d7c3e2;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  scroll-margin-top: 58px;
}
.blf-lifetime .blf-lifetime-kicker {
  color: #5d3979;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.blf-lifetime h3 {
  margin: 0 0 10px;
  color: #26183d;
  font: 400 clamp(28px, 4vw, 46px)/1.06 "DM Serif Display", Georgia, serif;
}
.blf-lifetime p { max-width: 520px; margin-bottom: 0; }
.blf-lifetime-price strong, .blf-lifetime-price span { display: block; color: #26183d; }
.blf-lifetime-price strong { font-size: 36px; line-height: 1.05; }
.blf-lifetime-price span { font-size: 12px; }
.blf-lifetime-price button {
  margin-top: 9px;
  background: #392450;
  color: #fff;
  font-weight: 750;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
}
.blf-lifetime-price button:disabled { background: #ddd1e6; color: #4d3e57; cursor: default; }
@media (max-width: 760px) {
  .blf-filters { grid-template-columns: 1fr; }
  .blf-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blf-lifetime { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blf-progress { align-items: stretch; flex-direction: column; }
  .blf-selection-actions { justify-content: flex-start; }
  .blf-selection-actions > button { flex: 1; }
}
