/* CEYMAT – store-visit additions (2026-10-14).
   Kept separate from sept.css (generated by the redesign build) so it can be removed on its own.
   Loaded via website.custom_code_head (<link id="ceymat-visit">). */

/* Homepage "Bezoek onze winkel" block */
.cm-visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6, 32px);
  align-items: stretch;
}
.cm-visit__grid .info-card { height: 100%; }
/* sept.css gives .map-frame aspect-ratio 16/10; with a stretched height that forces extra width, so reset it here */
.cm-visit__grid .cm-visit__map { margin: 0; min-width: 0; min-height: 320px; height: 100%; aspect-ratio: auto; border-color: rgba(23, 32, 39, .15); }
.cm-visit__grid .cm-visit__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.cm-visit__actions,
.cm-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 12px);
}
.cm-visit__actions { margin-top: var(--space-5, 24px); }
.cm-visit__note { margin-top: var(--space-3, 12px); font-size: 14px; opacity: .8; }

@media (max-width: 767.98px) {
  .cm-visit__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-visit__grid .cm-visit__map,
  .cm-visit__grid .cm-visit__map iframe { min-height: 240px; }
  .cm-visit__actions .btn,
  .cm-strip-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Footer contact links: same look as the plain text they replace */
.site-footer .footer-contact a { color: inherit; text-decoration: none; }
.site-footer .footer-contact a:hover,
.site-footer .footer-contact a:focus-visible { text-decoration: underline; }

/* Product page: pick-up note (replaces Odoo's default terms text) */
.cm-pdp-store { margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(23, 32, 39, .15); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.cm-pdp-store p { margin: 0 0 6px; }
.cm-pdp-store p:last-child { margin-bottom: 0; }
.cm-pdp-store .cm-pdp-store__title { font-weight: 700; color: #172027; }
.cm-pdp-store a { color: #bb0f12; font-weight: 600; }
.cm-pdp-store .cm-pdp-store__links a { color: #4a5560; font-weight: 400; }

/* Mobile route/call bar (home, contact, levering & afhaling only; never on shop/checkout) */
.cm-visitbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020; /* below the sticky header (1030), offcanvas and modals */
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #172027;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
}
.cm-visitbar a.cm-visitbar__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cm-visitbar a.cm-visitbar__btn--primary { background: #bb0f12; border-color: #bb0f12; }
.cm-visitbar a.cm-visitbar__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cm-visitbar .cm-visitbar__btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 767.98px) {
  body:has(.cm-visitbar) #wrapwrap { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  /* focus/anchor scrolling keeps fields and buttons above the bar */
  html:has(.cm-visitbar) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
  .cm-visitbar { display: none !important; }
}
/* The mobile menu lives in the header's stacking context, so z-index alone can't keep it above the bar:
   hide the bar while any offcanvas (menu, shop filters) or modal is open. */
body:has(.offcanvas.show) .cm-visitbar,
body:has(.offcanvas.showing) .cm-visitbar,
body.modal-open .cm-visitbar { display: none !important; }
