:root {
	--rmc-accent: #4b7f35;
	--rmc-accent-dark: #376426;
	--rmc-text: #202124;
	--rmc-muted: #626b74;
	--rmc-border: #d9dee3;
	--rmc-panel: #ffffff;
	--rmc-soft: #f5f7f9;
}

.rmc-cart-open {
	overflow: hidden;
}

.rmc-floating-cart {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--rmc-accent);
	color: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rmc-floating-cart:hover,
.rmc-floating-cart:focus {
	background: var(--rmc-accent-dark);
	color: #fff;
}

.rmc-floating-cart__icon svg,
.rmc-icon-button svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.rmc-cart-count {
	display: inline-grid;
	min-width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 999px;
	background: #fff;
	color: var(--rmc-accent);
	font-size: 12px;
	line-height: 1;
}

.rmc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(17, 24, 39, 0.48);
}

.rmc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	width: min(420px, 100vw);
	height: 100vh;
	background: var(--rmc-panel);
	color: var(--rmc-text);
	box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
	transform: translateX(105%);
	transition: transform 180ms ease;
}

.rmc-drawer[aria-hidden="false"] {
	transform: translateX(0);
}

.rmc-drawer__header,
.rmc-drawer__footer {
	padding: 16px;
	border-bottom: 1px solid var(--rmc-border);
}

.rmc-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rmc-drawer__header h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: 0;
}

.rmc-icon-button {
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: #fff;
	color: var(--rmc-text);
	cursor: pointer;
}

.rmc-drawer__notice {
	margin: 12px 16px 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #eef4ff;
	color: #174ea6;
	font-size: 14px;
}

.rmc-drawer__notice--error {
	background: #fff0f0;
	color: #a11919;
}

.rmc-drawer__notice--success {
	background: #ecf8ef;
	color: #176c2c;
}

.rmc-drawer__body {
	overflow: auto;
	padding: 12px 16px 16px;
}

.rmc-drawer__footer {
	border-top: 1px solid var(--rmc-border);
	border-bottom: 0;
	background: var(--rmc-soft);
}

.rmc-loading,
.rmc-empty {
	padding: 28px 0;
	text-align: center;
	color: var(--rmc-muted);
}

.rmc-items {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rmc-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rmc-border);
}

.rmc-item__image {
	display: block;
	width: 72px;
	height: 72px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: var(--rmc-soft);
	overflow: hidden;
}

.rmc-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rmc-item__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(75, 127, 53, 0.16), rgba(75, 127, 53, 0.04)),
		var(--rmc-soft);
}

.rmc-item__name {
	display: block;
	color: var(--rmc-text);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.rmc-item__meta {
	margin-top: 4px;
	color: var(--rmc-muted);
	font-size: 12px;
}

.rmc-item__price {
	white-space: nowrap;
	font-weight: 700;
}

.rmc-item__controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.rmc-qty,
.rmc-remove,
.rmc-coupon-form button,
.rmc-coupon {
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: #fff;
	color: var(--rmc-text);
	cursor: pointer;
}

.rmc-qty {
	width: 32px;
	height: 32px;
	padding: 0;
	font-weight: 700;
}

.rmc-qty-input {
	width: 58px;
	height: 32px;
	padding: 4px 6px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	text-align: center;
}

.rmc-remove {
	height: 32px;
	padding: 0 8px;
	color: #a11919;
	font-size: 12px;
}

.rmc-coupon-form {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--rmc-border);
}

.rmc-addons {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--rmc-border);
}

.rmc-addons h3 {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: 0;
}

.rmc-addon-list {
	display: grid;
	gap: 10px;
}

.rmc-addon {
	display: grid;
	grid-template-columns: 54px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: #fff;
}

.rmc-addon__image {
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 6px;
	background: var(--rmc-soft);
	overflow: hidden;
}

