/* Shopify cart (js/shopify-cart.js) - buy blocks, cart button, drawer */

/* ---- Buy block: price, quantity, Add to Cart ---- */
.shop-buy { margin: 10px 0 0; }
.shop-price {
	font-size: 30px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 14px;
}
.shop-price s { opacity: .6; font-weight: 400; font-size: 22px; }
.shop-price-label {
	display: block;
	font-size: 15px;
	font-weight: 400;
	opacity: .85;
}
.shop-loading { font-size: 18px; font-weight: 400; opacity: .7; }
.shop-buy-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.shop-buy-row .shop-add {
	margin: 0 !important;
	width: auto !important;
	white-space: nowrap !important;
}
.shop-light .shop-price { color: #222; }

/* quantity picker (buy block + drawer lines) */
.shop-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.shop-qty button {
	width: 32px;
	height: 32px;
	border: 0;
	background: #fff;
	color: #333;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.shop-qty button:hover { background: #f2ece2; }
.shop-qty span {
	min-width: 30px;
	text-align: center;
	font-weight: 700;
	color: #222;
}
.shop-qty-lg button { width: 44px; height: 46px; font-size: 22px; }
.shop-qty-lg span { min-width: 40px; font-size: 18px; }

/* ---- Floating cart button ---- */
.shop-cart-btn {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 1000;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: #e39b29;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
}
.shop-cart-btn.shop-has-items { display: flex; }
.shop-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #1f2d44;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
}

/* ---- Drawer: a native modal <dialog> (2026-11-22) ----
   The browser's top layer replaces the old overlay div and z-index, and
   ::backdrop is the dimmed page. It slides in from the right (a plain fade
   for people who ask for reduced motion). In Firefox and Safari the
   script adds data-closing to slide it out before closing. */
.shop-drawer {
	/* undo the browser's centered-dialog styles */
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	width: 420px;
	max-width: 100%;
	height: 100%;
	max-height: none;
	overflow: hidden;
	background: #fff;
	color: #333;
	box-shadow: -8px 0 24px rgba(0,0,0,.2);
	font-family: "Lato", Helvetica, Arial, sans-serif;
	opacity: 0;
	transition-property: opacity, transform, display, overlay;
	transition-duration: .25s;
	transition-timing-function: ease;
	transition-behavior: allow-discrete;
}
.shop-drawer[open] { display: flex; flex-direction: column; }
.shop-drawer[open]:not([data-closing]) { opacity: 1; }
@starting-style { .shop-drawer[open]:not([data-closing]) { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.shop-drawer { transform: translateX(100%); }
	.shop-drawer[open]:not([data-closing]) { transform: none; }
	@starting-style { .shop-drawer[open]:not([data-closing]) { transform: translateX(100%); } }
}
@media (prefers-reduced-motion: reduce) {
	.shop-drawer, .shop-drawer::backdrop { transition-duration: .1s; }
}
/* Scrolling over the dimmed page or past the end of the cart must not
   scroll the page behind it. */
.shop-drawer:modal { overscroll-behavior: contain; }
.shop-drawer::backdrop {
	overflow: hidden;
	overscroll-behavior: contain;
	background-color: rgba(0,0,0,0);
	transition-property: background-color, display, overlay;
	transition-duration: .25s;
	transition-behavior: allow-discrete;
}
.shop-drawer[open]:not([data-closing])::backdrop { background-color: rgba(0,0,0,.45); }
@starting-style { .shop-drawer[open]:not([data-closing])::backdrop { background-color: rgba(0,0,0,0); } }

/* ---- Confirm boxes (empty cart, remove a bundle, already in cart) ----
   Native modal <dialog>s, so they open on top of the drawer. */
.shop-confirm {
	width: min(420px, calc(100vw - 32px));
	max-width: none;
	padding: 26px 26px 22px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #333;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	font-family: "Lato", Helvetica, Arial, sans-serif;
	text-align: center;
	opacity: 1;
	transition: opacity .2s ease;
}
@starting-style { .shop-confirm[open] { opacity: 0; } }
.shop-confirm:modal { overscroll-behavior: contain; }
.shop-confirm::backdrop { background: rgba(0,0,0,.45); overflow: hidden; overscroll-behavior: contain; }
.shop-confirm-title { margin: 0 0 10px; color: #1b2b40; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.shop-confirm-text { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: #444; }
.shop-confirm-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.shop-confirm-btns button {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	font: 700 15px "Lato", Helvetica, Arial, sans-serif;
	cursor: pointer;
}
.shop-confirm-no { background: #44597a; color: #fff; }
.shop-confirm-yes { background: #b42318; color: #fff; }
.shop-confirm-btns button:hover { filter: brightness(1.1); }
.shop-busy { cursor: progress; }
.shop-busy .shop-lines, .shop-busy .shop-drawer-foot { opacity: .6; pointer-events: none; }

.shop-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #eee;
}
.shop-drawer-head h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
}
.shop-empty-btn {
	margin: 0 14px 0 auto;
	border: 0;
	background: none;
	padding: 4px 0;
	font-size: 14px;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}
.shop-empty-btn:hover { color: #b42318; }
.shop-close {
	border: 0;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.shop-lines { flex: 1 1 auto; overflow-y: auto; padding: 8px 22px; }
.shop-empty { margin: 40px 0; text-align: center; color: #5f5f5f; font-size: 17px; }
.shop-line {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
}
.shop-line img { width: 64px; height: auto; align-self: flex-start; border-radius: 3px; }
.shop-line-info { flex: 1 1 auto; }
.shop-line-title { font-weight: 700; font-size: 16px; color: #222; margin-bottom: 2px; }
.shop-ebook .shop-line-title,
.shop-ebook .shop-line-variant,
.shop-ebook .shop-line-price { color: #2e7d32; }
.shop-line-variant { font-size: 14px; color: #777; margin-bottom: 6px; }
.shop-line-info .shop-qty { margin-top: 8px; }
.shop-line-tag { display: inline-block; margin: 2px 0 4px; padding: 1px 8px; border-radius: 10px; background: #eef2f8; color: #44597a; font-size: 12px; font-weight: 700; }
.shop-remove {
	display: block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #5f5f5f;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.shop-line-price { font-weight: 700; white-space: nowrap; text-align: right; }
.shop-line-price s { display: block; font-weight: 400; color: #999; font-size: 13px; }

.shop-drawer-foot { padding: 16px 22px 20px; border-top: 1px solid #eee; background: #faf8f4; }
.shop-code-form { display: flex; gap: 8px; }
.shop-code-form input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	text-transform: uppercase;
}
.shop-code-apply {
	height: 42px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	background: #1f2d44;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.shop-code-msg { min-height: 20px; margin: 6px 0 2px; font-size: 14px; }
.shop-ok { color: #2e7d32; }
.shop-err { color: #c62828; }
.shop-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.shop-code-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 4px 3px 10px;
	border-radius: 14px;
	background: #f2e3c9;
	color: #6b4a12;
	font-size: 13px;
	font-weight: 700;
}
.shop-code-tag button {
	border: 0;
	background: none;
	color: #6b4a12;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.shop-totals { margin: 6px 0 14px; }
.shop-total-row { display: flex; justify-content: space-between; font-size: 16px; margin: 4px 0; }
.shop-discount { color: #2e7d32; font-weight: 700; }
.shop-regular { color: #777; }
.shop-grand { font-size: 20px; font-weight: 700; color: #222; }
.shop-checkout {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 6px;
	background: #e39b29;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 700;
	font-style: italic;
	cursor: pointer;
}
.shop-checkout:hover { background: #c9871f; }
.shop-checkout:disabled, .shop-checkout:disabled:hover { background: #c8c8c8; color: #f4f4f4; cursor: not-allowed; }
.shop-min-note { margin: 0 0 8px; font-size: 14px; color: #8a5a00; text-align: center; }
.shop-min-note:empty { display: none; }
.shop-note { margin: 10px 0 0; font-size: 13px; color: #777; text-align: center; }

/* "Ship to" country menu (sets the currency) - in the drawer and in any
   <div class="shop-country"></div>. Takes the text color of where it sits. */
.shop-country { margin: 12px 0; }
.shop-country-center { text-align: center; }
.shop-country-pick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: inherit;
	cursor: pointer;
}
.shop-country-lbl { font-weight: 700; }
.shop-country-pick select {
	max-width: 100%;
	padding: 6px 28px 6px 10px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.shop-country-pick select option { color: #222; background: #fff; }
.shop-country-pick select:disabled { opacity: .6; cursor: wait; }
.shop-drawer-foot .shop-country-pick { display: flex; justify-content: center; margin: 4px 0 10px; color: #333; font-size: 14px; }

@media (max-width: 991px) {
	.shop-buy-row { justify-content: center; }
}
@media (max-width: 600px) {
	.shop-cart-btn { top: 12px; right: 12px; width: 50px; height: 50px; }
	.shop-drawer-head, .shop-lines, .shop-drawer-foot { padding-left: 16px; padding-right: 16px; }
}

/* Bundle upsell offer under the cart lines (bundles.asp sets it) */
.shop-upsell {
	margin: 16px 0 8px;
	padding: 12px 14px;
	border: 2px dashed #e39b29;
	border-radius: 8px;
	background: #fffaf1;
}
.shop-upsell-tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #b06f0a; margin-bottom: 8px; }
.shop-upsell-row { display: flex; gap: 12px; }
.shop-upsell-row img { width: 56px; height: auto; align-self: flex-start; border-radius: 3px; }
.shop-upsell-info { flex: 1 1 auto; }
.shop-upsell-title { font-weight: 700; font-size: 15px; color: #222; }
.shop-upsell-price { margin: 3px 0 8px; font-size: 14px; color: #2e7d32; font-weight: 700; }
.shop-upsell-price s { color: #999; font-weight: 400; }
.shop-upsell-add {
	padding: 7px 14px;
	border: 0;
	border-radius: 6px;
	background: #1f2d44;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.shop-upsell-add:disabled { opacity: .6; cursor: default; }

/* Free eBook line in the drawer (bundles.asp sets it) */
.shop-gift {
	margin: 6px 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: #1a7f37;
}
