/* Netwise Mall Store Details: scoped, inheritable typography, override via nwmall selectors. */
.nwmall-store-details { width:100%; color:inherit; --nwm-surface:#f6f8fb; --nwm-border:#dce3ed; }
.nwmall-store-details * { box-sizing:border-box; }
.nwmall-store-details__header { background:var(--nwm-primary,#273c82); color:#fff; padding:clamp(1.25rem,3vw,2rem); margin-bottom:1.5rem; border-radius:var(--nwm-radius,8px); }
.nwmall-store-details__header h1,.nwmall-store-details__header h2 { color:#fff; font-size:clamp(1.5rem,3vw,2.25rem); margin:.5rem 0; }
.nwmall-store-details__header .nwmall-store-details__back { color:#fff; }
.nwmall-store-details__categories { opacity:.87; font-size:.95rem; }
.nwmall-store-details__main { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(1rem,3vw,2rem); align-items:start; }
.nwmall-store-details__image { width:100%; max-height:440px; object-fit:contain; display:block; background:var(--nwm-surface); border-radius:var(--nwm-radius,8px); }
.nwmall-store-details__heading { font-size:1.3rem; margin:0 0 1rem; }
.nwmall-store-details__information { background:var(--nwm-surface); border:1px solid var(--nwm-border); padding:clamp(1rem,2vw,1.5rem); border-radius:var(--nwm-radius,8px); }
.nwmall-store-details__fields { padding:0; margin:0; }
.nwmall-store-field { display:grid; grid-template-columns:minmax(9rem, 11rem) minmax(0,1fr); align-items:baseline; column-gap:.65rem; padding:.6rem 0; border-bottom:1px solid var(--nwm-border); overflow-wrap:anywhere; }
.nwmall-store-field--stacked { display:block; }
.nwmall-store-field--stacked .nwmall-store-field__label { display:block; margin-bottom:.3rem; }
.nwmall-store-field:last-child { border-bottom:0; }
.nwmall-store-field__label { font-weight:700; font-size:.9rem; margin:0; }
.nwmall-store-field__label::after { content: ':'; }
.nwmall-store-field__value { margin:0; min-width:0; line-height:1.5; }
.nwmall-store-field--stacked .nwmall-store-field__value { display:block; }
.nwmall-contact-link { color:var(--nwm-primary,#273c82); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.nwmall-contact-link:hover { text-decoration-thickness:2px; }
.nwmall-contact-link:focus-visible { outline:3px solid var(--nwm-primary,#273c82); outline-offset:2px; }
.nwmall-store-details__about { padding:1.5rem 0; margin:1.5rem 0; border-top:1px solid var(--nwm-border); }
.nwmall-store-details__article-text { line-height:1.7; }
.nwmall-store-details__footer { border-top:1px solid var(--nwm-border); padding:1rem 0; }
.nwmall-store-details__back { color:var(--nwm-primary,#273c82); font-weight:600; }
.nwmall-store-details--preview .nwmall-store-details__header { padding:1.25rem; margin-bottom:1rem; }
.nwmall-store-details--preview .nwmall-preview__title { font-size:1.55rem; }
.nwmall-store-details--preview .nwmall-store-details__image { max-height:300px; }
.nwmall-store-details--preview .nwmall-store-details__fields { border-radius:var(--nwm-radius,8px); }
.nwmall-store-details--preview .nwmall-preview__description { line-height:1.55; padding:1rem 0; }
.nwmall-store-details__button { display:inline-block; border-radius:var(--nwm-radius,8px); background:var(--nwm-primary,#273c82); color:#fff!important; padding:.8rem 1.25rem; text-decoration:none; font-weight:600; }
@media (max-width:650px){ .nwmall-store-details__main { grid-template-columns:minmax(0,1fr); } .nwmall-store-details__header { padding:1rem; } }

/* Public store links share one overridable class across full pages, previews and listings. */
.nwmall-store-details .nwmall-contact-link { overflow-wrap:anywhere; }
.nwmall-modal--directory { position:fixed; max-width:min(92vw,760px); width:100%; max-height:90vh; padding:1.5rem; overflow:auto; border:0; border-radius:var(--nwm-radius,8px); box-shadow:0 25px 65px #10182860; background:#fff; color:inherit; }
.nwmall-modal--directory::backdrop { background:rgba(12,21,38,.72); }
.nwmall-modal--directory .nwmall-modal__close { position:sticky; top:0; float:right; z-index:1; border:1px solid #dce3ed; border-radius:6px; background:#fff; font-size:1.5rem; padding:.25rem .55rem; cursor:pointer; }

/* Labels and values use a shared fixed-width label column, not independent label widths. */
.nwmall-store-details__fields .nwmall-store-field--inline { grid-template-columns:11rem minmax(0,1fr); }
@media(max-width:440px) { .nwmall-store-details__fields .nwmall-store-field--inline {grid-template-columns:minmax(7.25rem, 40%) minmax(0,1fr);} }

/* Alpha 10: About and opening hours appear side-by-side on larger screens. */
.nwmall-store-details__lower { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(1rem,3vw,2rem); margin:1.5rem 0; padding-top:1.5rem; border-top:1px solid var(--nwm-border); }
.nwmall-store-details__lower--with-hours { grid-template-columns:minmax(0, 1.55fr) minmax(230px, 1fr); align-items:start; }
.nwmall-store-details__lower .nwmall-store-details__about { margin:0; padding:0; border:0; min-width:0; }
.nwmall-store-details__hours { background:var(--nwm-surface); border:1px solid var(--nwm-border); border-radius:var(--nwm-radius,8px); padding:clamp(1rem,2vw,1.5rem); }
.nwmall-store-details__hours-text { white-space:normal; line-height:1.7; overflow-wrap:anywhere; }
/* Make popup storefront image secondary, leaving more room for contact fields. */
.nwmall-store-details--preview .nwmall-store-details__main { grid-template-columns:minmax(110px, 28%) minmax(0, 1fr); align-items:start; gap:1rem; }
.nwmall-store-details--preview .nwmall-store-details__image { max-height:145px; object-fit:contain; }
.nwmall-store-details--preview .nwmall-store-details__fields { min-width:0; }
.nwmall-store-details--preview .nwmall-store-field--inline { grid-template-columns:minmax(6rem,35%) minmax(0,1fr); }
@media (max-width:700px) { .nwmall-store-details__lower--with-hours { grid-template-columns:minmax(0,1fr); } }
@media (max-width:480px) { .nwmall-store-details--preview .nwmall-store-details__main { grid-template-columns:minmax(0,1fr); } .nwmall-store-details--preview .nwmall-store-details__image { max-height:120px; width:100%; } }

/* Alpha 22: full store pages and popups share telephone link/separator styling.
   The BEM selectors below can be overridden by the site template. */
.nwmall-store-details .nwmall-store-field--telephone-group .nwmall-store-field__telephone-numbers {
  overflow-wrap: anywhere;
}
.nwmall-store-details .nwmall-store-field__telephone-separator {
  white-space: nowrap;
}

/* Alpha 2.2: Store Tags are separate from shopping categories, only in full/preview views. */
.nwmall-store-details__location { margin:.5rem 0 0; font-size:.9rem; opacity:.92; }
.nwmall-store-tags { margin:0 0 1.5rem; padding:0; min-width:0; }
.nwmall-store-tags__heading { margin:0 0 .65rem; font-size:1rem; font-weight:700; line-height:1.4; }
.nwmall-store-tags__chips { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.nwmall-store-tags__chip { display:inline-flex; max-width:100%; align-items:center; padding:.28rem .7rem; border-radius:1000px; border:1px solid var(--nwm-border,#dce3ed); background:var(--nwm-surface,#f6f8fb); color:inherit; font-size:.85rem; font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
.nwmall-store-details--preview .nwmall-store-tags { margin-bottom:1rem; }
.nwmall-store-details--preview .nwmall-store-tags__heading { font-size:.95rem; }
@media (max-width:480px) { .nwmall-store-tags__chips { gap:.35rem; } .nwmall-store-tags__chip { padding:.25rem .55rem; } }

/* Alpha 2.3: feature tags follow About and precede the final navigation control. */
.nwmall-store-details--full > .nwmall-store-tags,
.nwmall-store-details--preview > .nwmall-store-tags {
  border-top:1px solid var(--nwm-border,#dce3ed);
  padding-top:1rem;
  margin:1.25rem 0 1.5rem;
}
.nwmall-store-details--preview > .nwmall-store-tags + .nwmall-preview__full {
  margin-top:.15rem;
}

/* Alpha 2.4: larger square thumbnails in the popup and full store header.
   Override the variables in the site's custom CSS if another size is needed. */
.nwmall-store-details {
  --nwm-store-thumb-size:152px;
  --nwm-preview-thumb-size:128px;
}
.nwmall-store-details__header-content { min-width:0; display:flex; gap:1.25rem; align-items:center; }
.nwmall-store-details__header-copy { min-width:0; flex:1; }
.nwmall-store-details__thumbnail {
  display:block;
  width:var(--nwm-store-thumb-size);
  height:var(--nwm-store-thumb-size);
  flex:0 0 var(--nwm-store-thumb-size);
  max-width:100%;
  aspect-ratio:1;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(255,255,255,.75);
}
.nwmall-store-details--preview .nwmall-store-details__thumbnail {
  width:var(--nwm-preview-thumb-size);
  height:var(--nwm-preview-thumb-size);
  flex-basis:var(--nwm-preview-thumb-size);
}
.nwmall-store-details__main--without-image { grid-template-columns:minmax(0,1fr); }
.nwmall-store-details__main--without-image .nwmall-store-details__information { width:100%; min-width:0; }
.nwmall-store-details--preview .nwmall-store-details__main--without-image { grid-template-columns:minmax(0,1fr); }
.nwmall-store-details--preview .nwmall-store-details__header-content { gap:1rem; }
@media(max-width:480px) {
  .nwmall-store-details {
    --nwm-store-thumb-size:110px;
    --nwm-preview-thumb-size:96px;
  }
  .nwmall-store-details__header-content { align-items:flex-start; gap:.75rem; }
  .nwmall-store-details--preview .nwmall-store-details__header-content { gap:.65rem; }
}
@media(max-width:340px) {
  .nwmall-store-details {
    --nwm-store-thumb-size:96px;
    --nwm-preview-thumb-size:84px;
  }
}

/* v1.0.22: Component Options > Individual Store Pages.
   Separate from directory, module and popup styles. */
.nwmall-store-details--full > .nwmall-store-details__header {
  background: var(--nwm-detail-header-bg, var(--nwm-primary, #273c82));
  color: var(--nwm-detail-header-text, #ffffff);
}
.nwmall-store-details--full > .nwmall-store-details__header .nwmall-store-details__title,
.nwmall-store-details--full > .nwmall-store-details__header .nwmall-store-details__categories,
.nwmall-store-details--full > .nwmall-store-details__header .nwmall-store-details__location {
  color: var(--nwm-detail-header-text, #ffffff);
}
.nwmall-store-details--full > .nwmall-store-details__header .nwmall-store-details__back {
  color: var(--nwm-detail-header-link, #ffffff);
}
.nwmall-store-details--full .nwmall-store-details__information {
  background: var(--nwm-detail-information-bg, #f6f8fb);
}
