/* ========= Misu BOGO Pro ========= */

:root {
	--mbp-accent: #dc6e4c;
	--mbp-green: #1a9e3f;
}

/* ---- Floating cart button (circle, like reference) ---- */
.mbp-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99998;
	background: #fff;
	color: #111;
	border: none;
	border-radius: 50%;
	width: 58px;
	height: 58px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.mbp-fab-icon {
	font-size: 24px;
	line-height: 1;
}

/* Floating count badge — sits on top of the circle */
.mbp-fab-count {
	position: absolute;
	top: -6px;
	left: -6px;
	background: #111;
	color: #fff;
	border-radius: 50%;
	min-width: 24px;
	height: 24px;
	line-height: 24px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	padding: 0 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* ---- Overlay ---- */
.mbp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 99998;
	opacity: 0;
	transition: opacity .25s ease;
}
.mbp-overlay.open { opacity: 1; }

/* ---- Drawer shell ---- */
.mbp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100dvh;
	width: 400px;
	max-width: 94vw;
	background: #fff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform .28s ease;
	box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
	font-size: 14px;
	font-family: inherit;
}
.mbp-drawer.open { transform: translateX(0); }

.mbp-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	font-weight: 800;
	font-size: 17px;
	border-bottom: 1px solid #eee;
	background: #fff;
}

.mbp-head-count {
	background: #111;
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	display: inline-block;
	text-align: center;
	vertical-align: middle;
	margin-left: 4px;
}

.mbp-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
	color: #111;
}

/* ---- Body (light grey, like reference) ---- */
.mbp-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f4f4f5;
}

/* ---- Product cards ---- */
.mbp-item {
	position: relative;
	display: flex;
	gap: 14px;
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.mbp-item-thumb {
	position: relative;
	flex: 0 0 84px;
}

.mbp-item-thumb {
	width: 84px;
	height: 84px;
	overflow: visible;
}
.mbp-item-thumb img,
img.mbp-item-img {
	width: 84px !important;
	height: 84px !important;
	max-width: 84px !important;
	max-height: 84px !important;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	margin: 0 !important;
	float: none !important;
}

.mbp-item-tag {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--mbp-green);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 10px;
	white-space: nowrap;
}

.mbp-item-info {
	flex: 1;
	min-width: 0;
	padding-right: 26px;
}

.mbp-item-name {
	font-weight: 700;
	font-size: 15px;
	color: #111;
	margin-bottom: 3px;
	line-height: 1.3;
}

.mbp-item-meta {
	font-style: italic;
	font-size: 12px;
	color: #555;
	margin-bottom: 3px;
}
.mbp-item-meta p,
.mbp-item-meta dl,
.mbp-item-meta dt,
.mbp-item-meta dd {
	display: inline;
	margin: 0;
	padding: 0;
}

.mbp-item-qty {
	font-size: 13px;
	color: #333;
	margin-bottom: 3px;
}

.mbp-item-price {
	font-size: 13px;
	color: #333;
}
.mbp-item-price del {
	color: #999;
	margin-right: 4px;
}
.mbp-item-price-now {
	color: var(--mbp-accent);
	font-weight: 700;
}

.mbp-item-remove {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	color: #333;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
}
.mbp-item-remove:hover { color: #e21a1a; }
.mbp-item-remove.loading { opacity: .4; pointer-events: none; }

/* ---- Empty state ---- */
.mbp-empty {
	text-align: center;
	padding: 60px 20px;
	font-size: 40px;
	color: #999;
}
.mbp-empty p {
	font-size: 15px;
	margin-top: 10px;
	font-weight: 600;
}

/* ---- Free-product picker ---- */
.mbp-picker {
	margin-top: 6px;
	padding: 14px;
	background: #fffcfb;
	border: 2px dashed var(--mbp-accent);
	border-radius: 12px;
}

.mbp-picker-title {
	text-align: center;
	font-weight: 800;
	margin-bottom: 10px;
	color: #111;
}

.mbp-picker-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px;
	margin-bottom: 8px;
	padding: 8px 10px;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fff;
}

.mbp-picker-thumb {
	flex: 0 0 45px;
	width: 45px;
	height: 45px;
	overflow: hidden;
	border-radius: 8px;
}
.mbp-picker-thumb img {
	width: 45px !important;
	height: 45px !important;
	max-width: 45px !important;
	max-height: 45px !important;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	margin: 0 !important;
	float: none !important;
}

