/* BulCommerce — BOX NOW automat picker (our own inline UI). */
.fc-boxnow-apm { margin: 10px 0 4px; }
.fc-bxapm { border: 1px solid #e5e9ef; border-radius: 12px; padding: 12px; background: #fff; overflow: hidden; }
.fc-bxapm__loading { padding: 14px; color: #64748b; font-size: 13px; }
.fc-bxapm__hint { padding: 4px 2px 10px; color: #475569; font-size: 13px; font-weight: 600; }

/* Search sits on its OWN row (full width); the buttons wrap onto the row below
   so nothing gets squeezed when there are several of them. */
.fc-bxapm__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-bxapm__search {
	flex: 1 1 100%; min-width: 0; padding: 10px 12px; font-size: 14px;
	border: 1.5px solid #e2e8f0; border-radius: 9px; box-shadow: none; margin: 0;
}
.fc-bxapm__search:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.fc-bxapm__maptoggle, .fc-bxapm__locate, .fc-bxapm__listtoggle {
	flex: 1 1 auto; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
	color: #2563eb; background: #eef4ff; border: 1px solid #cdddff; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1;
}
.fc-bxapm__locate { flex: 0 0 auto; }
.fc-bxapm__icon { width: 16px; height: 16px; flex-shrink: 0; }
.fc-bxapm__maptoggle:hover, .fc-bxapm__locate:hover, .fc-bxapm__listtoggle:hover { background: #e0eaff; }
.fc-bxapm.is-list-hidden .fc-bxapm__list,
.fc-bxapm.is-list-hidden .fc-bxapm__search,
.fc-bxapm.is-list-hidden .fc-bxapm__locate { display: none; }
.fc-bxapm__locate { padding: 10px 12px; }
.fc-bxapm__locate.is-on { color: #fff; background: #2563eb; border-color: #2563eb; }
.fc-bxapm__locate.is-loading { opacity: .6; cursor: progress; }

/* Two-per-row card grid so 40+ automats don't become an endless scroll. */
.fc-bxapm__list { margin-top: 10px; max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.fc-bxapm__item {
	display: flex; align-items: flex-start; gap: 6px; width: 100%; text-align: left;
	padding: 9px 10px; border: 1.5px solid #e5e9ef; border-radius: 10px;
	background: #f8fafc; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.fc-bxapm__item:hover { border-color: #93b4ff; background: #fff; }
.fc-bxapm__item.is-selected { border-color: #2563eb; background: #eef4ff; }
.fc-bxapm__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-bxapm__name { font-size: 12.5px; font-weight: 700; color: #0f172a; line-height: 1.25; }
.fc-bxapm__addr { font-size: 11.5px; color: #64748b; margin-top: 2px; line-height: 1.3; }
.fc-bxapm__dist { flex-shrink: 0; font-size: 10.5px; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.fc-bxapm__check { flex-shrink: 0; color: #2563eb; font-weight: 700; opacity: 0; }
.fc-bxapm__item.is-selected .fc-bxapm__check { opacity: 1; }
.fc-bxapm__empty { grid-column: 1 / -1; padding: 14px; text-align: center; color: #94a3b8; font-size: 13px; }

.fc-bxapm__selected {
	display: flex; align-items: center; gap: 10px; margin-top: 8px;
	padding: 10px 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0;
}
.fc-bxapm__sel-ic { color: #16a34a; font-weight: 700; }
.fc-bxapm__sel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-bxapm__sel-text strong { font-size: 13.5px; color: #065f46; }
.fc-bxapm__sel-text small { font-size: 12px; color: #15803d; }
.fc-bxapm__change { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: #2563eb; text-decoration: none; }
.fc-bxapm__change:hover { text-decoration: underline; }

/* Map panel: full width of the checkout column, edge-to-edge, no border/padding
   around it, and tall so the BOX NOW widget renders in its roomy mode. */
.fc-bxapm__map { margin-top: 10px; width: 100%; border-radius: 12px; overflow: hidden; }
.fc-bxapm__frame { width: 100%; height: 72vh; min-height: 480px; max-height: 780px; border: 0; display: block; }

@media (max-width: 600px) {
	.fc-bxapm__bar { flex-wrap: wrap; }
	.fc-bxapm__maptoggle, .fc-bxapm__listtoggle { flex: 1 1 auto; justify-content: center; }
	.fc-bxapm__frame { height: 78vh; min-height: 440px; }
}
