.bbs-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #f6f7f8;
	border: 0;
	border-radius: 999px;
	padding: 8px 15px;
	font: inherit;
	font-size: 14px;
	color: #343538;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease;
}
.bbs-chip:hover { background: #ececee; }
.bbs-chip svg { color: #0070d0; flex: none; }

.bbs-chip__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.bbs-chip__label { font-size: 11px; color: #72767e; }
.bbs-chip__name { font-weight: 700; }

.bbs-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
}
.bbs-modal[hidden] { display: none; }

.bbs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 14, .55);
}

.bbs-modal__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
	padding: 24px;
}

.bbs-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.bbs-modal__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #343538;
	letter-spacing: -.01em;
}
.bbs-modal__close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #72767e;
	cursor: pointer;
	padding: 0 4px;
}
.bbs-modal__close:hover { color: #343538; }

.bbs-modal__intro {
	margin: 8px 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #72767e;
}

.bbs-stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.bbs-store {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	text-align: left;
	background: #fff;
	border: 1px solid #e8e9eb;
	border-radius: 12px;
	padding: 14px 16px;
	font: inherit;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bbs-store:hover {
	border-color: #0070d0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.bbs-store.is-selected { border-color: #0070d0; background: #eff6fd; }
.bbs-store.is-busy { opacity: .6; pointer-events: none; }

.bbs-store__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bbs-store__name { font-size: 16px; font-weight: 700; color: #343538; }
.bbs-store__address { font-size: 13px; color: #72767e; }
.bbs-store__hours { font-size: 13px; color: #0070d0; font-weight: 600; }

.bbs-store__tick { color: #0070d0; opacity: 0; flex: none; }
.bbs-store.is-selected .bbs-store__tick { opacity: 1; }

.bbs-unavailable {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #b32d2e;
	background: #fdeceb;
	border-radius: 999px;
	padding: 4px 10px;
	margin-top: 6px;
}

@media (max-width: 720px) {
	.bbs-modal { padding: 0; align-items: end; }
	.bbs-modal__panel {
		max-width: none;
		max-height: 86vh;
		border-radius: 16px 16px 0 0;
		padding: 20px 18px 24px;
	}
	.bbs-modal__title { font-size: 19px; }
	.bbs-chip__label { display: none; }
	.bbs-chip { padding: 7px 12px; }
}

.bbs-cart-alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	background: #fff6f5;
	border: 1px solid #f5c2c0;
	border-radius: 12px;
	padding: 12px 16px;
	margin: -8px 0 24px;
}
.bbs-cart-alert__lead {
	font-size: 14px;
	font-weight: 600;
	color: #8a2320;
}
.bbs-cart-alert__action {
	background: #b32d2e;
	color: #fff;
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.bbs-cart-alert__action:hover { background: #8a2320; color: #fff; }
.bbs-cart-alert__link {
	background: none;
	border: 0;
	padding: 9px 4px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #8a2320;
	text-decoration: underline;
	cursor: pointer;
}

.bbs-product-unavailable {
	background: #fdeceb;
	border: 1px solid #f5c2c0;
	border-radius: 12px;
	padding: 18px 20px;
	margin: 22px 0 24px;
	max-width: 420px;
}
.bbs-product-unavailable__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #8a2320;
}
.bbs-product-unavailable__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #8a2320;
}
.bbs-product-unavailable__btn {
	background: #b32d2e;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 22px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.bbs-product-unavailable__btn:hover { background: #8a2320; }

.bbs-zip {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
}
.bbs-zip__input {
	flex: 1;
	min-width: 0;
	border: 1px solid #e8e9eb;
	border-radius: 999px;
	padding: 11px 18px;
	font: inherit;
	font-size: 15px;
	color: #343538;
}
.bbs-zip__input:focus { outline: none; border-color: #343538; }
.bbs-zip__btn {
	flex: none;
	background: #343538;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 24px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.bbs-zip__btn:hover { background: #000; }
.bbs-zip__btn.is-busy { opacity: .6; cursor: default; }

.bbs-zip__error {
	margin: -8px 0 14px;
	font-size: 14px;
	color: #b32d2e;
}
.bbs-zip__error[hidden] { display: none; }

.bbs-store__distance {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	color: #72767e;
	white-space: nowrap;
	margin-left: auto;
	padding-left: 10px;
}
.bbs-store.is-selected .bbs-store__distance { color: #0070d0; }

/* the branch photo on a picker card */

.bbs-store__photo {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f3f5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	color: #8b9096;
}
.bbs-store__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 480px) {
	.bbs-store__photo { width: 44px; height: 44px; border-radius: 10px; }
}

/* ---------- the branch strip above the shop ---------- */

.bbs-strip { margin: 0 0 14px; }

.bbs-strip__title {
	font-size: 17px;
	font-weight: 700;
	color: #343538;
	margin: 0 0 12px;
}

.bbs-strip__list {
	list-style: none;
	/* The basket badge hangs off the top corner of a tile, and `overflow-x: auto`
	   makes the browser clip the other axis too, which sliced the top off it.
	   The room is made inside the scroll box and taken back with the margin, so
	   nothing moves on screen. */
	margin: -10px 0 0;
	padding: 10px 0 4px;
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scrollbar-width: none;
}
.bbs-strip__list::-webkit-scrollbar { display: none; }

.bbs-tile {
	width: 108px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	text-align: center;
}

.bbs-tile__photo {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f3f5;
	border: 2px solid transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 800;
	color: #8b9096;
	transition: border-color .12s ease;
}
.bbs-tile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bbs-tile:hover .bbs-tile__photo { border-color: #c9ccd1; }
.bbs-tile.is-selected .bbs-tile__photo { border-color: #0070d0; }

.bbs-tile__photo--all { background: #343538; color: #fff; font-size: 22px; }

.bbs-tile__name {
	font-size: 14px;
	font-weight: 600;
	color: #343538;
	line-height: 1.25;
	max-width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bbs-tile__note { font-size: 12px; color: #72767e; line-height: 1.2; }
.bbs-tile.is-selected .bbs-tile__note { color: #0070d0; font-weight: 600; }

@media (max-width: 600px) {
	.bbs-strip__list { gap: 14px; }
	.bbs-tile { width: 92px; }
	.bbs-tile__photo { width: 62px; height: 62px; border-radius: 12px; font-size: 22px; }
}

/* how many items are waiting in that branch's basket */

.bbs-tile__photo { position: relative; overflow: visible; }
.bbs-tile__photo img { border-radius: inherit; }

.bbs-tile__badge {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: #1f2124;
	color: #fff;
	border: 2px solid #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}
.bbs-tile__badge svg { flex: none; }