.mbp-picker-name {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

.mbp-picker-btn {
	color: #fff !important;
	border: none;
	padding: 6px 14px;
	border-radius: 15px;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
}
.mbp-picker-btn.loading { opacity: .5; pointer-events: none; }

/* ---- Footer ---- */
.mbp-drawer-foot {
	padding: 14px 18px 16px;
	border-top: 1px solid #eee;
	background: #fff;
}

.mbp-savings-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--mbp-green);
	font-weight: 600;
	margin-bottom: 6px;
}
.mbp-savings-amt,
.mbp-savings-amt * {
	color: var(--mbp-green) !important;
	font-weight: 700 !important;
}

.mbp-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 800;
	color: #111;
	margin-bottom: 4px;
}
.mbp-subtotal-amt,
.mbp-subtotal-amt .woocommerce-Price-amount {
	color: #111 !important;
	font-weight: 800;
}

.mbp-taxnote {
	font-size: 11.5px;
	color: #666;
	margin-bottom: 12px;
}

.mbp-lock-msg {
	background: #fff3cd;
	color: #856404;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
	font-size: 12px;
	text-align: center;
	font-weight: 700;
}

.mbp-checkout-btn {
	display: block;
	text-align: center;
	background: var(--mbp-accent);
	color: #fff !important;
	padding: 14px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 15px;
	text-decoration: none !important;
	transition: opacity .15s ease;
}
.mbp-checkout-btn,
.mbp-checkout-btn * {
	color: #fff !important;
}
.mbp-checkout-btn.mbp-disabled {
	opacity: .45;
	pointer-events: none;
	cursor: not-allowed;
}

/* Lock message injected next to theme/plugin checkout buttons */
.mbp-external-lock-msg {
	background: #fff3cd;
	color: #856404;
	padding: 10px;
	margin: 10px 0;
	border-radius: 6px;
	font-size: 12px;
	text-align: center;
	font-weight: 700;
}

body.mbp-locked .checkout-button,
body.mbp-locked .xoo-wsc-ft-btn-checkout,
body.mbp-locked .wc-proceed-to-checkout .button {
	opacity: .45;
	pointer-events: none;
}

@media (max-width: 768px) {
	.mbp-drawer { width: 90vw; max-width: 90vw; }
	.mbp-fab { right: 14px; bottom: 14px; }
}


/* ---- Loading state (never a blank drawer) ---- */
.mbp-loading {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 13px;
	font-weight: 600;
}
.mbp-loading:after {
	content: '';
	display: block;
	width: 26px;
	height: 26px;
	margin: 12px auto 0;
	border: 3px solid #ddd;
	border-top-color: var(--mbp-accent);
	border-radius: 50%;
	animation: mbp-spin .8s linear infinite;
}
@keyframes mbp-spin { to { transform: rotate(360deg); } }


/* ---- Clickable card links ---- */
.mbp-item-link {
	color: inherit !important;
	text-decoration: none !important;
}
.mbp-item-link:hover .mbp-item-name {
	color: var(--mbp-accent);
}
a.mbp-item-thumb {
	display: block;
}

/* ---- FREE / GIFT tag: plain text pill, cannot be emoji-imaged ---- */
.mbp-item-tag {
	position: absolute;
	top: 4px;
	left: 4px;
	bottom: auto;
	transform: none;
	background: var(--mbp-green);
	color: #fff !important;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .5px;
	padding: 2px 7px;
	border-radius: 8px;
	line-height: 1.4;
	pointer-events: none;
	z-index: 2;
}

/* ---- Tame ALL WordPress emoji images inside the drawer ---- */
.mbp-drawer img.emoji,
.mbp-fab img.emoji {
	width: 1.1em !important;
	height: 1.1em !important;
	max-width: 1.1em !important;
	max-height: 1.1em !important;
	min-width: 0 !important;
	display: inline-block !important;
	margin: 0 2px !important;
	vertical-align: -0.1em !important;
	border-radius: 0 !important;
	float: none !important;
}

/* ---- Guarantee note under checkout ---- */
.mbp-guarantee {
	margin-top: 10px;
	text-align: center;
	font-size: 11.5px;
	font-weight: 600;
	color: #111;
	background: none;
	border: none;
	padding: 0;
}


