/* The basket is separate from saved resources and works across the whole shelf. */
.basket-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 9px;border:1px solid #c5d3bd;border-radius:7px;background:#fffefa;color:#183e33;font-size:.875rem;font-weight:650;line-height:1.2;white-space:nowrap;flex-shrink:0}
.basket-trigger:hover{background:#edf2e7;border-color:#7e9c71}
.basket-trigger svg{width:20px;height:20px;flex-shrink:0}
.basket-count{display:inline-grid;place-items:center;min-width:23px;min-height:23px;padding:2px 5px;border-radius:50%;background:#183e33;color:#fffefa;font-size:.875rem;font-weight:700;line-height:1}
.basket-dialog{position:fixed;border:1px solid #c5d3bd;border-radius:16px;background:#fffefa;color:#183e33;width:740px;max-width:calc(100% - 32px);max-height:90dvh;padding:34px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 100px #102d2540;font-size:1rem}
.basket-dialog::backdrop{background:#183e3370;backdrop-filter:blur(3px)}
.basket-close{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:50%;background:#fffefa;color:#183e33;font-size:1.8rem;line-height:1}
.basket-close:hover{background:#eaf0e3;border-color:#cfdbbf}
.basket-heading{padding-right:40px}
.basket-heading h2,.basket-dialog>h2{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:clamp(2rem,5vw,2.8rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 15px}
.basket-intro{font-size:1rem;line-height:1.7;color:#526b5a;margin:0 35px 24px 0}
.basket-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px 0;border-top:1px solid #dce5d3}
.basket-item-cover{display:block;width:64px;height:90px;object-fit:contain;border:1px solid #d7dfcf;box-shadow:2px 3px 8px #183e3315;background:#edf2e7}
.basket-item-copy{min-width:0}
.basket-item-copy h3{font-size:1rem;line-height:1.45;letter-spacing:-.015em;margin:0 0 8px}
.basket-item-copy h3 a{text-decoration:underline;text-underline-offset:3px}
.basket-item-copy p{font-size:.875rem;line-height:1.6;margin:0;color:#526b5a}
.basket-item-copy strong{color:#183e33;font-size:1rem}
.basket-remove{min-width:44px;min-height:44px;padding:9px 11px;border:1px solid #c5d3bd;border-radius:6px;color:#183e33;background:#fffefa;font-size:.875rem;font-weight:600;line-height:1.4}
.basket-remove:hover{background:#f5e6dc;border-color:#b99580}
.basket-empty{padding:26px 24px;background:#edf2e7;border:1px dashed #b4c8a8;border-radius:10px;margin:18px 0 24px;font-size:1rem;line-height:1.75;color:#435f51}
.basket-empty p{font-size:1rem;line-height:1.75;margin:0}
.basket-empty a{text-decoration:underline;text-underline-offset:4px}
.basket-summary{padding-top:23px;border-top:1px solid #cddbc4;margin-top:5px}
.basket-total{display:flex;justify-content:space-between;align-items:baseline;gap:18px;margin-bottom:19px;font-size:1.1rem;font-weight:650;color:#183e33}
.basket-total strong{font-size:1.55rem;line-height:1.2}
.basket-checkout{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:14px 22px;border:1px solid #1f533f;border-radius:8px;background:#1f533f;color:#fffefa;font-size:1rem;font-weight:650;line-height:1.4;text-align:center;text-decoration:none}
.basket-checkout:hover{background:#30664f;border-color:#30664f}
.basket-checkout:disabled,.basket-checkout[aria-disabled="true"]{background:#e3e9de;border-color:#cbd5c3;color:#65735e;cursor:default;opacity:1}
.basket-note{font-size:.875rem;line-height:1.7;color:#526b5a;margin:14px 0 0}
.basket-note a{text-decoration:underline;text-underline-offset:3px}
.basket-toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:80;background:#183e33;color:white;border-radius:8px;padding:13px 22px;max-width:calc(100% - 36px);width:max-content;font-size:.875rem;line-height:1.5;text-align:center;box-shadow:0 5px 20px #183e3325;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.basket-toast.visible,.basket-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.add-basket-button,.resource-bottom .add-basket-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:11px 15px;border:1px solid #1f533f;border-radius:6px;background:#1f533f;color:#fffefa;font-size:.875rem;font-weight:650;line-height:1.4;text-align:center;white-space:normal}
.add-basket-button:hover,.resource-bottom .add-basket-button:hover{background:#30664f;border-color:#30664f}
.add-basket-button.basket-added,.add-basket-button[aria-pressed="true"],.resource-bottom .add-basket-button.basket-added{background:#e8efde;border-color:#a6bd96;color:#244d33}
.basket-trigger:focus-visible,.basket-close:focus-visible,.basket-remove:focus-visible,.basket-checkout:focus-visible,.add-basket-button:focus-visible{outline:3px solid #c97622;outline-offset:4px}
@media(max-width:850px){.nav-actions .basket-trigger{padding-left:7px;padding-right:7px}.guide-nav .basket-trigger{font-size:.875rem}}
@media(max-width:620px){.basket-trigger-label{display:none}.basket-trigger{gap:5px;padding:7px;min-width:63px}.nav-actions .basket-trigger{padding:7px}.guide-nav{flex-wrap:wrap}.basket-dialog{padding:29px 22px 24px;max-height:92dvh;max-width:calc(100% - 24px);border-radius:13px}.basket-heading h2,.basket-dialog>h2{font-size:2rem}.basket-intro{margin-right:18px}.basket-item{grid-template-columns:52px minmax(0,1fr) auto;gap:11px;padding:18px 0}.basket-item-cover{width:52px;height:74px}.basket-item-copy h3{font-size:1rem;line-height:1.4}.basket-remove{padding:9px;font-size:.875rem;max-width:72px;overflow-wrap:anywhere}.basket-total{font-size:1rem}.basket-total strong{font-size:1.4rem}.basket-checkout{font-size:1rem}.basket-toast{bottom:20px;font-size:.875rem}.has-purchase-dock .basket-toast{bottom:108px}.resource-bottom .add-basket-button{min-height:44px;font-size:.875rem}.product-actions .add-basket-button{font-size:1rem;width:100%}}
@media(max-width:360px){.basket-item{grid-template-columns:44px minmax(0,1fr);gap:11px}.basket-item-cover{width:44px;height:62px;grid-row:span 2}.basket-remove{grid-column:2;justify-self:start;max-width:none}.basket-item-copy h3{margin-bottom:5px}.basket-item-copy p{line-height:1.5}.basket-trigger{min-width:59px}}
@media(prefers-reduced-motion:reduce){.basket-toast{transition:none}}
@media print{.basket-trigger,.basket-dialog,.basket-toast,.add-basket-button{display:none!important}}


/* Keep browsing and single-guide checkout available when JavaScript is off. */
html:not([data-basket-enabled="true"]) .add-basket-button,html:not([data-basket-enabled="true"]) .buy-dock{display:none!important}
.basket-single-buy{font-size:.875rem;font-weight:650;text-decoration:underline;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px;padding:4px 0}.buy-box .basket-single-buy{color:#fffbe9;margin-left:18px}.card-taster{flex-wrap:wrap}.library-card-content .basket-single-buy{align-self:flex-start;margin-top:8px}.buy-dock p{min-width:0}
@media(max-width:620px){.site-header:not(.guide-header) .nav-wrap{flex-wrap:wrap;row-gap:10px}.site-header:not(.guide-header) .nav-actions{margin-left:auto;gap:10px}.buy-box .basket-single-buy{display:flex;margin-left:0;justify-content:center;margin-top:10px}}
