/* Products sold by weight and custom blends: bottom sheet (olive & gold). */
.product-card__per-kg { display: inline-block; margin-inline-start: 4px; font-size: .8em; color: var(--rm-muted, #6b7262); font-weight: 600; }

html.rmw-open { overflow: hidden; }
.rmw[hidden] { display: none; }
.rmw { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-end; justify-content: center; }
.rmw__backdrop { position: absolute; inset: 0; background: rgba(20, 26, 12, .55); }
.rmw__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
	animation: rmw-up .2s ease-out;
}
@keyframes rmw-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
	.rmw { align-items: center; }
	.rmw__panel { border-radius: 20px; }
}
.rmw__x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f3ec; font-size: 16px; cursor: pointer; }
.rmw__body { padding: 18px 16px 8px; overflow-y: auto; }
.rmw__title { margin: 0 0 4px; padding-inline-end: 40px; font-size: 19px; color: var(--rm-primary-dark, #3d4f1f); }
.rmw__hint { margin: 0 0 12px; color: var(--rm-muted, #6b7262); font-size: 14px; }

.rmw__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #f1f3ec; border-radius: 12px; margin-bottom: 12px; }
.rmw__tabs button { height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; color: inherit; }
.rmw__tabs button.is-on { background: var(--rm-primary, #556b2f); color: #fff; }

.rmw__presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.rmw__presets button { height: 44px; border: 1px solid #e3d9b0; border-radius: 10px; background: #fbf6e3; font-weight: 700; font-size: 14px; cursor: pointer; color: inherit; padding: 0 2px; }
.rmw__presets button.is-on { background: var(--rm-gold, #c9a227); border-color: var(--rm-gold, #c9a227); color: #fff; }

.rmw__custom, .rmw__ctl { display: flex; align-items: center; gap: 6px; }
.rmw__custom button, .rmw__ctl button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #d9ddd0; border-radius: 10px; background: #f6f7f2; font-size: 22px; font-weight: 700; cursor: pointer; color: inherit; }
.rmw__custom input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--rm-primary, #556b2f); border-radius: 10px; text-align: center; font-size: 20px; font-weight: 700; }
.rmw__custom span, .rmw__ctl span { font-weight: 700; color: var(--rm-muted, #6b7262); }

.rmw__parts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rmw__part { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #e6e8df; border-radius: 12px; }
.rmw__part.is-on { border-color: var(--rm-primary, #556b2f); background: #f3f6ec; }
.rmw__pname { min-width: 0; }
.rmw__pname strong { display: block; font-size: 15px; }
.rmw__pname small { color: var(--rm-muted, #6b7262); }
.rmw__ctl input { width: 72px; height: 44px; border: 1px solid #d9ddd0; border-radius: 10px; text-align: center; font-size: 17px; font-weight: 700; }
.rmw__ctl button { width: 40px; height: 40px; }

.rmw__foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef0e8; }
.rmw__sum { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.rmw__sum span { color: var(--rm-muted, #6b7262); font-size: 14px; }
.rmw__sum strong { font-size: 21px; color: var(--rm-primary-dark, #3d4f1f); }
.rmw__add { height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--rm-primary, #556b2f); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.rmw__add:disabled { opacity: .45; cursor: default; }

.rm-cart-item--weight .rm-cart-item__info span { font-size: 13px; }
@media (max-width: 420px) {
	.rmw__presets { grid-template-columns: repeat(3, 1fr); }
}
