/* Live & Learn Press Store: floating cart tab and cart window, matched to the Lulu cart they replace. */
.lulu-floating-cart { position: fixed; right: 0; bottom: 24px; z-index: 99990; width: 48px; height: 78px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  background: var(--lulu-cart-bg, #536a41); color: var(--lulu-cart-text, #f7f3e9); border-radius: 4px 0 0 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .25s ease; }
.lulu-floating-cart[data-position="bottom-left"] { right: auto; left: 0; border-radius: 0 4px 4px 0; }
.lulu-floating-cart[data-hidden="true"] { transform: translateX(110%); pointer-events: none; }
.lulu-floating-cart[data-position="bottom-left"][data-hidden="true"] { transform: translateX(-110%); }
.lulu-floating-cart-badge { font: 600 14px/1 -apple-system, "system-ui", "Segoe UI", sans-serif; }
.lulu-floating-cart-icon { display: flex; }
.lulu-floating-cart:focus-visible { outline: 2px solid var(--lulu-cart-bg, #536a41); outline-offset: 2px; }

html.lls-open { overflow: hidden; }
.lls-modal { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(100vw, 440px); max-width: 100vw;
  height: 100dvh; max-height: 100dvh; background: #fff; color: #1f2933; box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
  font: 16px/1.45 Lato, -apple-system, "system-ui", "Segoe UI", sans-serif; }
.lls-modal::backdrop { background: rgba(23, 28, 22, .38); }
.lls-modal[open] { animation: lls-in .22s ease-out; }
@keyframes lls-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.lls-panel { box-sizing: border-box; min-height: 100%; display: flex; flex-direction: column; padding: 26px 24px 22px; }
.lls-head { display: flex; align-items: center; gap: 14px; }
.lls-logo { height: 34px; width: auto; }
.lls-brand { font-weight: 700; font-size: 17px; }
.lls-x { margin-left: auto; background: none; border: 0; padding: 6px; cursor: pointer; color: #4b5563; border-radius: 8px; display: flex; }
.lls-x:hover { background: #f3f4f6; }
.lls-title { margin: 26px 0 16px; font-size: 24px; font-weight: 700; line-height: 1.2; color: #1f2933; }
.lls-title span { font-size: 17px; font-weight: 600; }
.lls-note { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #eef4fb; color: #374151; font-size: 15px; }
.lls-note svg { flex: none; padding: 6px; border-radius: 50%; background: #dbe6f5; color: #33507a; width: 22px; height: 22px; }
.lls-items { list-style: none; margin: 14px 0 0; padding: 0; }
.lls-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; }
.lls-thumb { width: 76px; height: 98px; object-fit: cover; background: #f7f3e9; border: 1px solid #ece7da; }
.lls-name { font-size: 16px; line-height: 1.35; }
.lls-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: #6b7280; }
.lls-chip { border: 1px solid #d8dbe0; border-radius: 4px; padding: 1px 6px; color: #4b5563; }
.lls-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.lls-qty { display: inline-flex; align-items: center; background: #f3f4f6; border-radius: 6px; }
.lls-qty button { background: none; border: 0; width: 30px; height: 30px; font-size: 18px; color: #6b7280; cursor: pointer; }
.lls-qty span { min-width: 22px; text-align: center; font-size: 17px; }
.lls-line { font-size: 16px; }
.lls-del { background: none; border: 0; padding: 4px; color: #6b7280; cursor: pointer; border-radius: 6px; display: flex; }
.lls-del:hover { background: #f3f4f6; }
.lls-empty { margin: 48px auto 0; text-align: center; color: #4b5563; }
.lls-empty-icon { display: inline-flex; padding: 10px; border-radius: 50%; background: #eef4fb; color: #33507a; margin-bottom: 10px; }
.lls-empty strong { display: block; font-size: 17px; color: #1f2933; }
.lls-empty p { margin: 6px 0 0; font-size: 15px; }
.lls-summary { margin-top: auto; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 22px 22px; }
.lls-summary h3 { margin: 0 0 16px; font-size: 21px; font-weight: 700; }
.lls-sum { display: flex; justify-content: space-between; font-size: 15px; margin-top: 8px; }
.lls-muted { color: #6b7280; font-weight: 600; }
.lls-go { display: block; width: 100%; margin-top: 20px; padding: 14px 18px; border: 0; border-radius: 9999px; cursor: pointer;
  background: #536a41; color: #f7f3e9; font: 500 16px/1.2 Lato, -apple-system, "system-ui", "Segoe UI", sans-serif; }
.lls-go:hover { filter: brightness(1.08); }
.lls-go[disabled] { opacity: .75; cursor: progress; }
.lls-error { margin: 14px 0 0; color: #a12c2c; font-size: 14px; }
.lls-foot { margin-top: 18px; text-align: center; font-size: 14px; color: #6b7280; }
.lls-foot b { font-weight: 800; color: #4b5563; letter-spacing: -.2px; }
.lls-thanks p { font-size: 16px; color: #374151; margin: 0 0 12px; }
.lls-thanks .lls-go { margin-top: auto; }
@media (max-width: 480px) { .lls-panel { padding: 20px 18px 18px; } .lls-item { grid-template-columns: 64px 1fr auto; } .lls-thumb { width: 64px; height: 84px; } }
.lls-x:focus { outline: none; } .lls-x:focus-visible { outline: 2px solid #536a41; outline-offset: 2px; }

/* group order window: the cart's look, a little wider */
.lls-modal.lls-wide { width: min(100vw, 600px); overflow-y: auto; }
.lls-group .lls-title { margin-bottom: 8px; }
.lls-lede { margin: 0 0 18px; color: #374151; font-size: 15px; }
.lls-form fieldset { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 18px 16px; margin: 0 0 14px; min-width: 0; }
.lls-form legend { padding: 0 6px; margin-left: -6px; font-weight: 700; font-size: 16px; color: #1f2933; }
.lls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lls-grid .lls-span { grid-column: 1 / -1; }
.lls-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #4b5563; }
.lls-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .lls-form select, .lls-form textarea {
  box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid #d8dbe0; border-radius: 8px; background: #fff; color: #1f2933;
  font: 15px/1.3 Lato, -apple-system, "system-ui", "Segoe UI", sans-serif; }
.lls-form textarea { resize: vertical; }
.lls-form input:focus, .lls-form select:focus, .lls-form textarea:focus { outline: 2px solid #536a41; outline-offset: 0; border-color: #536a41; }
.lls-form input[type="file"] { font-size: 14px; }
.lls-opt { color: #9ca3af; font-weight: 400; font-size: 13px; }
.lls-small { margin: 4px 0 10px; font-size: 14px; color: #6b7280; }
.lls-series { margin: 10px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #536a41; }
.lls-series:first-child { margin-top: 0; }
.lls-books { max-height: 340px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.lls-form .lls-book { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f1f2f4; color: #1f2933; font-size: 15px; }
.lls-book-name { display: flex; flex-direction: column; line-height: 1.3; }
.lls-book-name small { color: #6b7280; font-size: 13px; }
.lls-form .lls-book input { width: 84px !important; flex: none; text-align: right; }
.lls-running { margin-top: 12px; font-size: 16px; }
.lls-rates { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.lls-form .lls-radio, .lls-form .lls-check { flex-direction: row; align-items: baseline; gap: 8px; color: #1f2933; font-size: 15px; }
.lls-radio small { color: #6b7280; }
.lls-check input, .lls-radio input { accent-color: #536a41; }
.lls-exempt { margin-top: 10px; }
.lls-exempt .lls-check { margin-top: 12px; font-size: 14px; color: #374151; }
.lls-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lls-link { background: none; border: 0; padding: 0; color: #536a41; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.lls-hint { margin: 14px 0 0; font-size: 14px; color: #4b5563; }
.lls-qlines { list-style: none; margin: 0 0 16px; padding: 0; }
.lls-qlines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #f1f2f4; font-size: 15px; }
.lls-qlines small { display: block; color: #6b7280; font-size: 13px; }
.lls-total { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 17px; }
.lls-note-tax { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: #eef4fb; color: #33507a; }
a.lls-go { text-align: center; text-decoration: none; box-sizing: border-box; }
.lls-go.lls-ghost { background: #fff; color: #536a41; border: 1px solid #536a41; margin-top: 12px; }
.lls-error[hidden] { display: none; }
@media (max-width: 520px) { .lls-grid { grid-template-columns: 1fr; } .lls-form fieldset { padding: 12px 14px 14px; } }

/* thank-you window: centered Press logo, generous spacing, the audio guide called out (rules marked !important
   hold up against the site's own heading, paragraph and button styles) */
.lls-modal .lls-thanks { position: relative; padding-top: 30px; }
.lls-modal .lls-x-float { position: absolute; top: 18px; right: 18px; margin: 0; }
.lls-modal .lls-press-logo { display: block; width: 168px; max-width: 55%; height: auto; margin: 22px auto 34px !important; }
.lls-modal .lls-thanks-title { text-align: center; margin: 0 0 28px !important; padding: 0 !important; font-size: 42px !important; line-height: 1.1 !important; color: #1f2933; }
.lls-modal .lls-thanks p { margin: 0 0 20px !important; padding: 0 !important; font: 16px/1.6 Lato, -apple-system, "system-ui", "Segoe UI", sans-serif !important; color: #374151 !important; }
.lls-modal .lls-audio { margin: 6px 0 0; padding: 18px 20px; border-radius: 12px; background: #f7f3e9; border: 1px solid #e6dfcc; }
.lls-modal .lls-audio p { margin: 0 !important; }
.lls-modal .lls-audio strong { color: #536a41; font-weight: 700; }
.lls-modal .lls-audio a { color: #536a41 !important; text-decoration: underline; text-underline-offset: 2px; }
.lls-modal .lls-thanks-actions { margin-top: auto; padding-top: 32px; }
.lls-modal .lls-go { display: block !important; width: 100% !important; box-sizing: border-box !important; margin: 0 !important; padding: 14px 18px !important;
  border: 0 !important; border-radius: 9999px !important; background: #536a41 !important; color: #f7f3e9 !important; text-align: center !important;
  text-decoration: none !important; cursor: pointer; font: 500 16px/1.2 Lato, -apple-system, "system-ui", "Segoe UI", sans-serif !important; }
.lls-modal .lls-cart-go, .lls-modal .lls-summary .lls-go, .lls-modal .lls-form .lls-go { margin-top: 20px !important; }
.lls-modal .lls-thanks-actions .lls-go + .lls-go { margin-top: 12px !important; }
.lls-modal .lls-go.lls-ghost { background: #fff !important; color: #536a41 !important; border: 1px solid #536a41 !important; }
.lls-modal .lls-go[disabled] { opacity: .75; cursor: progress; }
.lls-modal .lls-thanks:focus { outline: none; }

/* order lines (group orders) */
.lls-lines { display: flex; flex-direction: column; gap: 10px; }
.lls-form .lls-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; grid-template-areas: "series book x" "ed qty ."; gap: 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid #f1f2f4; }
.lls-form .lls-line label span { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: #6b7280; }
.lls-form .lls-l-qty input { text-align: right; }
.lls-l-amt { display: none; align-self: center; padding-top: 18px; text-align: right; font-weight: 600; color: #1f2933; font-size: 15px; }
.lls-l-x { align-self: center; margin-top: 18px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 18px; line-height: 1; cursor: pointer; }
.lls-l-x:hover { background: #e5e7eb; color: #1f2933; }
.lls-line-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 4px; }
.lls-line-actions .lls-link { font-weight: 600; font-size: 15px; }
.lls-form .lls-l-series { grid-area: series; } .lls-form .lls-l-book { grid-area: book; } .lls-form .lls-l-ed { grid-area: ed; } .lls-form .lls-l-qty { grid-area: qty; } .lls-l-x { grid-area: x; }
.lls-form .lls-line select, .lls-form .lls-line input { height: 44px; box-sizing: border-box; }
#lls-group-inline .lls-go { background: #536a41 !important; color: #f7f3e9 !important; border: 0 !important; }
#lls-group-inline .lls-go.lls-ghost { background: #fff !important; color: #536a41 !important; border: 1px solid #536a41 !important; }
#lls-group-inline .lls-go:hover { filter: brightness(1.08); }
#lls-group-inline .lls-form > .lls-lede { display: none; }
.lls-center { text-align: center; }
@media (max-width: 640px) {
  .lls-form .lls-line { grid-template-columns: 1fr 30px; grid-template-areas: "series x" "book book" "ed ed" "qty qty"; }
}
/* the order form living on the Press page itself */
#lls-group-inline .lls-panel { min-height: 0; padding: 0; background: transparent; }
#lls-group-inline .lls-form fieldset { background: #fff; }
#lls-group-inline .lls-form > .lls-title { display: none; }
#lls-group-inline .lls-go { display: block; width: 100%; box-sizing: border-box; margin-top: 16px; padding: 14px 18px; border-radius: 9999px; font-size: 16px; font-weight: 600; }
#lls-group-inline .lls-go.lls-ghost { margin-top: 12px; }
#lls-group-inline .lls-thanks { padding: 32px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; text-align: center; }
#lls-group-inline .lls-summary { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; }
#lls-group-inline .lls-qlines { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 6px 18px; margin: 0 0 14px; }

.lls-member span:last-child { color: #2e6b4a; font-weight: 600; }
.lls-hint a { color: inherit; font-weight: 600; }
/* inline order form: section titles sit inside their cards */
#lls-group-inline .lls-form fieldset { padding-top: 18px; }
#lls-group-inline .lls-form legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 17px; }
#lls-group-inline .lls-form legend + * { clear: both; }
#selected-buy { width: auto !important; min-width: 160px; justify-content: flex-end; }
.purchase-row #selected-buy lulu-buy-button { margin-right: 0 !important; margin-left: 0 !important; }   /* the Lulu button is wider than the box it was given */
.lls-member-note { margin: 12px 0 0; font: 15px/1.45 "DM Sans", Arial, sans-serif; color: #536a41; }
.lls-member-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Book purchase panel: price, button and subscriber note sit close together under the edition */
body:has(.ll-publications) .purchase-panel #edition-status { min-height: 0 !important; height: auto !important; }
body:has(.ll-publications) .purchase-panel .purchase-row, body:has(.ll-publications) .purchase-panel .purchase-row > div { min-height: 0 !important; height: auto !important; }
body:has(.ll-publications) .purchase-panel .purchase-row { margin-top: 4px !important; justify-content: flex-start !important; gap: 32px !important; }
body:has(.ll-publications) .purchase-panel .purchase-row #selected-buy { min-height: 0 !important; height: auto !important; }
body:has(.ll-publications) .purchase-panel .purchase-row lulu-buy-button { margin-top: 0 !important; margin-bottom: 0 !important; }
body:has(.ll-publications) .purchase-panel .lls-member-note { margin: -14px 0 0 !important; }

/* price row a little closer to the edition note; Sign in on its own line */
body:has(.ll-publications) .purchase-panel .purchase-row { margin-top: -10px !important; }
body:has(.ll-publications) .purchase-panel .lls-member-note a { display: block; width: max-content; margin-top: 2px; }
