:root {
	--enq-primary: #40A038;
	--enq-accent: #1C6B2E;
	--enq-btn-text: #fff;
	--enq-btn-bg: var(--enq-primary);
	--enq-btn-bg-hover: var(--enq-accent);
	--enq-btn-text-hover: #fff;
	--enq-btn-bg-active: #164f23;
	--enq-btn-text-active: #fff;
	--enq-btn-size: 15px;
	--enq-btn-radius: 30px;
	--enq-btn-pad: 12px 26px;
	--enq-radius: 12px;
	--enq-border: #dde5dd;
	--enq-border-soft: #eef2ee;
	--enq-ink: #1b1b1b;
	--enq-ink-soft: #666;
	--enq-font-head: Georgia, 'Times New Roman', serif;
	--enq-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================
   HARD RESET — stop the active theme from styling our UI.
   Everything inside the drawer / page wrapper is normalised
   first, then styled from scratch below.
   ========================================================= */
#enqcart-drawer,
#enqcart-drawer *,
.enqcart-page,
.enqcart-page * {
	box-sizing: border-box !important;
	text-shadow: none !important;
	letter-spacing: normal;
}
#enqcart-drawer button,
.enqcart-page button {
	all: unset;
	box-sizing: border-box !important;
	cursor: pointer;
	font-family: var(--enq-font-body);
	text-align: center;
}
#enqcart-drawer input,
#enqcart-drawer textarea,
.enqcart-page input,
.enqcart-page textarea {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: #fff !important;
	color: var(--enq-ink) !important;
	box-shadow: none !important;
	margin: 0;
	font-family: var(--enq-font-body) !important;
}

/* ---------- Add-to-Enquiry button ---------- */
.enqcart-btn,
#enqcart-drawer .enqcart-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: var(--enq-btn-pad) !important;
	background: var(--enq-btn-bg, var(--enq-primary)) !important;
	color: var(--enq-btn-text) !important;
	border: 0 !important;
	border-radius: var(--enq-btn-radius) !important;
	font: 600 var(--enq-btn-size)/1 var(--enq-font-body) !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .18s, transform .12s;
}
.enqcart-btn:hover,
#enqcart-drawer .enqcart-btn:hover { background: var(--enq-btn-bg-hover, var(--enq-accent)) !important; color: var(--enq-btn-text-hover, var(--enq-btn-text)) !important; }
.enqcart-btn:active { transform: scale(.97); background: var(--enq-btn-bg-active) !important; color: var(--enq-btn-text-active) !important; }
.enqcart-btn.is-added { background: var(--enq-btn-bg-active, var(--enq-accent)) !important; color: var(--enq-btn-text-active, var(--enq-btn-text)) !important; }

/* ---------- floating pill ---------- */
.enqcart-pill {
	position: fixed;
	z-index: 99998;
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 12px 18px !important;
	background: var(--enq-primary) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 30px !important;
	box-shadow: 0 6px 20px rgba(0,0,0,.2) !important;
	cursor: pointer;
	font: 600 15px/1 var(--enq-font-body) !important;
	transition: background .18s;
}
.enqcart-pill[hidden] { display: none !important; }
.enqcart-pill:hover { background: var(--enq-accent) !important; }
.enqcart-pill--bottom-right { right: 20px; bottom: 20px; }
.enqcart-pill--bottom-left  { left: 20px; bottom: 20px; }
.enqcart-pill--top-right    { right: 20px; top: 90px; }
.enqcart-pill__count {
	min-width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--enq-accent);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}

/* ---------- scrim + drawer ---------- */
.enqcart-scrim {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 20, .5);
	z-index: 99998;
	opacity: 0;
	transition: opacity .25s;
}
.enqcart-scrim.is-open { opacity: 1; }

#enqcart-drawer.enqcart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 560px;
	max-width: 100vw;
	background: #fff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .25s ease;
	box-shadow: -8px 0 30px rgba(0,0,0,.15);
	font-family: var(--enq-font-body);
	margin: 0;
	padding: 0;
	border: 0;
}
#enqcart-drawer.enqcart-drawer[hidden] { display: none; }
#enqcart-drawer.enqcart-drawer.is-open { transform: translateX(0); }
body.enqcart-lock { overflow: hidden; }