.rmc-addon__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rmc-addon__name {
	display: block;
	color: var(--rmc-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.rmc-addon__price {
	margin-top: 3px;
	color: var(--rmc-muted);
	font-size: 12px;
}

.rmc-addon__price del {
	opacity: 0.7;
}

.rmc-addon__add {
	min-height: 34px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: var(--rmc-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.rmc-addon__add:hover,
.rmc-addon__add:focus {
	background: var(--rmc-accent-dark);
	color: #fff;
}

.rmc-checkout-bump {
	clear: both;
	width: 100%;
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: #fff;
}

.rmc-checkout-bump__header {
	margin-bottom: 12px;
}

.rmc-checkout-bump__header h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0;
}

.rmc-checkout-bump__header p {
	margin: 3px 0 0;
	color: var(--rmc-muted);
	font-size: 12px;
	text-align: left;
}

.rmc-checkout-bump__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.rmc-checkout-bump__item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	background: var(--rmc-soft);
}

.rmc-checkout-bump__image {
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.rmc-checkout-bump__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rmc-checkout-bump__main {
	min-width: 0;
}

.rmc-checkout-bump__name {
	display: block;
	color: var(--rmc-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.rmc-checkout-bump__price {
	margin-top: 4px;
	color: var(--rmc-muted);
	font-size: 13px;
}

.rmc-checkout-bump__add {
	justify-self: end;
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: var(--rmc-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.rmc-checkout-bump__add:hover,
.rmc-checkout-bump__add:focus {
	background: var(--rmc-accent-dark);
	color: #fff;
}

.rmc-checkout-bump__add:disabled {
	opacity: 0.7;
	cursor: progress;
}

.rmc-checkout-bump__notice {
	margin-top: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 13px;
}

.rmc-checkout-bump__notice--success {
	background: #ecf8ef;
	color: #176c2c;
}

.rmc-checkout-bump__notice--error {
	background: #fff0f0;
	color: #a11919;
}

.rmc-coupon-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--rmc-muted);
	font-size: 13px;
	font-weight: 700;
}

.rmc-coupon-form > div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}

.rmc-coupon-form input {
	min-width: 0;
	height: 40px;
	border: 1px solid var(--rmc-border);
	border-radius: 6px;
	padding: 8px 10px;
}

.rmc-coupon-form button {
	padding: 0 12px;
	font-weight: 700;
}

.rmc-coupons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.rmc-coupon {
	padding: 6px 8px;
	font-size: 12px;
}

.rmc-totals {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.rmc-totals > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--rmc-muted);
}

.rmc-totals strong {
	color: var(--rmc-text);
}

.rmc-totals__total {
	padding-top: 8px;
	border-top: 1px solid var(--rmc-border);
	font-size: 18px;
}

.rmc-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 8px;
	border-radius: 6px;
	background: var(--rmc-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.rmc-button:hover,
.rmc-button:focus {
	background: var(--rmc-accent-dark);
	color: #fff;
	text-decoration: none;
}

.rmc-button--secondary {
	background: #fff;
	border: 1px solid var(--rmc-border);
	color: var(--rmc-text);
}

.rmc-button--secondary:hover,
.rmc-button--secondary:focus {
	background: var(--rmc-soft);
	color: var(--rmc-text);
}

.rmc-drawer.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.48);
	pointer-events: none;
}

@media (max-width: 480px) {
	.rmc-floating-cart {
		right: 12px;
		bottom: 12px;
	}

	.rmc-floating-cart__label {
		display: none;
	}

	.rmc-drawer {
		width: 100vw;
	}

	.rmc-item {
		grid-template-columns: 64px 1fr;
	}

	.rmc-item__price {
		grid-column: 2;
	}

	.rmc-checkout-bump__item {
		grid-template-columns: 52px 1fr;
	}

	.rmc-checkout-bump__add {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 768px) {
	.rmc-checkout-bump__items {
		grid-template-columns: 1fr;
	}
}
