.arbmm {
	--mm-accent: #f07a12;
	--mm-accent-dark: #c95f05;
	--mm-soft: #fff6ec;
	--mm-line: #ece4da;
	--mm-ink: #2b2b2b;
	--mm-muted: #6f6a64;
	--mm-green: #1f8a4c;
	margin: 0 0 18px;
	color: var(--mm-ink);
	clear: both;
}
.arbmm [hidden] { display: none !important; }
.arbmm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.arbmm-kicker { font-weight: 700; font-size: 15px; }
.arbmm-sub { font-size: 13px; color: var(--mm-muted); }

/* chips */
.arbmm-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.arbmm-chip {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	margin: 0; padding: 12px 12px 10px; min-height: 0; text-align: left; cursor: pointer;
	background: #fff; color: var(--mm-ink); border: 1.5px solid var(--mm-line); border-radius: 12px;
	font: inherit; line-height: 1.25; text-transform: none; letter-spacing: 0; box-shadow: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.arbmm-chip:hover { border-color: #e2c9ad; background: #fff; color: var(--mm-ink); }
.arbmm-chip:focus-visible { outline: 2px solid var(--mm-accent); outline-offset: 2px; }
.arbmm-chip b { font-size: 14px; font-weight: 700; }
.arbmm-chip span { font-size: 13px; color: var(--mm-muted); }
.arbmm-chip span .woocommerce-Price-amount { color: inherit; font-weight: 600; }
.arbmm-chip em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--mm-green); }
.arbmm-chip.is-on { border-color: var(--mm-accent); background: var(--mm-soft); box-shadow: 0 0 0 1px var(--mm-accent) inset; }
.arbmm-chip.is-on span { color: var(--mm-ink); }
.arbmm-best {
	position: absolute; top: -9px; right: 8px; padding: 2px 8px; border-radius: 99px;
	background: var(--mm-accent); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}

