/* 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 ---- */
.shop-overlay {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: rgba(0,0,0,.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.shop-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1002;
	width: 420px;
	max-width: 100%;
	background: #fff;
	color: #333;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .25s ease;
	box-shadow: -8px 0 24px rgba(0,0,0,.2);
	font-family: "Lato", Helvetica, Arial, sans-serif;
}
body.shop-open { overflow: hidden; }
body.shop-open .shop-overlay { opacity: 1; visibility: visible; }
body.shop-open .shop-drawer { transform: none; }
.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: #888; 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: #888;
	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; }

@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;
}