/* head */
#enqcart-drawer .enqcart-drawer__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--enq-border-soft);
	background: #f6faf6;
}
#enqcart-drawer .enqcart-drawer__head h2 {
	margin: 0 !important;
	padding: 0;
	font: 700 24px/1.2 var(--enq-font-head) !important;
	color: var(--enq-accent) !important;
}
#enqcart-drawer .enqcart-drawer__tagline {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--enq-ink-soft);
}
#enqcart-drawer .enqcart-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 26px;
	line-height: 1;
	color: var(--enq-accent);
	border-radius: 8px;
	flex: 0 0 auto;
}
#enqcart-drawer .enqcart-close:hover { background: #e7efe7; color: #143f1e; }

#enqcart-drawer .enqcart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px 40px;
}

/* ---------- items ---------- */
#enqcart-drawer .enqcart-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--enq-border-soft) !important;
	border-radius: var(--enq-radius);
	margin: 0 0 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
#enqcart-drawer .enqcart-item__img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px !important;
	flex: 0 0 64px;
	background: #f2f5f2;
	display: block;
	border: 1px solid var(--enq-border-soft);
	box-shadow: none !important;
	margin: 0 !important;
	max-width: none;
}
#enqcart-drawer .enqcart-item__info { flex: 1; min-width: 0; }
#enqcart-drawer .enqcart-item__title {
	display: block;
	font-weight: 600 !important;
	color: var(--enq-ink) !important;
	text-decoration: none !important;
	font-size: 15px !important;
	line-height: 1.35;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#enqcart-drawer .enqcart-item__title:hover { color: var(--enq-primary) !important; }
#enqcart-drawer .enqcart-item__sku { display: block; font-size: 12px; color: #888; margin-bottom: 8px; }
.enqcart-item__var { display: block; font-size: 12px; color: #1C6B2E; font-weight: 600; margin: 2px 0; }

/* qty stepper */
#enqcart-drawer .enqcart-item__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--enq-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
#enqcart-drawer .enqcart-qbtn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f4f7f4;
	font-size: 16px;
	font-weight: 600;
	color: var(--enq-accent);
	border-radius: 0;
}
#enqcart-drawer .enqcart-qbtn:hover { background: #e7efe7; }
#enqcart-drawer .enqcart-qinput {
	width: 46px !important;
	height: 30px !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	text-align: center;
	font-size: 14px !important;
	-moz-appearance: textfield;
}
#enqcart-drawer .enqcart-qinput:focus { outline: none !important; box-shadow: none !important; }
#enqcart-drawer .enqcart-qinput::-webkit-outer-spin-button,
#enqcart-drawer .enqcart-qinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* remove — soft red pill, like the mock */
#enqcart-drawer .enqcart-item__remove {
	align-self: center;
	flex: 0 0 auto;
	padding: 6px 14px;
	background: #fbeaea;
	color: #c0392b;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	line-height: 1.2;
	transition: background .15s;
}
#enqcart-drawer .enqcart-item__remove:hover { background: #f5d5d5; color: #a93226; }

#enqcart-drawer .enqcart-empty {
	text-align: center;
	color: #777;
	padding: 40px 16px;
	font-size: 15px;
}