/* box */
.arbmm-box { margin: 12px 0 0; padding: 14px; background: var(--mm-soft); border: 1px solid #f3dcc4; border-radius: 14px; }
.arbmm-boxhead { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.arbmm-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.arbmm-slot {
	width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1.5px dashed #e3c9ab;
	display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
}
.arbmm-slots[data-size="lg"] .arbmm-slot { width: 30px; height: 30px; border-radius: 8px; }
.arbmm-slot.is-full { border: 1.5px solid var(--mm-accent); animation: arbmm-pop .18s ease-out; }
.arbmm-slot img { width: 100%; height: 100%; object-fit: contain; padding: 2px; box-sizing: border-box; }
.arbmm-more { border-style: solid; border-color: var(--mm-accent); font-size: 12px; font-weight: 700; color: var(--mm-accent-dark); }
@keyframes arbmm-pop { from { transform: scale(.7); } to { transform: scale(1); } }
.arbmm-msg { margin: 0; font-size: 13.5px; line-height: 1.4; }
.arbmm-msg b { color: var(--mm-accent-dark); }
.arbmm.is-full .arbmm-msg > b:first-child { color: var(--mm-green); }
.arbmm-hint { color: var(--mm-muted); }
.arbmm-pick { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-muted); }

.arbmm, .arbmm-box { min-width: 0; max-width: 100%; }
/* never let the flavor row push the page wider: it takes the width it is given and scrolls inside it */
.arbmm-gridwrap { position: relative; min-width: 0; contain: inline-size; }
/* one row of flavors: they share the width, and scroll sideways when there are more than fit */
.arbmm-grid {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(114px, 1fr); gap: 8px;
	width: 0; min-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-behavior: smooth;
	padding: 2px; margin: 0 -2px; scrollbar-width: none; align-items: stretch;
}
.arbmm-grid::-webkit-scrollbar { display: none; }
.arbmm-grid.is-single { grid-auto-columns: minmax(118px, 150px); justify-content: start; }
.arbmm-item {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 8px 8px 10px; min-width: 0; height: 100%; box-sizing: border-box;
	background: #fff; border: 1.5px solid transparent; border-radius: 12px; text-align: center; scroll-snap-align: start;
	transition: border-color .15s, background .15s;
}
.arbmm-item.is-in { border-color: var(--mm-accent); background: #fffaf4; }
.arbmm-item img { width: 100%; height: 84px; object-fit: contain; cursor: pointer; margin: 0; }
.arbmm-name {
	font-size: 12.5px; font-weight: 600; line-height: 1.25; height: 3.75em; overflow: hidden;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere;
}
/* the controls always sit at the bottom of the card, so every card lines up */
.arbmm .arbmm-addone, .arbmm-step { margin-top: auto !important; }

/* controls: "+ Add" until the flavor is in the box, then  -  2  +  */
.arbmm .arbmm-addone {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 34px; min-height: 0;
	margin: 0; padding: 0 10px !important; border: 1.5px solid var(--mm-accent) !important; border-radius: 99px !important; background: #fff; color: var(--mm-accent-dark);
	font-family: inherit; font-weight: 700; font-size: 13px !important; line-height: 1 !important; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: background .15s, color .15s;
}
.arbmm .arbmm-addone:hover { background: var(--mm-accent); color: #fff; }
.arbmm-step { display: none; align-items: center; justify-content: space-between; gap: 2px; width: 100%; height: 34px; }
.arbmm-item.is-in .arbmm-step { display: flex; }
.arbmm-item.is-in .arbmm-addone { display: none; }
.arbmm .arbmm-step button {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 30px !important; height: 30px !important; flex: 0 0 30px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 50% !important; cursor: pointer; box-shadow: none; line-height: 1 !important;
	transition: background .15s, color .15s, border-color .15s;
}
.arbmm .arbmm-step .arbmm-minus { background: #fff; border: 1.5px solid #e6d6c4; color: var(--mm-ink); }
.arbmm .arbmm-step .arbmm-minus:hover { border-color: var(--mm-accent); color: var(--mm-accent-dark); background: #fff; }
.arbmm .arbmm-step .arbmm-plus { background: var(--mm-accent); border: 1.5px solid var(--mm-accent); color: #fff; }
.arbmm .arbmm-step .arbmm-plus:hover { background: var(--mm-accent-dark); border-color: var(--mm-accent-dark); color: #fff; }
.arbmm .arbmm-step input {
	flex: 1 1 auto !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 32px !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0;
	text-align: center !important; font-family: inherit; font-weight: 800 !important; font-size: 16px !important; line-height: 32px !important; color: var(--mm-ink) !important;
	-moz-appearance: textfield; appearance: textfield; text-indent: 0 !important;
}
.arbmm-step input:focus { outline: none; }
.arbmm-step input::-webkit-outer-spin-button, .arbmm-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* arrows when the row scrolls */
.arbmm .arbmm-nav {
	position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; min-height: 0; margin: -20px 0 0; padding: 0; border: 1px solid var(--mm-line); border-radius: 50%;
	background: #fff; color: var(--mm-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.arbmm .arbmm-nav:hover { color: var(--mm-accent-dark); border-color: var(--mm-accent); }
.arbmm-nav.is-prev { left: -10px; }
.arbmm-nav.is-next { right: -10px; }

.arbmm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 0; }
.arbmm-total { font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.arbmm-total strong { font-size: 20px; }
.arbmm-total del { color: var(--mm-muted); }
.arbmm-count { color: var(--mm-muted); }
.arbmm-save { color: var(--mm-green); font-weight: 700; font-size: 13px; }
.arbmm .arbmm-add {
	margin: 0; padding: 12px 26px; border: 0; border-radius: 99px; background: var(--mm-accent); color: #fff;
	font-weight: 700; font-size: 15px; cursor: pointer; min-height: 46px; line-height: 1.2; float: none;
}
.arbmm .arbmm-add:hover { background: var(--mm-accent-dark); color: #fff; }
.arbmm .arbmm-add:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 600px) {
	.arbmm-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.arbmm-chip { padding: 11px 8px 9px; }
	.arbmm-chip b { font-size: 13px; }
	.arbmm-chip span { font-size: 12px; }
	.arbmm-box { padding: 12px 10px; }
	/* phones: swipe the flavors, about three at a time with the next one peeking in */
	.arbmm-grid { grid-auto-columns: calc((100% - 12px) / 3.25); gap: 6px; scroll-snap-type: x mandatory; }
	.arbmm-grid.is-single { grid-auto-columns: minmax(0, 140px); }
	.arbmm-item { padding: 6px 5px 8px; gap: 5px; }
	.arbmm-item img { height: 66px; }
	.arbmm-name { font-size: 11.5px; }
	.arbmm .arbmm-addone { height: 32px; font-size: 12.5px; }
	.arbmm-step { height: 32px; }
	.arbmm .arbmm-step button { width: 30px; height: 30px; }
	.arbmm .arbmm-step input { font-size: 15px; }
	.arbmm .arbmm-nav { display: none; }
	.arbmm-slot { width: 32px; height: 32px; }
	.arbmm-foot { flex-direction: column; align-items: stretch; }
	.arbmm .arbmm-add { width: 100%; }
}
