/* rc-branch – header pill, Choose-branch dialog (wireframe 08), Find a store (06), stock line.
   Colours and buttons come from the rc-ux design tokens (--rc-ink, .rc-btn, .rc-pill, .rc-chip). */

/* Header pill */
.rc-branch-pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px; border: 1px solid var(--rc-border, #D0D0D0); border-radius: 999px; background: #fff; color: var(--rc-ink, #1F1F1F); cursor: pointer; font: inherit; text-align: start; max-width: 240px; }
.rc-branch-pill:hover { border-color: var(--rc-ink, #1F1F1F); }
.rc-branch-pill__icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--rc-ink, #1F1F1F); color: #fff; display: grid; place-items: center; }
.rc-branch-pill__icon svg { width: 16px; height: 16px; }
.rc-branch-pill__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rc-branch-pill__eyebrow { font-size: 11px; color: var(--rc-muted, #6B6B6B); }
.rc-branch-pill__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Stock line */
.rc-stock { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--rc-text, #333); line-height: 1.3; }
.rc-stock__dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rc-ink, #1F1F1F); }
.rc-stock--low .rc-stock__dot { background: #9A9A9A; }
.rc-stock--central .rc-stock__dot { background: transparent; border: 1.5px solid var(--rc-ink, #1F1F1F); }
.rc-stock--out { color: var(--rc-muted, #6B6B6B); }
.rc-stock--out .rc-stock__dot { background: transparent; border: 1.5px solid #9A9A9A; }

/* Dialog */
.rcb-modal[hidden] { display: none; }
.rcb-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.rcb-modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.rcb-modal__box { position: relative; display: grid; grid-template-columns: minmax(0, 512px) minmax(0, 368px); width: min(880px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.rcb-modal__form { padding: 32px 32px 0; overflow-y: auto; min-height: 0; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.rcb-modal__box { grid-template-rows: minmax(0, 1fr); }
/* the confirm button stays visible at the bottom of the panel, however long the branch list is */
.rcb-modal__foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -32px; padding: 14px 32px 18px; background: #fff; border-top: 1px solid var(--rc-divider, #E0E0E0); }
.rcb-modal__foot .rcb-note { margin: 8px 0 0; }
.rcb-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rcb-modal__head h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--rc-ink, #1F1F1F); }
.rcb-modal__close { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rc-border, #D0D0D0); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--rc-ink, #1F1F1F); }
.rcb-modal__close:hover { border-color: var(--rc-ink, #1F1F1F); }
.rcb-modal__map { background: var(--rc-placeholder, #ECECEC); min-height: 420px; height: 100%; }
.rcb-muted { color: var(--rc-muted, #6B6B6B); font-size: 15px; margin: 8px 0 20px; }
/* Delivery / Pickup choice */
.rcb-modes { display: grid; gap: 10px; margin: 18px 0; }
.rcb-mode { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--rc-border, #D0D0D0); border-radius: 10px; cursor: pointer; }
.rcb-mode:has(input:checked) { border-color: var(--rc-ink, #1F1F1F); box-shadow: inset 0 0 0 1px var(--rc-ink, #1F1F1F); }
.rcb-mode input { accent-color: var(--rc-ink, #1F1F1F); width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; }
.rcb-mode__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--rc-panel, #F5F5F5); color: var(--rc-ink, #1F1F1F); display: grid; place-items: center; }
.rcb-mode__text { display: flex; flex-direction: column; gap: 2px; }
.rcb-mode__text strong { font-size: 16px; color: var(--rc-ink, #1F1F1F); }
.rcb-mode__text small { font-size: 13px; color: var(--rc-muted, #6B6B6B); line-height: 1.4; }
.rcb-pickup[hidden] { display: none; }
.rcb-pickup { margin-bottom: 18px; }
.rcb-pickup .rcb-field { margin-top: 12px; }
.rcb-modal:not(.is-pickup) .rcb-modal__map { filter: grayscale(.4) opacity(.75); }
.rcb-locate-msg { font-size: 13px; color: var(--rc-muted, #6B6B6B); margin: 8px 0 0; min-height: 0; }
.rcb-locate-msg:empty { display: none; }
.rcb-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--rc-muted, #6B6B6B); font-size: 13px; }
.rcb-or::before, .rcb-or::after { content: ""; flex: 1; height: 1px; background: var(--rc-divider, #E0E0E0); }
.rcb-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rc-ink, #1F1F1F); }
.rcb-field select { height: 46px; border: 0; border-radius: 8px; background: var(--rc-panel, #F5F5F5); padding: 0 12px; font: inherit; font-weight: 400; color: var(--rc-ink, #1F1F1F); }
.rcb-label { font-weight: 600; font-size: 14px; margin: 18px 0 8px; color: var(--rc-ink, #1F1F1F); }
.rcb-list { display: flex; flex-direction: column; gap: 8px; max-height: 264px; overflow-y: auto; margin-bottom: 18px; padding-inline-end: 2px; }
.rcb-option { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--rc-border, #D0D0D0); border-radius: 8px; cursor: pointer; }
.rcb-option[hidden] { display: none; }
.rcb-option:has(input:checked) { border-color: var(--rc-ink, #1F1F1F); box-shadow: inset 0 0 0 1px var(--rc-ink, #1F1F1F); }
.rcb-option input { accent-color: var(--rc-ink, #1F1F1F); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.rcb-option__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rcb-option__text strong { font-size: 14px; color: var(--rc-ink, #1F1F1F); }
.rcb-option__text small { font-size: 12px; color: var(--rc-muted, #6B6B6B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcb-option__km { font-size: 13px; color: var(--rc-muted, #6B6B6B); white-space: nowrap; }
.rcb-note { font-size: 12px; color: var(--rc-muted, #6B6B6B); margin: 12px 0 0; }
@media (max-width: 760px) {
	.rcb-modal { padding: 0; align-items: end; }
	.rcb-modal__box { grid-template-columns: 1fr; max-height: 92vh; border-radius: 16px 16px 0 0; }
	.rcb-modal__map { display: none; }
	.rcb-modal__form { padding: 24px 16px 0; max-height: 92vh; max-height: 92dvh; }
	.rcb-modal__foot { margin: 0 -16px; padding: 12px 16px 16px; }
	.rcb-modal__head h2 { font-size: 22px; }
}

/* Map pins */
.rcb-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 2px solid var(--rc-ink, #1F1F1F); }
.rcb-pin.is-active { background: var(--rc-ink, #1F1F1F); }
.rcb-you { width: 14px; height: 14px; border-radius: 50%; background: var(--rc-ink, #1F1F1F); box-shadow: 0 0 0 8px rgba(31, 31, 31, .15); }

/* Find a store */
.rcb-finder { margin-block: 8px 64px; }
.rcb-finder__title { font-size: clamp(28px, 3vw, 36px); font-weight: 600; margin: 0; color: var(--rc-ink, #1F1F1F); }
.rcb-finder__filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; }
.rcb-finder__count { margin: 0 0 12px; font-size: 14px; }
.rcb-finder__body { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 24px; align-items: start; }
.rcb-finder__list { display: flex; flex-direction: column; gap: 14px; }
.rcb-finder__map { position: sticky; top: 24px; height: min(910px, calc(100vh - 48px)); border-radius: 12px; background: var(--rc-placeholder, #ECECEC); overflow: hidden; }
.rcb-card { border: 1px solid var(--rc-border, #D0D0D0); border-radius: 8px; padding: 20px; background: #fff; transition: border-color .15s ease; }
.rcb-card[hidden] { display: none; }
.rcb-card.is-current, .rcb-card.is-hover { border-color: var(--rc-ink, #1F1F1F); }
.rcb-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rcb-card__name { font-size: 18px !important; font-weight: 600 !important; margin: 0 0 6px !important; color: var(--rc-ink, #1F1F1F); }
.rcb-card__address { margin: 0 0 4px; color: var(--rc-muted, #6B6B6B); font-size: 15px; }
.rcb-card__km { color: var(--rc-ink, #1F1F1F); font-weight: 600; }
.rcb-card__km:not(:empty)::before { content: "· "; }
.rcb-card__meta { margin: 0 0 4px; font-size: 14px; color: var(--rc-text, #333); }
.rcb-card__meta:empty { display: none; }
.rcb-card__services { margin: 0 0 14px; font-size: 12px; color: var(--rc-muted, #6B6B6B); }
.rcb-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rcb-set-form { margin: 0; }
@media (max-width: 899px) {
	.rcb-finder__body { grid-template-columns: 1fr; }
	.rcb-finder__map { position: relative; top: 0; height: 320px; order: -1; }
}
