/* Public customer routes: scoped so staff and authenticated CRM workspaces retain
   their existing layouts. */
:root {
  --mccc-public-blue: #0758ec;
  --mccc-public-blue-dark: #061f66;
  --mccc-public-ink: #071845;
  --mccc-public-copy: #50658e;
  --mccc-public-line: #d6e0f2;
  --mccc-public-page: #f5f9ff;
  --mccc-public-panel: #ffffff;
  --mccc-public-gutter: clamp(16px, 4.5vw, 20px);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mccc-public-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
  font-weight: 800;
}

.mccc-public-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

/* Public welcome has no form controls and uses normal document scrolling. */
body.mccc-customer-welcome-page {
  min-height: 100%;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #fff !important;
}
body.mccc-customer-welcome-page > :is(.crm-page-loader, #loginScreen, .app-shell, .app-layout, .mobile-app-shell, .bottom-nav, #mobileNavOverlay),
html.mccc-customer-welcome-entry body.locked > #loginScreen { display: none !important; }
body.mccc-customer-welcome-page .mccc-welcome-portal { display: block; }
body:not(.locked) .mccc-welcome-portal { display: none; }
.mccc-welcome-portal {
  box-sizing: border-box;
  width: min(100%, 620px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(18px, env(safe-area-inset-bottom, 0px));
  background: #fff;
  color: var(--mccc-public-ink);
  overflow: visible;
}
.mccc-welcome-portal *, .mccc-welcome-portal *::before, .mccc-welcome-portal *::after { box-sizing: border-box; }
.mccc-welcome-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 5px 22px 13px; }
.mccc-welcome-brand { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; }
.mccc-welcome-brand img { display: block; width: min(100%, 252px); height: auto; max-height: 44px; object-fit: contain; object-position: left center; }
.mccc-welcome-campaign { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; padding-left: 12px; border-left: 1px solid #cbdcf5; }
.mccc-welcome-campaign img { display: block; width: 29px; height: 39px; object-fit: contain; }
.mccc-welcome-campaign span { color: #0b2855; font-size: 9px; font-weight: 750; line-height: 1.2; }
.mccc-welcome-content { padding: 20px 22px 0; }
.mccc-welcome-content h1 { margin: 0; color: #071845; font-size: clamp(32px, 9.4vw, 42px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.mccc-welcome-intro { margin: 12px 0 20px; color: #445777; font-size: 17px; line-height: 1.45; }
.mccc-welcome-login { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 13px 18px; border-radius: 13px; background: #0066ed; color: #fff; font-size: 19px; font-weight: 750; line-height: 1.4; text-decoration: none; }
.mccc-welcome-login .mccc-public-icon { font-size: 24px; }
.mccc-welcome-member-copy { margin: 9px 0 0; color: #526583; font-size: 14px; line-height: 1.5; text-align: center; }
.mccc-welcome-signup { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin-top: 6px; padding: 10px 0; color: #0066ed; font-size: 16px; font-weight: 600; text-decoration: none; }
.mccc-welcome-links { margin-top: 13px; border-top: 1px solid #d6e0f2; }
.mccc-welcome-links a { display: flex; align-items: center; gap: 12px; min-height: 59px; padding: 12px 0; border-bottom: 1px solid #d6e0f2; color: #071845; font-size: 16px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.mccc-welcome-links a > .mccc-public-icon:first-child { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #edf4ff; color: #0066ed; font-size: 22px; }
.mccc-welcome-links a:last-child > .mccc-public-icon:first-child { background: #fff0f2; }
.mccc-welcome-links a > .mccc-public-icon:last-child { margin-left: auto; color: #0066ed; font-size: 19px; }
.mccc-welcome-portal a:focus-visible,
.mccc-public-customer-portal :is(a, button, input):focus-visible { outline: 3px solid #9ec6ff; outline-offset: 3px; }
@media (min-width: 641px) {
  .mccc-welcome-portal { padding: 24px; }
  .mccc-welcome-header { padding-inline: 0; padding-bottom: 18px; }
  .mccc-welcome-content { max-width: 464px; margin: 0 auto; padding: 26px 0 0; }
}
@media (max-width: 359px) {
  .mccc-welcome-header { padding-inline: 20px; gap: 9px; }
  .mccc-welcome-campaign { gap: 4px; padding-left: 8px; }
  .mccc-welcome-campaign img { width: 24px; height: 34px; }
  .mccc-welcome-campaign span { font-size: 8px; }
  .mccc-welcome-content { padding-inline: 20px; }
  .mccc-welcome-intro { font-size: 16px; }
}

/* Public workshop, directory and About routes -------------------------- */
body.mccc-public-page {
  overflow: hidden !important;
  background: var(--mccc-public-page) !important;
}

body.mccc-public-page > .crm-page-loader,
body.mccc-public-page > .login-screen,
body.mccc-public-page > #loginScreen.login-screen,
body.mccc-public-page > .app-shell,
body.mccc-public-page > .app-layout,
body.mccc-public-page > .mobile-app-shell {
  display: none !important;
}

/* The guest workshop nav can finish mounting after the public portal. Match
   its ID-heavy selector so it cannot leave a second, hidden scroll tree below
   the portal. */
body.mccc-public-page:has(#workshop-locations.active #mobileWorkshops[data-audience="guest"]) > .shell.app-shell {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The selected-login stylesheet uses an ID selector plus !important. Match its
   specificity so the native login screen cannot remain over a public route. */
html body.mccc-public-page #loginScreen.customer-login-design.login-screen:not(.is-registration-open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  html body.mccc-public-page #loginScreen.login-screen.is-mobile-poster-login.customer-login-design:not(.is-registration-open):has(#loginRole option:checked[value="customer"]) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Direct public URLs must never flash the legacy login shell while the
   lightweight public portal is being created. The route class is set in the
   document head, before the shared CRM markup is parsed. */
html.mccc-public-route-boot body > .crm-page-loader,
html.mccc-public-route-boot body > #loginScreen.login-screen.is-mobile-poster-login:not(.is-registration-open):has(#loginRole option:checked[value="customer"]),
html.mccc-public-route-boot body > .app-shell,
html.mccc-public-route-boot body > .app-layout,
html.mccc-public-route-boot body > .mobile-app-shell,
html.mccc-public-route-boot body > .bottom-nav,
html.mccc-public-route-boot body > #mobileNavOverlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The legacy CRM can finish mounting after a public-route navigation.  Its
   fixed mobile controls must never sit over the signed-out workshop portal. */
body.mccc-public-page .bottom-nav,
body.mccc-public-page #mobileNavOverlay,
body.mccc-public-page .mobile-header,
body.mccc-public-page .page-header {
  display: none !important;
}

.mccc-public-customer-portal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--mccc-public-ink);
  background: var(--mccc-public-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 0 50px rgba(14, 50, 115, .08);
}

.mccc-public-header {
  flex: 0 0 auto;
  min-height: 60px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: max(7px, env(safe-area-inset-top)) var(--mccc-public-gutter) 7px;
  color: var(--mccc-public-ink);
  background: rgba(249, 252, 255, .97);
  border-bottom: 1px solid rgba(214, 224, 242, .7);
  box-sizing: border-box;
}

.mccc-public-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #062b72;
  font-size: 33px;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.mccc-public-header-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mccc-public-header-logo img {
  display: block;
  width: min(45vw, 196px);
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.mccc-public-region {
  padding: 7px 0 7px 8px;
  color: #071845;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 600;
  white-space: nowrap;
}

.mccc-public-main {
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
}

.mccc-public-hero {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  background-color: #0b368a;
  background-image: linear-gradient(100deg, rgba(4, 24, 82, .92), rgba(9, 53, 151, .28)), var(--mccc-hero-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.mccc-public-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 82, .25), rgba(4, 24, 82, .04));
}

.mccc-public-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
  padding: 22px var(--mccc-public-gutter);
  color: #ffffff;
}

.mccc-public-hero h1 {
  margin: 0;
  font-size: clamp(27px, 7.5vw, 37px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.mccc-public-hero p {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(14px, 3.75vw, 17px);
  line-height: 1.28;
}

.mccc-public-loading,
.mccc-public-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 220px;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--mccc-public-copy);
}

.mccc-public-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #c9dbfb;
  border-top-color: #0758ec;
  border-radius: 50%;
  animation: mccc-public-spin .8s linear infinite;
}

@keyframes mccc-public-spin { to { transform: rotate(360deg); } }

.mccc-public-empty strong {
  color: var(--mccc-public-ink);
  font-size: 18px;
}

.mccc-public-empty p {
  max-width: 330px;
  margin: 0;
  line-height: 1.45;
}

.mccc-public-empty a,
.mccc-browse-branches,
.mccc-login-link {
  color: #0758ec;
  font-weight: 700;
  text-decoration: none;
}

.mccc-public-notice {
  margin: 6px var(--mccc-public-gutter) 0;
  padding: 8px 10px;
  color: #7d4a08;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid #f3d09b;
  border-radius: 10px;
  background: #fff9ec;
}

/* Locator */
.mccc-nearest-main {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Leave space for Google's native controls and attribution. Cooperative map
   gestures keep one-finger page scrolling usable on mobile. */
.mccc-nearest-main--map {
  --mccc-nearest-map-height: clamp(300px, 40svh, 370px);
  scroll-padding-bottom: max(16px, env(safe-area-inset-bottom));
  touch-action: pan-y;
}

.mccc-nearest-main--map .mccc-nearest-results {
  min-height: calc(var(--mccc-nearest-map-height) + 48px);
}

.mccc-nearest-main--map .mccc-map-wrap {
  flex: 0 0 var(--mccc-nearest-map-height);
  height: var(--mccc-nearest-map-height);
  touch-action: pan-y;
}

.mccc-nearest-main--map .mccc-public-map {
  height: calc(100% - 42px);
  min-height: 240px;
}

.mccc-nearest-main--map .mccc-map-status {
  min-height: 42px;
}

.mccc-location-panel {
  display: grid;
  gap: 9px;
  padding: 12px var(--mccc-public-gutter) 8px;
  background: #ffffff;
}

.mccc-use-location {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--mccc-public-ink);
  text-align: left;
  cursor: pointer;
  border: 1.5px solid #bcd4fa;
  border-radius: 13px;
  background: #ffffff;
}

.mccc-use-location:disabled {
  cursor: wait;
  opacity: .7;
}

.mccc-use-location > .mccc-public-icon:first-child {
  width: 36px;
  height: 36px;
  color: #0758ec;
  font-size: 27px;
  border-radius: 10px;
  background: #ecf4ff;
}

.mccc-use-location strong,
.mccc-use-location small {
  display: block;
}

.mccc-use-location strong {
  font-size: 15px;
}

.mccc-use-location small {
  margin-top: 2px;
  color: #53688f;
  font-size: 12px;
  line-height: 1.2;
}

.mccc-use-location > .mccc-public-icon:last-child {
  justify-self: end;
  color: #0758ec;
  font-size: 28px;
}

.mccc-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #5c6e91;
  font-size: 13px;
}

.mccc-or span {
  height: 1px;
  background: #d5deee;
}

.mccc-or b { font-weight: 500; }

.mccc-search-field {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #0758ec;
  border: 1.5px solid #b9c8e3;
  border-radius: 13px;
  background: #ffffff;
  box-sizing: border-box;
}

.mccc-search-field .mccc-public-icon {
  font-size: 21px;
}

.mccc-search-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--mccc-public-ink);
  font: inherit;
  font-size: 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.mccc-search-field input::placeholder { color: #7084a6; opacity: 1; }
.mccc-search-field:focus-within { border-color: #0758ec; box-shadow: 0 0 0 3px rgba(7, 88, 236, .13); }

.mccc-location-status {
  min-height: 16px;
  margin: 0;
  color: #596d91;
  font-size: 12px;
  line-height: 1.28;
}

.mccc-nearest-results {
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 var(--mccc-public-gutter);
  overflow: hidden;
  border: 1px solid #d9e4f4;
  border-radius: 16px;
  background: #ffffff;
}

.mccc-results-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 13px;
  border-bottom: 1px solid #e4ebf6;
}

.mccc-results-head h2 {
  margin: 0;
  color: #102552;
  font-size: 15px;
  line-height: 1.15;
}

.mccc-view-toggle {
  display: flex;
  padding: 3px;
  border-radius: 18px;
  background: #eaf1fb;
}

.mccc-view-toggle button,
.mccc-filter-chips button {
  min-height: 36px;
  padding: 7px 14px;
  color: #11234e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 16px;
  background: transparent;
  white-space: nowrap;
}

.mccc-view-toggle button.is-active,
.mccc-filter-chips button.is-active {
  color: #ffffff;
  background: #0758ec;
  box-shadow: 0 3px 8px rgba(7, 88, 236, .2);
}

.mccc-map-wrap,
.mccc-nearest-list {
  min-height: 0;
  flex: 1 1 auto;
}

.mccc-public-map {
  width: 100%;
  height: calc(100% - 26px);
  min-height: 145px;
  color: #102552;
  background: linear-gradient(135deg, #d7f0ff, #e9f8ed);
}

.mccc-map-wrap[hidden], .mccc-nearest-list[hidden], .mccc-public-map[hidden], .mccc-map-no-coordinates[hidden] { display: none !important; }
.mccc-map-no-coordinates { min-height: calc(var(--mccc-nearest-map-height, 300px) - 42px); }

.mccc-map-status {
  min-height: 26px;
  margin: 0;
  padding: 5px 10px;
  color: #52688f;
  font-size: 11px;
  line-height: 1.25;
  box-sizing: border-box;
}

.mccc-map-fallback {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  color: #53688f;
  text-align: center;
  box-sizing: border-box;
}

.mccc-map-fallback strong { color: #0b275e; }
.mccc-map-fallback p { margin: 0; font-size: 13px; line-height: 1.35; }

.mccc-nearest-list {
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
  max-height: 420px;
}

/* A failed map must not consume the list's entire flex space. Show a brief
   message and an immediately usable scrollable list without requiring a toggle. */
.mccc-nearest-main--map .mccc-nearest-results[data-map-state="unavailable"] {
  --mccc-nearest-map-height: 180px;
  min-height: 560px;
}
.mccc-nearest-results[data-map-state="unavailable"] .mccc-public-map {
  min-height: 100px;
}
.mccc-nearest-main--map .mccc-nearest-results[data-map-state="unavailable"] .mccc-nearest-list {
  flex: 0 0 320px;
  height: 320px;
  max-height: 320px;
}

.mccc-branch-card.is-selected { border-color: #0758ec; box-shadow: 0 0 0 1px #0758ec; }
.mccc-branch-distance { display: block; color: #53688f; font-size: 11px; line-height: 1.4; }
.mccc-branch-actions button {
  min-height: 36px; padding: 6px 9px; border: 1px solid #bcd4fa; border-radius: 8px;
  color: #0758ec; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.mccc-branch-actions button[aria-pressed="true"] { color: #fff; background: #0758ec; }

.mccc-selected-branch {
  display: grid;
  gap: 3px;
  margin: 8px var(--mccc-public-gutter) 0;
  padding: 9px 11px;
  border: 1px solid #d7e4f5;
  border-radius: 13px;
  background: #ffffff;
}

.mccc-selected-branch p {
  margin: 0;
  color: #607395;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mccc-selected-branch a {
  color: #0c2558;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.mccc-selected-branch span,
.mccc-selected-branch small {
  color: #53688f;
  font-size: 12px;
  line-height: 1.25;
}

.mccc-selected-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 5px; }
.mccc-selected-actions .mccc-directions-button {
  flex-basis: 100%; min-height: 46px; margin: 0; color: #fff; font-size: 15px;
}
.mccc-selected-actions .mccc-public-icon { color: inherit; font-size: 20px; }
.mccc-selected-actions .mccc-selected-call, .mccc-selected-actions .mccc-selected-details {
  display: inline-flex; gap: 5px; align-items: center; min-height: 38px; color: #0758ec; font-size: 13px;
}
.mccc-selected-actions .mccc-selected-whatsapp { min-height: 38px; display: inline-flex; align-items: center; color: #0758ec; font-size: 13px; }

.mccc-directions-button,
.mccc-secondary-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 8px var(--mccc-public-gutter) 0;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 13px;
  background: linear-gradient(100deg, #0758ec, #0570f4);
  box-shadow: 0 10px 20px rgba(7, 88, 236, .19);
  box-sizing: border-box;
}

.mccc-directions-button .mccc-public-icon { font-size: 22px; }

.mccc-directions-unavailable {
  margin: 8px var(--mccc-public-gutter) 0;
  padding: 10px;
  color: #7c5c22;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  border-radius: 11px;
  background: #fff8e6;
}

.mccc-browse-branches {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px var(--mccc-public-gutter) max(8px, env(safe-area-inset-bottom));
  font-size: 14px;
}

.mccc-browse-branches .mccc-public-icon { font-size: 22px; }

/* Directory */
.mccc-branches-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.mccc-directory-controls {
  display: grid;
  gap: 9px;
  padding: 10px var(--mccc-public-gutter);
  background: #ffffff;
}

.mccc-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.mccc-filter-chips::-webkit-scrollbar { display: none; }

.mccc-directory-search { min-height: 46px; }
.mccc-directory-search input { height: 44px; }

.mccc-directory-results {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px var(--mccc-public-gutter) max(14px, env(safe-area-inset-bottom));
  background: #f3f8ff;
}

.mccc-branch-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 11px;
  padding: 9px;
  border: 1px solid #e1e8f4;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(26, 70, 132, .05);
}

.mccc-branch-photo-link {
  align-self: start;
  width: 112px;
  height: 104px;
  overflow: hidden;
  border-radius: 11px;
  background: #e8f0fc;
}

.mccc-branch-photo,
.mccc-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mccc-branch-photo.is-unavailable {
  opacity: 0;
}

.mccc-branch-photo-placeholder {
  display: grid;
  place-items: center;
  color: #5a77a9;
  background: linear-gradient(135deg, #e8f1ff, #f7fbff);
}

.mccc-placeholder-icon { font-size: 31px; }

.mccc-branch-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}

.mccc-branch-name {
  color: #0b2455;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.mccc-branch-place,
.mccc-branch-address,
.mccc-branch-hours {
  margin: 0;
  color: #53688f;
  font-size: 12px;
  line-height: 1.25;
}

.mccc-branch-hours {
  margin-top: 3px;
  color: #496388;
}

.mccc-branch-hours span {
  margin-right: 5px;
  color: #788cae;
  font-size: 8px;
}

.mccc-branch-actions {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

.mccc-branch-actions > a:not(.mccc-branch-details) {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0758ec;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mccc-branch-actions > a:not(.mccc-branch-details) .mccc-public-icon { font-size: 17px; }

.mccc-branch-details {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: auto;
  color: #0758ec;
  font-size: 28px;
  text-decoration: none;
  border-radius: 50%;
}

.mccc-branch-card.is-compact {
  grid-template-columns: 78px minmax(0, 1fr);
  padding: 7px;
}

.mccc-branch-card.is-compact .mccc-branch-photo-link {
  width: 78px;
  height: 76px;
}

.mccc-branch-card.is-compact .mccc-branch-address,
.mccc-branch-card.is-compact .mccc-branch-hours,
.mccc-branch-card.is-compact .mccc-branch-actions > a:not(.mccc-branch-details) span:not(.mccc-public-icon) {
  display: none;
}

.mccc-branch-card.is-compact .mccc-branch-actions {
  min-height: 30px;
}

/* Branch detail */
.mccc-detail-main {
  overflow-y: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.mccc-detail-photo {
  height: min(45vw, 240px);
  min-height: 170px;
  background: #e7effb;
}

.mccc-detail-photo .mccc-branch-photo-placeholder { height: 100%; }

.mccc-detail-copy {
  padding: 20px var(--mccc-public-gutter) 6px;
}

.mccc-detail-copy > p:first-child {
  margin: 0 0 6px;
  color: #0758ec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.mccc-detail-copy h1 {
  margin: 0;
  color: #071845;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.mccc-detail-code {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  color: #1e5499;
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  background: #eaf2ff;
}

.mccc-detail-copy h2 {
  margin: 21px 0 5px;
  color: #102552;
  font-size: 16px;
}

.mccc-detail-copy h2 + p,
.mccc-detail-copy li {
  color: #52688f;
  font-size: 15px;
  line-height: 1.45;
}

.mccc-detail-copy h2 + p { margin: 0; }
.mccc-detail-copy ul { margin: 0; padding-left: 20px; }
.mccc-detail-actions { display: grid; gap: 1px; }
.mccc-detail-actions .mccc-secondary-button { color: #0758ec; border: 1.5px solid #0758ec; background: #fff; box-shadow: none; }

/* About */
.mccc-about-main {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.mccc-about-main .mccc-public-hero {
  display: flex;
  min-height: 176px;
}

.mccc-about-main .mccc-public-hero-copy {
  width: 100%;
  max-width: none;
  padding-top: 28px;
  padding-bottom: 30px;
  box-sizing: border-box;
}

.mccc-about-main .mccc-public-hero h1 {
  max-width: 13ch;
  text-wrap: balance;
}

.mccc-about-main .mccc-public-hero p {
  max-width: 29ch;
  margin-top: 12px;
  text-wrap: balance;
}

.mccc-about-copy,
.mccc-services-section {
  padding: 20px var(--mccc-public-gutter) 0;
}

.mccc-about-copy p {
  margin: 0;
  color: #455f8c;
  font-size: 16px;
  line-height: 1.55;
}

.mccc-services-section > div > p {
  margin: 0 0 3px;
  color: #0758ec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.mccc-services-section h2 {
  margin: 0 0 12px;
  color: #071845;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.mccc-service-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #e0e8f5;
  border-radius: 14px;
  background: #ffffff;
}

.mccc-service-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--mccc-service-colour);
  font-size: 24px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--mccc-service-colour) 11%, white);
  overflow: hidden;
}

.mccc-service-card > span > .mccc-auto-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.mccc-service-card h3 {
  margin: 0;
  color: #0d2858;
  font-size: 16px;
  line-height: 1.2;
}

.mccc-service-card p,
.mccc-about-empty {
  margin: 3px 0 0;
  color: #53688f;
  font-size: 13px;
  line-height: 1.35;
}

.mccc-about-actions {
  display: grid;
  gap: 2px;
  padding: 20px 0 0;
}

.mccc-about-actions .mccc-secondary-button {
  color: #0758ec;
  border: 1.5px solid #0758ec;
  background: #fff;
  box-shadow: none;
}

.mccc-login-link {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin: 0 var(--mccc-public-gutter);
  font-size: 15px;
}

/* AdvancedMarkerElement children, never overlays over Google's attribution. */
.mccc-google-marker { cursor: pointer; }
.mccc-google-pin {
  position: relative; display: block; max-width: 142px; padding: 7px 9px;
  border: 2px solid #fff; border-radius: 10px; color: #fff; background: #0758ec;
  font: 700 12px/1.2 system-ui, sans-serif; text-align: center; white-space: normal;
  box-shadow: 0 3px 8px #08285a55;
}
.mccc-google-pin::after {
  content: ""; position: absolute; left: calc(50% - 5px); bottom: -6px;
  width: 8px; height: 8px; background: inherit; border-right: 2px solid #fff;
  border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.mccc-google-marker.is-selected .mccc-google-pin { background: #062b72; outline: 3px solid #74b5ff; font-weight: 900; }
.mccc-google-marker:focus-visible .mccc-google-pin { outline: 3px solid #071845; outline-offset: 3px; }
.mccc-google-origin { display: block; width: 17px; height: 17px; border-radius: 50%; border: 3px solid white; background: #0758ec; box-shadow: 0 0 0 6px #0758ec33; }

@media (min-width: 621px) {
  .mccc-public-customer-portal { border-inline: 1px solid #d7e4f5; }
}

@media (max-height: 780px) {
  .mccc-public-header { min-height: 54px; }
  .mccc-public-hero { min-height: 96px; }
  .mccc-public-hero-copy { padding-block: 14px; }
  .mccc-public-hero h1 { font-size: 25px; }
  .mccc-public-hero p { margin-top: 4px; font-size: 13px; }
  .mccc-location-panel { gap: 6px; padding-block: 8px 5px; }
  .mccc-use-location { min-height: 49px; }
  .mccc-use-location small { display: none; }
  .mccc-or { display: none; }
  .mccc-search-field { min-height: 43px; }
  .mccc-search-field input { height: 41px; }
  .mccc-nearest-results { min-height: 115px; }
  .mccc-results-head { min-height: 42px; }
  .mccc-view-toggle button { min-height: 30px; padding-block: 5px; }
  .mccc-selected-branch { margin-top: 5px; padding-block: 7px; }
  .mccc-directions-button { min-height: 46px; margin-top: 5px; }
  .mccc-browse-branches { min-height: 30px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .mccc-branch-card { grid-template-columns: 94px minmax(0, 1fr); }
  .mccc-branch-photo-link { width: 94px; height: 88px; }
}

@media (max-height: 670px) {
  .mccc-public-hero { min-height: 72px; }
  .mccc-public-hero-copy { padding-block: 10px; }
  .mccc-public-hero p { display: none; }
  .mccc-location-panel { padding-top: 5px; }
  .mccc-use-location { min-height: 44px; }
  .mccc-use-location > .mccc-public-icon:first-child { width: 30px; height: 30px; font-size: 20px; }
  .mccc-use-location strong { font-size: 13px; }
  .mccc-search-field { min-height: 40px; }
  .mccc-search-field input { height: 38px; }
  .mccc-nearest-results { min-height: 90px; }
  .mccc-public-map { min-height: 90px; }
  .mccc-directory-controls { padding-block: 6px; gap: 5px; }
  .mccc-filter-chips button { min-height: 30px; padding: 5px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .mccc-public-loading span { animation: none; }
}
