/* BooksFirst PartnerHub — mobile-native refinements and payment number chooser.
   Deliberately last-loaded: fixes oversized visuals without restyling desktop. */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
button,a,[role="button"],summary{touch-action:manipulation}
button,.btn,.ed-outline-button,.ed-menu-button{user-select:none;-webkit-user-select:none}
button:active,.btn:active,.ed-outline-button:active{transform:scale(.985)}
:where(.ed-body) :focus-visible{outline:2px solid #d71920;outline-offset:3px}
[data-other-phone][hidden], [data-payment-phone][hidden]{display:none!important}
.bf-payment-phone{margin:0 0 20px;padding:17px 18px;border:1px solid #e2e3df;border-radius:12px;min-width:0;background:#faf9f6}
.bf-payment-phone legend{font-size:14px;font-weight:750;color:#17183f;padding:0 6px 0 0}
.bf-payment-phone .bf-phone-choice{display:flex;align-items:center;gap:10px;padding:12px 4px;cursor:pointer;font-weight:600;font-size:14px}
.bf-payment-phone .bf-phone-choice+.bf-phone-choice{border-top:1px solid #eeeae4}
.bf-phone-choice input[type="radio"]{width:18px;height:18px;flex:none;accent-color:#d71920;margin:0}
.bf-phone-choice strong{font-weight:500;color:#525d55}
.bf-payment-phone .bf-other-phone{display:grid;gap:8px;padding:8px 4px 4px;font-size:13px;color:#2d342e;font-weight:600}
.bf-payment-phone input[type="tel"]{width:100%;font-size:16px;padding:12px 14px;min-height:46px;border:1px solid #bdc6be;border-radius:8px;background:#fff}
.bf-phone-hint{color:#5e6760;line-height:1.55;font-size:12px;margin:12px 4px 0}
.bf-mobile-pending{max-width:690px;margin:30px auto 80px;padding:clamp(22px,5vw,42px);background:#fff;border:1px solid #e2e2dd;border-radius:16px}
.bf-mobile-pending h1{font:400 clamp(30px,5vw,44px)/1.15 Georgia,'Iowan Old Style',serif;margin:12px 0;color:#17183f}
.bf-mobile-pending>p{line-height:1.7}
.bf-provider-instructions{white-space:normal;background:#f4f5f0;border-left:3px solid #d71920;padding:17px 19px;margin:22px 0;line-height:1.65;font-size:14px;overflow-wrap:anywhere}
.bf-pending-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0}
.bf-pending-actions>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;text-decoration:none}
@media (pointer:coarse){.ed-body input,.ed-body select,.ed-body textarea{font-size:16px!important}.ed-body button,.ed-body .btn,.ed-body .ed-outline-button{min-height:44px}}
@media (hover:hover) and (pointer:fine){.bf-phone-choice:hover{background:#f5f3ef}}
@media (max-width:680px){
  /* Hero photography: visible and well cropped, never half a phone screen tall. */
  .ed-unity .unity-hero{min-height:0!important;margin-bottom:23px}
  .ed-unity .unity-hero-copy{padding:23px 19px 24px!important}
  .ed-unity .unity-hero h1{font-size:clamp(29px,8vw,36px)!important;letter-spacing:-.035em;line-height:1.09}
  .ed-unity .unity-hero p{font-size:13px;line-height:1.56}
  .ed-unity .unity-hero-media{min-height:0!important;height:clamp(150px,46vw,205px)!important;max-height:205px!important;overflow:hidden}
  .ed-unity .unity-hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%}
  .ed-body .ed-split-hero{margin-bottom:22px}
  .ed-body .ed-split-hero .rh-hero-shade{min-height:0!important;padding:25px 20px!important}
  .ed-body .ed-split-hero h2{font-size:clamp(30px,8vw,39px)!important}
  .ed-hero-visual{min-height:0!important;height:clamp(150px,46vw,205px)!important;max-height:205px!important}
  .ed-body .ed-split-hero img.rh-hero-media{object-position:center 38%}
  .ed-unity .unity-pillar-grid{gap:15px;margin:10px 0 36px}
  .ed-unity .unity-pillar-media{aspect-ratio:5/3;margin-bottom:10px}
  .ed-unity .unity-pillar h3{font-size:clamp(20px,5.8vw,25px)!important}
  .ed-unity .unity-pillar p{font-size:12px;min-height:0}
  .ed-unity .unity-split-callout>img{height:clamp(155px,44vw,210px)!important;max-height:210px!important}
  .ed-unity .unity-club-links img{height:clamp(145px,43vw,195px)!important;object-fit:cover}
  .ed-body .rh-club-intro>img{height:clamp(160px,44vw,210px)!important;min-height:0!important;max-height:210px!important}
  .ed-body .rh-community-card>img,.ed-body .rh-event-card>img{height:150px!important}
  .ed-body .rh-promo>img{height:155px!important;min-height:0!important}
  .ed-body .rh-category img{height:106px!important}
  .ed-body .rh-book-art{height:clamp(130px,41vw,172px)!important;min-height:0!important;padding:10px!important}
  .ed-body .rh-book-art img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
  .ed-body .rh-books,.ed-shop-results .rh-books{gap:15px 10px!important}
  .ed-body .rh-detail-cover{min-height:170px!important;padding:16px!important}
  .ed-body .rh-detail-cover img{max-height:220px!important}
  .ed-community-feature>img,.ed-challenge-feature img{height:145px!important;min-height:0!important}
  .ed-body .ed-page-intro h1{font-size:clamp(32px,9vw,42px)!important}
  .ed-unity .unity-statement,.ed-unity .unity-books-preview{margin-bottom:38px!important}
  .ed-mobile-menu-inner{max-height:100dvh;height:100dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  .ed-header{padding-top:env(safe-area-inset-top,0px)}
  .bf-payment-phone{padding:14px 13px}
  .bf-pending-actions>a{width:100%}
}
@media (max-width:390px){
  .ed-body .rh-book-art{height:clamp(120px,39vw,152px)!important}
  .ed-body .rh-category img{height:95px!important}
  .ed-unity .unity-hero-media,.ed-hero-visual{height:155px!important}
}
@media (prefers-reduced-motion:reduce){button:active,.btn:active{transform:none}}

/* Mobile-money result states are distinct: submitted, unknown, and not submitted. */
.bf-mobile-pending.bf-mobile-state-unavailable{border-color:#d8ded5}
.bf-mobile-pending.bf-mobile-state-uncertain{border-color:#e8d2aa}
.bf-mobile-state-unavailable .bf-provider-instructions{border-color:#708577;background:#f3f6f2}
.bf-mobile-state-uncertain .bf-provider-instructions{border-color:#b18434;background:#fff9eb}