/* ---------- form ---------- */
#enqcart-drawer .enqcart-form,
.enqcart-page .enqcart-form { margin-top: 24px; }
#enqcart-drawer .enqcart-form h3,
.enqcart-page .enqcart-form h3 {
	font: 700 18px/1.2 var(--enq-font-head) !important;
	color: var(--enq-accent) !important;
	margin: 0 0 16px !important;
	padding: 0;
}
#enqcart-drawer .enqcart-form label,
.enqcart-page .enqcart-form label {
	display: block;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #333 !important;
	margin: 0 0 16px !important;
	line-height: 1.4;
}
#enqcart-drawer .enqcart-form input,
#enqcart-drawer .enqcart-form textarea,
.enqcart-page .enqcart-form input,
.enqcart-page .enqcart-form textarea {
	display: block;
	width: 100% !important;
	margin-top: 6px !important;
	padding: 12px 14px !important;
	min-height: 0;
	border: 1px solid var(--enq-border) !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	font-weight: 400 !important;
	transition: border-color .15s, box-shadow .15s;
}
#enqcart-drawer .enqcart-form input::placeholder,
#enqcart-drawer .enqcart-form textarea::placeholder,
.enqcart-page .enqcart-form input::placeholder,
.enqcart-page .enqcart-form textarea::placeholder { color: #9aa39a; opacity: 1; }
#enqcart-drawer .enqcart-form input:focus,
#enqcart-drawer .enqcart-form textarea:focus,
.enqcart-page .enqcart-form input:focus,
.enqcart-page .enqcart-form textarea:focus {
	outline: none !important;
	border-color: var(--enq-primary) !important;
	box-shadow: 0 0 0 3px rgba(64,160,56,.15) !important;
}
.enqcart-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
#enqcart-drawer .enqcart-form__error,
.enqcart-page .enqcart-form__error { color: #c0392b !important; font-size: 14px; margin: 0 0 12px; }
#enqcart-drawer .enqcart-btn--submit,
.enqcart-page .enqcart-btn--submit {
	width: 100% !important;
	padding: 15px !important;
	font-size: 16px !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 8px rgba(28,107,46,.25);
}

/* ---------- success ---------- */
.enqcart-success { text-align: center; padding: 48px 20px; }
.enqcart-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--enq-primary);
	color: #fff;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.enqcart-success p { font-size: 16px; color: #333; }

/* ---------- full page ---------- */
.enqcart-page { max-width: 760px; margin: 0 auto; font-family: var(--enq-font-body); }
.enqcart-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

@media (max-width: 640px) {
	#enqcart-drawer.enqcart-drawer { width: 100vw; }
	.enqcart-form__grid { grid-template-columns: 1fr; }
	#enqcart-drawer .enqcart-item__title { white-space: normal; }
}

/* ---------- header / menu cart icon ([enquiry_cart_icon]) ---------- */
.enqcart-headicon {
	all: unset;
	box-sizing: border-box !important;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	vertical-align: middle;
}
.enqcart-headicon:hover { color: var(--enq-primary); }
.enqcart-headicon__count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--enq-primary);
	color: #fff;
	border-radius: 10px;
	font: 700 11px/1 var(--enq-font-body);
}
.enqcart-headicon__count[hidden] { display: none; }

