/* Styles for the parts added when the site was connected to the API:
   notices, sign-up code, password reset, checkout, download buttons and the
   account drawer's lists and forms. */

/* Toast */
/* A popover (core.js): top:auto, right:auto, margin and border undo the browser's popover box. */
.bp-toast{position:fixed;left:50%;bottom:28px;top:auto;right:auto;margin:0;border:0;overflow:visible;z-index:100000;max-width:min(520px,calc(100vw - 32px));padding:13px 20px;border-radius:12px;background:#102341;color:#fff;font:600 13px/1.5 Arial,'Microsoft YaHei',sans-serif;box-shadow:0 18px 50px #07152b55;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.bp-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.bp-toast[data-kind=error]{background:#7a1d12}

/* Sign-in dialog: info messages share the error box */
.bp-login-error[data-kind=info]{border-color:#8fb4ff66;background:#4d8bff1f;color:#dbe7ff}
.bp-register-send-code{flex:0 0 auto;padding:0 14px;border:1px solid #ffe32999;border-radius:8px;background:transparent;color:#ffe329;font:700 12px/1 Arial,'Microsoft YaHei',sans-serif;cursor:pointer;white-space:nowrap}
.bp-register-send-code:disabled{opacity:.55;cursor:default}

/* Password reset page */
.bp-reset-form{display:grid;gap:14px;margin-top:18px}
.bp-reset-form label{display:grid;gap:6px;font-size:13px;font-weight:600}
.bp-reset-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5ddea;border-radius:8px;font-size:14px}
.bp-reset-step{display:grid;gap:14px}
.bp-reset-step[hidden]{display:none}
.bp-reset-status{margin:0;padding:12px 14px;border-radius:8px;background:#edf3ff;color:#0b3c8f;font-size:13px;line-height:1.6}
.bp-reset-form .bp-login-error{margin:0;color:#b42318;background:#fef3f2;border-color:#fecdca}
.bp-reset-resend{justify-self:center;border:0;background:none;color:var(--bp-blue);font-size:13px;font-weight:600;cursor:pointer;text-decoration:underline}
.bp-reset-resend:disabled{color:#98a5b7;cursor:default}

/* Checkout dialog */
.bp-checkout-form{display:grid;gap:14px;margin-top:18px}
.bp-checkout-account{margin:0;padding:14px 16px;border:1px solid #e3eaf5;border-radius:10px;background:#f6f8fc;color:#33435c;font-size:13px;line-height:1.6}
.bp-checkout-quote{margin:0;color:#227336;font-size:13px;font-weight:600}
.bp-checkout-form .bp-login-error{margin:0;color:#b42318;background:#fef3f2;border-color:#fecdca}
.bp-checkout-submit:disabled{opacity:.6;cursor:default}

/* Download center */
.bp-download-file{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 16px;margin-top:auto;border:0;border-radius:8px;background:var(--bp-yellow);color:#102341;font:700 12px/1.5 Arial,'Microsoft YaHei',sans-serif;cursor:pointer}
.bp-download-file:hover{filter:brightness(.96)}
.bp-download-file[aria-busy=true]{opacity:.7;cursor:progress}
.bp-download-file span{font-size:20px}
.bp-download-demo-notice a{color:inherit;font-weight:700;text-decoration:underline}
.bp-basic-download-button[aria-busy=true]{opacity:.7;cursor:progress}

/* Account drawer */
.bp-account-welcome h3{margin:0;font-size:20px}
.bp-account-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.bp-account-row{display:grid;grid-template-columns:1fr auto;gap:6px 14px;padding:14px 16px;border:1px solid #e8ecf3;border-radius:12px}
.bp-account-row-main,.bp-account-row-side{display:grid;gap:2px;align-content:start}
.bp-account-row-side{justify-items:end;text-align:right}
.bp-account-row small{color:#718098;font-size:12px}
.bp-account-row-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding-top:6px;border-top:1px dashed #e8ecf3}
.bp-account-badge{display:inline-block;padding:2px 10px;border-radius:20px;background:#eef1f6;color:#4d5b70;font-size:11px;font-weight:700}
.bp-account-badge[data-status="1"]{background:#fff6d6;color:#8a6100}
.bp-account-badge[data-status="2"]{background:#e5f5e8;color:#227336}
.bp-account-badge[data-status="4"]{background:#edf3ff;color:#0859df}
.bp-account-badge[data-status="7"]{background:#fdecea;color:#b42318}
.bp-account-link{color:var(--bp-blue);font-weight:700;text-decoration:none}
/* Billing: the way to the member's billing page at Stripe, then what renews and the orders. */
.bp-account-billing{display:flex;width:fit-content;margin:-8px 0 16px;padding:8px 14px;border:0;border-radius:8px;background:var(--bp-blue);color:#fff;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.bp-account-billing:hover,.bp-account-billing:focus-visible{background:var(--bp-blue);filter:brightness(.92);color:#fff}
.bp-account-billing:disabled{opacity:.6;cursor:default}
@media (max-width:420px){.bp-account-billing{width:100%;justify-content:center;padding:10px 14px}}
.bp-site .bp-account-section{margin:28px 0 10px;font-size:15px}
.bp-site .bp-account-intro+.bp-account-section{margin-top:0}
.bp-account-note{margin:0;color:#718098;font-size:13px}
.bp-account-text-button{padding:0;border:0;background:none;color:#4d5b70;font-size:12px;font-weight:600;text-decoration:underline;cursor:pointer}
.bp-account-text-button:disabled{opacity:.5;cursor:default}
.bp-account-form{display:grid;gap:8px;margin-bottom:28px}
.bp-account-form h4{margin:0 0 6px;font-size:15px}
.bp-account-form label{font-size:12px;font-weight:600;color:#33435c}
.bp-account-form input{width:100%;min-height:40px;padding:9px 12px;border:1px solid #dce4f0;border-radius:7px;background:#fff;font-size:13px;color:#102341}
.bp-account-form input:disabled{background:#f6f8fc;color:#718098}
.bp-account-submit{margin-top:8px;padding:13px 20px;border:0;border-radius:8px;background:var(--bp-blue);color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.bp-account-submit:disabled{opacity:.6;cursor:default}
.bp-account-status{margin:4px 0 0;font-size:12px;color:#227336}
.bp-account-status[data-kind=error]{color:#b42318}

/* Plans the member already has (assets/app/modules/plan-access.js): "open"
   replaces "unlock", the lock becomes an arrow. */
.bp-owned-label,.bp-unlock-label.bp-owned-label{display:none}
[data-owned] .bp-owned-label,[data-owned] .bp-unlock-label.bp-owned-label{display:inline}
[data-owned] .bp-unlock-label:not(.bp-owned-label),[data-owned] .bp-unlock-label-text{display:none}
[data-owned] .bp-unlock-icon{mask-image:url('../theme/plan-open.svg')}

/* A plan card whose plan was deleted or taken off sale. */
[data-unavailable]{opacity:.55}
[data-unavailable] :is(a,button),a[data-unavailable]{pointer-events:none}
.bp-account-check{display:flex;align-items:flex-start;gap:9px;font-size:13px!important;font-weight:500!important;color:#33435c;cursor:pointer}
.bp-account-form .bp-account-check input{width:16px;min-height:0;height:16px;margin:2px 0 0;padding:0;flex:none}
.bp-account-hint{color:#718098;font-size:12px}
.bp-account-submit.bp-account-small{margin-top:0;padding:8px 14px;font-size:12px}

/* Loading motion (core.js). A cover in a template list while its image is
   on the way: a soft light sweeps across its box and the image stays
   transparent; when it arrives it fades in. Dark lists by default; the free
   templates' light boxes get a brighter light, and a search result's
   thumbnail is its own placeholder. */
.bp-site .bp-cover-wait{position:relative}
.bp-site .bp-cover-wait::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(100deg,transparent 30%,var(--bp-cover-shine,#ffffff26) 50%,transparent 70%);transform:translateX(-100%);animation:bp-cover-shine 1.5s ease-in-out infinite}
.bp-site .bp-download-art.bp-cover-wait{background:#173057}
.bp-site .bp-basic-download-preview.bp-cover-wait{--bp-cover-shine:#ffffffd9}
.bp-site img.bp-cover-loading{opacity:0}
.bp-site img.bp-search-cover.bp-cover-loading{opacity:1;background:linear-gradient(100deg,#ffffff12 30%,#ffffff33 50%,#ffffff12 70%) 0 0/200% 100%;animation:bp-cover-sweep 1.5s linear infinite}
.bp-site img.bp-cover-shown{animation:bp-cover-in .5s ease-out}
/* List items just put on the page (BP.enter: a new page of cards, search
   results, an account panel's rows) rise into place one after another. */
.bp-site .bp-enter{animation:bp-enter .45s cubic-bezier(.22,.61,.36,1) var(--bp-enter-delay,0ms) both}
@keyframes bp-cover-shine{to{transform:translateX(100%)}}
@keyframes bp-cover-sweep{to{background-position:-200% 0}}
@keyframes bp-cover-in{from{opacity:0}}
@keyframes bp-enter{from{opacity:0;transform:translateY(14px)}}
@media(prefers-reduced-motion:reduce){.bp-site .bp-cover-wait::after,.bp-site img.bp-search-cover.bp-cover-loading,.bp-site img.bp-cover-shown,.bp-site .bp-enter{animation:none}}
