/* LitBooked: cart, checkout and the simple PHP pages (thank you, 404). Follows the free check popup: Roboto, 16px radius inputs, pill buttons. */

/* cart popup */
.lbc{position:fixed;inset:0;z-index:1001;display:grid;place-items:center;padding:24px;font-family:Roboto,Arial,sans-serif}
.lbc[hidden]{display:none}
.lbc-back{position:absolute;inset:0;background:rgba(20,20,20,.55);opacity:0;transition:opacity .22s ease}
.lbc-panel{position:relative;width:100%;max-width:520px;max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:28px;padding:36px 36px 28px;box-shadow:0 30px 80px -30px rgba(20,20,20,.55);opacity:0;transform:translateY(20px);transition:opacity .22s ease,transform .3s cubic-bezier(.2,.7,.2,1)}
.lbc.is-on .lbc-back{opacity:1}
.lbc.is-on .lbc-panel{opacity:1;transform:none}
.lbc-x{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:50%;border:1px solid #E5E5EA;background:#fff;color:#141414;display:grid;place-items:center;cursor:pointer}
.lbc-x:hover{border-color:#141414}
.lbc-x svg{width:14px;height:14px}
html body .lbc-h{margin:0;padding-right:48px;font-family:inherit;font-size:30px!important;font-weight:700;letter-spacing:-.025em!important;line-height:1.1;text-transform:none;color:#141414}
.lbc-msg{margin:14px 0 0;padding:12px 16px;border-radius:16px;background:#F5F5F7;font-size:14px;line-height:1.5;color:#141414}
.lbc-msg[hidden]{display:none}
.lbc-items{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid #E5E5EA}
.lbc-items[hidden]{display:none}
.lbc-items li{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #E5E5EA}
.lbc-items a{flex:1 1 auto;min-width:0;color:#141414;text-decoration:none}
.lbc-items a b{display:block;font-size:16px;font-weight:600;line-height:1.3}
.lbc-items a span{display:block;margin-top:2px;font-size:14px;color:#5F5F5F}
.lbc-items a:hover b{color:#CC1B2F}
.lbc-price{font-size:16px;font-weight:600;color:#141414;white-space:nowrap}
.lbc-rm{flex:none;width:32px;height:32px;border-radius:50%;border:0;background:#F5F5F7;color:#5F5F5F;display:grid;place-items:center;cursor:pointer}
.lbc-rm:hover{background:#141414;color:#fff}
.lbc-rm svg{width:11px;height:11px}
.lbc-foot[hidden],.lbc-empty[hidden]{display:none}
.lbc-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:18px;font-size:16px;color:#5F5F5F}
.lbc-total b{font-size:26px;font-weight:700;letter-spacing:-.02em;color:#141414}
.lbc-l{display:block;margin:18px 0 6px;font-size:14px;font-weight:600;color:#141414}
.lbc-i{display:block;box-sizing:border-box;width:100%;height:52px;padding:0 16px;border:1px solid #E5E5EA;border-radius:16px;background:#fff;font:inherit;font-size:16px;color:#141414}
.lbc-i::placeholder{color:#8A8A8E}
.lbc-i:focus{outline:2px solid #141414;outline-offset:1px;border-color:#141414}
.lbc-err{min-height:0;margin:8px 0 0;font-size:14px;line-height:1.45;color:#CC1B2F}
.lbc-err:empty{display:none}
.lbc-pay{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:54px;margin-top:16px;border:0;border-radius:999px;background:#CC1B2F;color:#fff;font:inherit;font-size:16px;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .25s}
.lbc-pay:hover{background:#141414;color:#fff}
.lbc-pay:disabled{opacity:.7;cursor:default}
.lbc-pay:focus-visible,.lbc-x:focus-visible,.lbc-rm:focus-visible,.lbc-pill:focus-visible{outline:2px solid #141414;outline-offset:3px}
.lbc-note{margin:12px 0 0;text-align:center;font-size:14px;line-height:1.5;color:#5F5F5F}
.lbc-empty{margin-top:18px}
.lbc-empty p{font-size:16px;color:#5F5F5F}

/* cart button, shown on every page while something is in the cart */
.lbc-pill{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:900;display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 20px 0 22px;border:0;border-radius:999px;background:#141414;color:#fff;font:600 15px Roboto,Arial,sans-serif;box-shadow:0 12px 32px -12px rgba(20,20,20,.6);cursor:pointer;transition:background-color .25s}
.lbc-pill[hidden]{display:none}
.lbc-pill:hover{background:#CC1B2F}
.lbc-pill b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#fff;color:#141414;font-size:13px;font-weight:700}

.lbx-bad{color:#CC1B2F!important}

/* thank you, payment and 404 pages */
html body main>section.lbx-ty.lbx-ty{padding-bottom:clamp(72px,9vw,120px)!important}
.lbx-tick{display:grid;place-items:center;width:56px;height:56px;margin-bottom:8px;border-radius:50%;background:#141414;color:#fff}
.lbx-tick svg{width:26px;height:26px}
.lbx-ty h1{max-width:18ch}
.lbx-box{max-width:760px;margin-top:36px;border-radius:28px;background:#F5F5F7;padding:32px}
html body .lbx-box h2{margin:0;font-size:24px!important;font-weight:700;letter-spacing:-.02em!important;line-height:1.2;text-transform:none;color:#141414}
.lbx-box p{margin:8px 0 0;font-size:16px;line-height:1.55;color:#5F5F5F}
.lbx-box p a{color:#141414;text-decoration:underline;text-underline-offset:3px}
.lbx-dl{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.lbx-dl .tkp-btn{flex:0 1 auto;height:52px;padding:0 26px;font-size:15px}
.lbx-ty>.w>.pg-meta+.lbx-dl,.lbx-ty .pg-lead+.lbx-dl{margin-top:30px}
.lbx-next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:56px}
.lbx-card{display:flex;flex-direction:column;border:1px solid #E5E5EA;border-radius:28px;padding:28px;color:#141414;text-decoration:none;transition:border-color .3s}
.lbx-card b{font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.25}
.lbx-card span{margin-top:8px;font-size:16px;line-height:1.55;color:#5F5F5F}
@media(hover:hover){.lbx-card:hover{border-color:#141414}}
.lbx-card:focus-visible{outline:2px solid #141414;outline-offset:3px}

/* tables in admin written articles scroll sideways on phones instead of breaking the page */
.ar-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ar-body .ar-table table{min-width:520px}
.ar-body hr{margin:48px 0 0;border:0;border-top:1px solid #E5E5EA}
.ar-body code{padding:2px 6px;border-radius:6px;background:#F5F5F7;font-family:'DM Mono',ui-monospace,Menlo,monospace;font-size:.9em}

@media(max-width:900px){.lbx-next{grid-template-columns:1fr;gap:14px}}
@media(max-width:600px){
  .lbc{padding:12px;align-items:end}
  .lbc-panel{padding:28px 22px 22px;border-radius:24px;max-height:calc(100vh - 24px)}
  .lbc-h{font-size:26px!important}
  .lbx-box{padding:24px;border-radius:24px}
  .lbx-dl .tkp-btn{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){.lbc-back,.lbc-panel{transition:none}}
.lbx-ty .pg-meta+h1{margin-top:10px}
.lbx-ty .lbx-dl+.pg-meta{margin-top:18px}