/* Button group: [qty | add] / [buy] */
.enqcart-group { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.enqcart-group__row { display: flex; align-items: stretch; gap: 10px; }
.enqcart-group__row .enqcart-btn { flex: 1; }
.enqcart-group--stacked .enqcart-btn,
.enqcart-group .enqcart-buy { width: 100%; }
.enqcart-buy {
	border: 0; cursor: pointer; font-weight: 600; text-align: center;
	background: var(--enq-buy-bg, var(--enq-accent)) !important;
	color: var(--enq-buy-text, #fff) !important;
	font-size: var(--enq-btn-size, 15px);
	border-radius: var(--enq-btn-radius, 30px);
	padding: var(--enq-btn-pad, 12px 26px);
	transition: background .15s ease, color .15s ease;
}
.enqcart-buy:hover { background: var(--enq-buy-bg-hover, var(--enq-buy-bg)) !important; color: var(--enq-buy-text-hover, var(--enq-buy-text)) !important; }
.enqcart-buy:active { transform: scale(.98); }
.enqcart-addqty { display: inline-flex; align-items: stretch; flex: 0 0 auto; border: 1px solid #cfd8cf; border-radius: 8px; overflow: hidden; background: #fff; }
.enqcart-addqty button { border: 0; background: #f4f7f4; color: #1C6B2E; width: 36px; font-size: 17px; font-weight: 700; cursor: pointer; line-height: 1; }
.enqcart-addqty button:hover { background: #e7efe7; }
.enqcart-addqty input { border: 0; width: 52px; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; outline: none; }
.enqcart-addqty input::-webkit-outer-spin-button, .enqcart-addqty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.enqcart-btn.is-added { pointer-events: none; }

/* ---------- Toast ---------- */
#enqcart-toasts { position: fixed; z-index: 100000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(380px, calc(100vw - 32px)); }
.enqcart-toasts--bottom-right { right: 16px; bottom: 16px; }
.enqcart-toasts--bottom-center { left: 50%; transform: translateX(-50%); bottom: 16px; }
.enqcart-toasts--top-right { right: 16px; top: 16px; }
.enqcart-toasts--top-center { left: 50%; transform: translateX(-50%); top: 16px; }

.enqcart-toast {
	pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #e4ece4; border-left: 4px solid var(--enq-primary, #40A038);
	border-radius: 12px; padding: 12px 34px 12px 12px; width: 100%;
	box-shadow: 0 10px 30px rgba(17, 24, 15, .16);
	font-family: var(--enq-font-body, sans-serif);
	opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.3,1.2);
	overflow: hidden;
}
.enqcart-toasts--top-right .enqcart-toast, .enqcart-toasts--top-center .enqcart-toast { transform: translateY(-14px) scale(.97); }
.enqcart-toast.is-in { opacity: 1; transform: translateY(0) scale(1); }
.enqcart-toast__check {
	flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--enq-primary, #40A038); color: #fff;
	animation: enqPop .45s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes enqPop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.enqcart-toast__img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.enqcart-toast__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.enqcart-toast__body strong { font-size: 13px; color: #11180F; line-height: 1.2; }
.enqcart-toast__name { font-size: 12.5px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enqcart-toast__var { font-size: 11.5px; color: var(--enq-accent, #1C6B2E); font-weight: 600; }
.enqcart-toast__view {
	flex: 0 0 auto; border: 0; cursor: pointer; font-size: 12px; font-weight: 700;
	color: var(--enq-accent, #1C6B2E); background: #eef6ee; border-radius: 20px; padding: 6px 12px;
}
.enqcart-toast__view:hover { background: #dfeedf; }
.enqcart-toast__close {
	position: absolute; top: 6px; right: 8px; border: 0; background: none; cursor: pointer;
	font-size: 16px; line-height: 1; color: #9aa; padding: 2px;
}
.enqcart-toast__close:hover { color: #445; }
.enqcart-toast__bar {
	position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	background: var(--enq-primary, #40A038); transform-origin: left;
	animation: enqBar 4s linear forwards;
}
.enqcart-toast.is-hold .enqcart-toast__bar { animation-play-state: paused; }
@keyframes enqBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 480px) {
	.enqcart-toast__img { display: none; }
}

/* ---------- Confetti ---------- */
.enqcart-confetti {
	position: fixed; z-index: 100001; pointer-events: none; left: 0; top: 0;
	animation: enqConfetti .85s cubic-bezier(.15,.85,.35,1) forwards;
}
@keyframes enqConfetti {
	0%   { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
	100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 60px)) scale(.5) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Change variation in cart ---------- */
.enqcart-item__change {
	border: 0; background: none; cursor: pointer; padding: 0; margin-left: 6px;
	font-size: 11px; font-weight: 700; color: var(--enq-accent, #1C6B2E);
	text-decoration: underline; text-underline-offset: 2px;
}
.enqcart-item__change:hover { color: var(--enq-primary, #40A038); }
.enqcart-item__change:disabled { opacity: .5; cursor: wait; }
.enqcart-varedit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.enqcart-varedit select {
	font-size: 12px; padding: 4px 6px; border: 1px solid #cfd8cf; border-radius: 6px; background: #fff; max-width: 140px;
}
.enqcart-varedit__ok {
	border: 0; cursor: pointer; font-size: 12px; font-weight: 700; color: #fff;
	background: var(--enq-primary, #40A038); border-radius: 6px; padding: 5px 12px;
}
.enqcart-varedit__ok:hover { background: var(--enq-accent, #1C6B2E); }
.enqcart-varedit__cancel {
	border: 0; background: none; cursor: pointer; font-size: 15px; color: #99a; padding: 2px 4px;
}
.enqcart-varedit__cancel:hover { color: #445; }