/* ---- Reward tiers progress bar (reference style: dots on the line) ---- */
.mbp-rewards {
	background: #fff;
	border-radius: 12px;
	padding: 12px 12px 6px;
	margin-bottom: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.mbp-rewards-title {
	text-align: center;
	font-weight: 700;
	font-size: 12px;
	color: #111;
	margin-bottom: 24px;
	line-height: 1.4;
}
.mbp-rewards-title b {
	color: var(--mbp-accent);
	font-weight: 800;
}

.mbp-rewards-track {
	position: relative;
	height: 6px;
	background: #e8e8ea;
	border-radius: 6px;
	margin: 0 34px 46px;
}

.mbp-rewards-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: var(--mbp-accent);
	border-radius: 6px;
	transition: width .4s ease;
	max-width: 100%;
}

/* Markers live INSIDE the track so % positions line up with the fill */
.mbp-rewards-tiers {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.mbp-rewards { position: relative; }
.mbp-rewards .mbp-rewards-track { overflow: visible; }

.mbp-tier-marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 90px;
}

.mbp-tier-amount {
	position: absolute;
	bottom: 17px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-weight: 700;
	color: #111;
	white-space: nowrap;
}

.mbp-tier-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #d6d6d8;
	color: #9a9a9e;
	position: relative;
	z-index: 2;
}
.mbp-tier-dot svg { width: 11px; height: 11px; }
.mbp-tier-marker.reached .mbp-tier-dot {
	background: var(--mbp-accent);
	border-color: var(--mbp-accent);
	color: #fff;
}

.mbp-tier-name {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: 84px;
	font-size: 9.5px;
	font-weight: 600;
	color: #444;
	line-height: 1.25;
	padding-top: 4px;
}
.mbp-tier-marker.reached .mbp-tier-name { color: #111; font-weight: 700; }

/* ---- Picker offer section title ---- */
.mbp-picker-offer-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--mbp-accent);
	margin: 10px 0 6px;
}
.mbp-picker-offer-title:first-child { margin-top: 0; }


/* ---- Total order amount row (black) ---- */
.mbp-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
	font-weight: 700;
	color: #111;
	margin-bottom: 6px;
}
.mbp-total-amt,
.mbp-total-amt * {
	color: #111 !important;
	font-weight: 700 !important;
}


/* ---- Notification bar (below drawer header) ---- */
.mbp-notice-bar {
	background: var(--mbp-accent);
	color: #fff;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	padding: 9px 14px;
	letter-spacing: .3px;
}

/* ---- Coupon field ---- */
.mbp-coupon {
	margin-bottom: 12px;
}

.mbp-coupon-form {
	display: flex;
	gap: 8px;
}

.mbp-coupon-input {
	flex: 1;
	border: 1.5px solid #ddd !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	background: #fafafa !important;
	color: #111 !important;
	min-width: 0;
	box-shadow: none !important;
}
.mbp-coupon-input:focus {
	border-color: var(--mbp-accent) !important;
	outline: none !important;
	background: #fff !important;
}

.mbp-coupon-apply {
	background: #111;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 18px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}
.mbp-coupon-apply.loading { opacity: .5; pointer-events: none; }

.mbp-coupon-msg {
	font-size: 11.5px;
	font-weight: 600;
	color: #c0392b;
	margin-top: 6px;
}
.mbp-coupon-msg.ok { color: var(--mbp-green); }

.mbp-coupon-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	background: #eefaf1;
	border: 1px dashed var(--mbp-green);
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 12px;
}

.mbp-coupon-code {
	flex: 1;
	font-weight: 800;
	color: #111;
	letter-spacing: .5px;
}

.mbp-coupon-amt,
.mbp-coupon-amt * {
	color: var(--mbp-green) !important;
	font-weight: 700 !important;
	font-size: 12px;
}

.mbp-coupon-remove {
	background: none;
	border: none;
	color: #888;
	font-size: 13px;
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
}
.mbp-coupon-remove:hover { color: #e21a1a; }
.mbp-coupon-remove.loading { opacity: .4; pointer-events: none; }


/* ---- Coupon teaser row ---- */
.mbp-coupon-teaser {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #ddd;
}
.mbp-coupon-teaser-count {
	font-size: 12px;
	font-weight: 700;
	color: var(--mbp-accent);
}
.mbp-view-coupons {
	background: none !important;
	border: none !important;
	color: #111 !important;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 0;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}
.mbp-view-coupons:hover { color: var(--mbp-accent); }

/* ---- Coupons slide-over panel ---- */
.mbp-coupons-panel {
	position: absolute;
	inset: 0;
	background: #fff;
	z-index: 5;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform .25s ease;
}
.mbp-coupons-panel.open { transform: translateX(0); }

.mbp-coupons-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	font-weight: 800;
	font-size: 15px;
	border-bottom: 1px solid #eee;
	color: #111;
}
.mbp-coupons-head span { flex: 1; text-align: center; }
.mbp-coupons-back,
.mbp-coupons-close {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #111;
	line-height: 1;
	padding: 2px 6px;
}

.mbp-coupons-list {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
}

.mbp-offers-heading {
	font-size: 13px;
	font-weight: 800;
	color: #111;
	margin: 14px 0 10px;
}
.mbp-offers-heading:first-child { margin-top: 0; }

.mbp-offers-empty {
	text-align: center;
	color: #888;
	font-size: 13px;
	padding: 30px 0;
}

.mbp-offer {
	padding: 12px 0;
	border-bottom: 1px dashed #ddd;
}

.mbp-offer-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mbp-offer-code {
	border: 1.5px dashed #bbb;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .6px;
	color: #111;
	background: #fafafa;
}

.mbp-offer-save {
	background: #eefaf1;
	color: var(--mbp-green);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 12px;
	flex: 1;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mbp-offer-apply {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--mbp-green);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	padding: 2px 4px;
}
.mbp-offer-apply.loading { opacity: .5; pointer-events: none; }

.mbp-offer-reason {
	margin-top: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: #c0392b;
}

.mbp-offer-desc {
	margin-top: 6px;
	font-size: 12px;
	color: #555;
	line-height: 1.4;
}

.mbp-offer-unavailable .mbp-offer-code { opacity: .75; }


/* ---- Coupon discount row in totals ---- */
.mbp-discount-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	color: #e21a1a;
	margin-bottom: 6px;
}
.mbp-discount-row .mbp-discount-label { color: #e21a1a !important; }
.mbp-discount-amt,
.mbp-discount-amt * {
	color: #e21a1a !important;
	font-weight: 700 !important;
}


/* ---- Powered by ---- */
.mbp-powered {
	margin-top: 6px;
	text-align: center;
	font-size: 10px;
	color: #9a9a9e;
	font-weight: 500;
}
.mbp-powered a {
	color: #9a9a9e !important;
	text-decoration: none !important;
	border-bottom: 1px dotted #bbb;
}
.mbp-powered a:hover { color: var(--mbp-accent) !important; }


/* ---- Free shipping row ---- */
.mbp-freeship-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--mbp-green);
	margin-bottom: 6px;
}
.mbp-freeship-amt { color: var(--mbp-green) !important; font-weight: 800; }


/* ==================================================================
   CRITICAL: make the hidden attribute ALWAYS win inside the drawer.
   (Our display:flex rows were overriding [hidden], which is why the
   discount row could linger after a coupon was removed.)
   ================================================================== */
.mbp-drawer [hidden],
.mbp-coupons-panel [hidden] {
	display: none !important;
}

/* ---- Order summary accordion ---- */
.mbp-summary {
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

.mbp-summary-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	background: #fff !important;
	border: none !important;
	padding: 12px;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 800;
	color: #111 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.mbp-summary-title {
	white-space: nowrap;
	flex-shrink: 0;
}

.mbp-summary-chev {
	transition: transform .2s ease;
	color: #111;
}
.mbp-summary.open .mbp-summary-chev { transform: rotate(180deg); }

.mbp-summary-amounts {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	min-width: 0;
}

.mbp-sum-mrp,
.mbp-sum-mrp * {
	color: #999 !important;
	font-weight: 600 !important;
	font-size: 11px;
}

.mbp-sum-pay,
.mbp-sum-pay * {
	color: #111 !important;
	font-weight: 800 !important;
	font-size: 14px;
}

.mbp-sum-off {
	font-style: normal;
	font-size: 9.5px;
	font-weight: 800;
	color: var(--mbp-green);
}

.mbp-summary-amounts .mbp-summary-chev {
	margin-left: 3px;
	flex-shrink: 0;
}

.mbp-summary-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .28s ease, padding .28s ease;
	padding: 0 14px;
	border-top: 0 solid #eee;
}
.mbp-summary.open .mbp-summary-body {
	max-height: 420px;
	padding: 12px 14px;
	border-top: 1px solid #eee;
}

.mbp-summary-body .mbp-taxnote { margin-bottom: 2px; }
