/* ==========================================================================
   OCC Messeshop - Custom Theme Styles
   ========================================================================== */

body {
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  --bs-box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 6px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
  --occ-radius: 0.375rem;
  --occ-ring: 0 0 0 2px #fff, 0 0 0 4px #18181b;
  --occ-border: #e4e4e7;
  --occ-input: #e4e4e7;
  --occ-muted: #f4f4f5;
  --occ-muted-fg: #71717a;
  --occ-primary: #18181b;
  --occ-primary-fg: #fafafa;
  --occ-destructive: #ef4444;
  --occ-accent: #f4f4f5;
  letter-spacing: -0.05em;
}

* {
  letter-spacing: -0.05em;
}

@media (min-width: 992px) {
  body {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
  }
}

details {
  border-bottom: 1px solid #E6E6E6;

  summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.25em;

    &::marker {
      content: '';
    }

    &::after {
      content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCAxMSA2IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMC41IDAuNUw1LjUgNS41TDEwLjUgMC41IiBzdHJva2U9IiM4Nzg3ODciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4=);
      translate: 0 -2px;
    }
  }

  &:open {
    padding-bottom: 0.5em;
  }
}

/* --------------------------------------------------------------------------
   Header - Single bar layout
   -------------------------------------------------------------------------- */

.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: static !important;
  z-index: unset;
}

main#wrapper {
  border-left: unset;
  border-right: unset;
  box-shadow: var(--bs-box-shadow);
  border-radius: 0 0 10px 10px;
}

footer#footer {
  border-top: unset;
}

.header-banner {
  /* display: none;*/
}

.header-top {
  display: none;
}

.header-nav-full-width {
  display: none;
}

.header-bottom {
  padding: 0.65rem 0;
  border-bottom: none;
}

.header-bottom__row {
  min-height: 48px;
  justify-content: space-between;
}

#center-column {
  padding: 1.5rem 2rem;
}

@media(max-width: 1280px) {
  .header-bottom__row {
    justify-content: start;
  }

  #center-column {
    padding: 0;
  }
}

.header-bottom__logo {
  width: 180px;
}

/* Logo + Messeshop text */
.header-bottom__logo .navbar-brand {
  color: #212529;
  white-space: nowrap;
  max-width: none;
}

.header-bottom__logo .navbar-brand:hover {
  color: #212529;
}

.header-bottom__logo .logo {
  max-height: 28px;
  width: auto;
}

.header-bottom__shop-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  letter-spacing: -0.01em;
}

.header-bottom__h1 {
  width: 180px;
  font-size: inherit;
  font-weight: inherit;
}

@media(max-width: 1280px) {
  .header-bottom__logo .logo {
    height: 28px;
  }

  .header-bottom__shop-name {
    font-size: 1rem;
  }
}

/* Vælg messe dropdown */
.occ-messe-btn {
  border-radius: 20px;
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #212529;
  border-color: #ced4da;
  background: #fff;
  white-space: nowrap;
  gap: 1rem;
}

.occ-messe-btn:hover,
.occ-messe-btn:focus {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

/* Search bar area */
.header-bottom__search {
  max-width: 520px;
}

/* bm_search styling within header */
.header-bottom__search .bm-search-container {
  width: 100%;
}

.header-bottom__search .bm-search-trigger-mock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: unset;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  background: #f4f4f4;
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.875rem;
  color: #6c757d;
  border-radius: 100vmax;
}

.header-bottom__search .bm-search-trigger-mock:hover {
  border-color: #adb5bd;
}

.bm-search-mock-icon {
  color: #000;
}

.bm-search-trigger svg,
.bm-search-mock-placeholder {
  color: #000;
}

/* ps_searchbar fallback styling */
.header-bottom__search .ps-mainmenu,
.header-bottom__search .ps-mainmenu--mobile {
  display: none !important;
}

.header-bottom__search #_desktop_ps_searchbar {
  display: flex !important;
  flex-grow: 1;
  width: 100%;
}

.header-bottom__search .ps-searchbar {
  width: 100%;
}

.header-bottom__search .ps-searchbar__form {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  background: #fff;
  transition: border-color 0.15s;
}

.header-bottom__search .ps-searchbar__form:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.header-bottom__search .ps-searchbar__input {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  flex-grow: 1;
  background: transparent;
}

.header-bottom__search .ps-searchbar__input:focus {
  box-shadow: none;
}

/* Right side - Login + Cart */
.header-bottom__right {
  white-space: nowrap;
}

.header-bottom__right .header-block {
  display: flex;
  align-items: center;
}

.header-bottom__right .header-block__action-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #212529;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border: none;
  background: none;
}

.header-bottom__right .header-block__action-btn:hover {
  color: #000;
}

.header-bottom__right .header-block__icon {
  font-size: 1.5rem;
}

.header-bottom__right .header-block__title {
  font-size: 0.875rem;
  font-weight: 400;
}

.header-bottom__right .header-block__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #212529;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: -0.25rem;
  position: relative;
  top: -8px;
}

/* Hide Bootstrap dropdown chevron */
.ps-customersignin .dropdown-toggle::after {
  content: unset;
}

/* Customer signin dropdown */
.ps-customersignin .dropdown-menu {
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.ps-customersignin .dropdown-item {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.ps-customersignin .dropdown-menu .material-icons {
  font-size: 1.25em;
}

.ps-customersignin .dropdown-item:hover {
  background: #f4f4f5;
}

.ps-customersignin .dropdown-divider {
  margin: 0px 0;
}

/* Hide language/currency selectors in header (they're in the sidebar) */
.header-bottom__right #_desktop_ps_languageselector,
.header-bottom__right #_desktop_ps_currencyselector {
  display: none;
}

/* Hide wishlist in header (design only shows Sign in + Cart) */
.header-bottom__right .bm-wishlist-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Homepage - Welcome section
   -------------------------------------------------------------------------- */

.occ-welcome {
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.occ-welcome__title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #212529;
  margin-bottom: 1rem;
}

.occ-welcome__contact {
  font-size: 1rem;
  color: #999;
  line-height: 1.5;
  margin-bottom: 0;
}

.header-block__action-btn .header-block__icon {
  display: none;
}

/* --------------------------------------------------------------------------
   Homepage - Messe cards (for displayHome content)
   -------------------------------------------------------------------------- */

.occ-messe-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  transition: box-shadow 0.15s;
}

.occ-messe-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.occ-messe-card__image {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
}

.occ-messe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.occ-messe-card__body {
  flex-grow: 1;
  min-width: 0;
}

.occ-messe-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.35rem;
  max-width: 60ch;
}

.occ-messe-card__description {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.35rem;
  max-width: 60ch;
  line-height: 1.45;
}

.occ-messe-card__deadline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #212529;
}

.occ-messe-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.occ-messe-card__btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #212529;
  background: #212529;
  color: #fff;
  white-space: nowrap;
  transition: all 0.15s;
  min-width: 160px;
}

.occ-messe-card__btn:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.occ-messe-card__btn--outline {
  background: #eee;
  color: #212529;
  border: none;
}

.occ-messe-card__btn--outline:hover {
  background: #f8f9fa;
  color: #212529;
}

/* --------------------------------------------------------------------------
   Sidebar (bm_verticalmenu) - Clean style
   -------------------------------------------------------------------------- */

/* Variable overrides */
#bm-vertical-menu {
  --bm-vmenu-hover-bg: #f4f4f5;
  --bm-vmenu-border: #e4e4e7;
  --bm-vmenu-text: #09090b;
  --bm-vmenu-text-light: #71717a;
  --bm-vmenu-link-color: #09090b;
  --bm-vmenu-font-size: 14px;
  --bm-vmenu-padding: 12px;
}

/* Welcome section */
#bm-vertical-menu .bm-vmenu__welcome {
  padding: 20px 12px 16px;
}

.bm-vmenu__welcome-label {
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;

  &.top-heavy {
    margin-top: 12px !important;
  }
}

#bm-vertical-menu .bm-vmenu__welcome-name {
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
}

#bm-vertical-menu .bm-vmenu__welcome-company {
  font-size: 12px;
  color: #71717a;
}

/* Login link as a dark button */
#bm-vertical-menu .bm-vmenu__login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: #18181b;
  color: #fafafa;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

#bm-vertical-menu .bm-vmenu__login-link:hover {
  background: #27272a;
  text-decoration: none;
  color: #fafafa;
}

/* Account nav section */
#bm-vertical-menu .bm-vmenu__account {
  padding: 4px 0 8px;
}

/* Nav links - rounded hover backgrounds */
#bm-vertical-menu .bm-vmenu__nav-link {
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #3f3f46;
  transition: background 0.15s, color 0.15s;
}

#bm-vertical-menu .bm-vmenu__nav-link:hover,
#bm-vertical-menu .bm-vmenu__nav-link:active {
  background: #18181b;
  color: #fafafa;
}

/* Nav icons */
#bm-vertical-menu .bm-vmenu__nav-icon {
  width: 18px;
  height: 18px;
}

#bm-vertical-menu .bm-vmenu__nav-icon::before {
  width: 16px;
  height: 16px;
  opacity: 1;
}

#bm-vertical-menu .bm-vmenu__nav-link:hover .bm-vmenu__nav-icon::before {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Language selector */
#bm-vertical-menu .bm-vmenu__language {
  padding: 8px 20px 4px;
}

#bm-vertical-menu .bm-vmenu__language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 12px 3px 3px;
  border-radius: 100vmax;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #ddd;
  transition: background 0.15s;
}

#bm-vertical-menu .bm-vmenu__language-toggle:hover {
  background: #f0f0f0;
  opacity: 1;
}

#bm-vertical-menu .bm-vmenu__flag {
  width: 16px;
  height: 16px;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

#bm-vertical-menu .bm-vmenu__language-dropdown {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  margin-top: 0;
}

#bm-vertical-menu .bm-vmenu__language-option {
  border-radius: 4px;
  margin: 2px 4px;
  padding: 6px 8px;
}

#bm-vertical-menu .bm-vmenu__language-option:hover {
  background: #f4f4f5;
}

#bm-vertical-menu .bm-vmenu__language-option img {
  width: 16px;
  height: 16px;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* Custom links section */
#bm-vertical-menu .bm-vmenu__links {
  padding: 0 0 16px;
}

#bm-vertical-menu .bm-vmenu__links-link {
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: #3f3f46;
  transition: background 0.15s, color 0.15s;
}

#bm-vertical-menu .bm-vmenu__links-link:hover {
  background: #f4f4f5;
  color: #09090b;
}

/* Logout */
/* Mobile menu: use the in-header burger, not a floating circle */
.bm-vmenu-toggle {
  display: none !important;
}

.bm-vmenu-header-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #09090b;
  cursor: pointer;
}

.bm-vmenu-header-toggle:hover {
  background: #f4f4f5;
}

@media (max-width: 992px) {
  .bm-vmenu-header-toggle {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Page layout - Homepage with sidebar
   -------------------------------------------------------------------------- */

.page--home {
  padding: 1.5rem 2rem;
}

/* --------------------------------------------------------------------------
   shadcn/ui-style Bootstrap overrides
   -------------------------------------------------------------------------- */

/* --- Form Controls --- */
.form-control,
.form-select {
  border: 1px solid var(--occ-input);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: #09090b;
  background-color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
  border-color: #18181b;
  box-shadow: var(--occ-ring);
  outline: none;
}

.form-control::placeholder {
  color: var(--occ-muted-fg);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #09090b;
  margin-bottom: 0.375rem;
}

.form-check-input {
  border-color: var(--occ-input);
  width: 1rem;
  height: 1rem;
}

.form-check-input:checked {
  background-color: var(--occ-primary);
  border-color: var(--occ-primary);
}

.form-check-input:focus {
  box-shadow: var(--occ-ring);
  border-color: var(--occ-primary);
}

/* --- Buttons --- */
.btn {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:focus-visible {
  box-shadow: var(--occ-ring);
  outline: none;
}

.btn-primary {
  background-color: var(--occ-primary);
  border-color: var(--occ-primary);
  color: var(--occ-primary-fg);
}

.btn-primary:hover {
  background-color: #27272a;
  border-color: #27272a;
  color: var(--occ-primary-fg);
}

.btn-primary:active {
  background-color: #27272a;
  border-color: #27272a;
}

.btn-secondary {
  background-color: var(--occ-muted);
  border-color: var(--occ-muted);
  color: #09090b;
}

.btn-secondary:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  color: #09090b;
}

.btn-outline-primary {
  border-color: var(--occ-primary);
  color: var(--occ-primary);
}

.btn-outline-primary:hover {
  background-color: var(--occ-primary);
  border-color: var(--occ-primary);
  color: var(--occ-primary-fg);
}

.btn-link {
  color: var(--occ-primary);
  text-decoration: none;
  padding: 0;
}

.btn-link:hover {
  color: var(--occ-primary);
  text-decoration: underline;
}

.btn-danger {
  background-color: var(--occ-destructive);
  border-color: var(--occ-destructive);
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* --- Alerts --- */
.alert {
  border-radius: var(--occ-radius);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.alert-info {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* --- Badges --- */
.badge {
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.2em 0.65em;
}

/* --- Modals --- */
.modal-content {
  border-radius: 0.5rem;
  border: 1px solid var(--occ-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom-color: var(--occ-border);
  padding: 1rem 1.25rem;
}

.modal-header .modal-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.modal-footer {
  border-top-color: var(--occ-border);
  padding: 0.75rem 1.25rem;
}

/* --- Accordions --- */
.accordion-button {
  font-weight: 600;
  background-color: transparent;
  color: #09090b;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #09090b;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--occ-border);
}

.accordion-item {
  border-color: var(--occ-border);
}

/* --- Pagination --- */
.page-link {
  border-radius: var(--occ-radius);
  font-size: 0.875rem;
  border-color: var(--occ-border);
  color: #09090b;
  padding: 0.375rem 0.75rem;
}

.page-link:hover {
  background-color: var(--occ-accent);
  border-color: var(--occ-border);
  color: #09090b;
}

.page-link:focus {
  box-shadow: var(--occ-ring);
}

.page-item.active .page-link {
  background-color: var(--occ-primary);
  border-color: var(--occ-primary);
  color: var(--occ-primary-fg);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  border-radius: var(--occ-radius);
}

/* --- Tables --- */
thead th {
  background-color: var(--occ-muted);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--occ-muted-fg);
  border-bottom-color: var(--occ-border);
}

td,
th {
  border-color: var(--occ-border);
}

/* --- Dropdowns (global) --- */
.dropdown-menu {
  border-radius: var(--occ-radius);
  border: 1px solid var(--occ-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 4px;
}

.dropdown-item {
  border-radius: 4px;
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--occ-accent);
}

/* --- Breadcrumbs --- */
.breadcrumb-item a {
  color: var(--occ-muted-fg);
  font-size: 0.875rem;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #09090b;
}

.breadcrumb-item.active {
  font-weight: 500;
  font-size: 0.875rem;
  color: #09090b;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .header-bottom__logo {
    width: auto;
    margin-right: auto;
  }

  .header-bottom__h1 {
    width: 38px;
  }

  .header-bottom__search .bm-search-container {
    margin-left: auto;
    width: fit-content;
  }

  .header-bottom__search .bm-search-trigger-mock {
    width: auto;
    padding: 0.5rem;
    border: none;
    background: none;
  }

  .header-bottom__search .bm-search-mock-placeholder {
    display: none !important;
  }

  .header-bottom__search .bm-search-mock-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #000;
  }

  .header-bottom__container .header-bottom__row .header-bottom__right .header-block__title {
    display: none !important;
    font-size: 0;
  }

  .header-bottom__container .header-bottom__row .header-bottom__right .bm-cart-label {
    display: none !important;
    font-size: 0;
  }
}

.bm-vmenu-header-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0 10px 0 0;
  cursor: pointer;
  align-items: center;
  color: #212529;
  display: none;
}

.occ-messe-btn {
  border-radius: 100vmax;
}

@media (max-width: 992px) {
  .bm-vmenu-header-toggle {
    display: flex;
  }

  .occ-welcome__title {
    font-size: 1.35rem;
  }

  .occ-messe-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .occ-messe-card__image {
    width: 100%;
    height: 160px;
  }

  .occ-messe-card__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .occ-messe-card__btn {
    min-width: 140px;
  }

  .page--home {
    padding: 1rem;
  }
}

/* Hide bm_verticalmenu in checkout */
body.page-order.bm-vmenu-active {
  padding: 0 !important;
}

body.page-order #bm-vertical-menu {
  display: none !important;
}

/* Fix bm_verticalmenu overflow:hidden breaking sticky */
body.bm-vmenu-active main#wrapper {
  overflow: visible;
  width: calc(100vw - var(--bm-vmenu-width) - 2rem);
}

.page-product .product__container {
  margin-bottom: 2rem;
}

/* Product right sticky wrapper */
.product__right {
  outline: unset !important;
}

.product__right-sticky {
  position: sticky;
  top: 1rem;
}

.product-miniature {
  border: unset;
  overflow: hidden;

  .product-miniature__image-container {
    background: #eee;
    padding: 3rem;
    border-radius: 8px;

    img {
      mix-blend-mode: multiply;
    }
  }

  .product-miniature__infos {
    gap: 0.25rem;
    display: flex;
    flex-flow: column-reverse;
  }

  .product-miniature__price {
    font-weight: 700;
  }

  .product__reference {
    color: #999;
  }
}

.products__sort-dropdown-button {
  width: fit-content;
}

.page-product .product__carousel img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.subcategory__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1em;
}

.breadcrumb {
  padding-inline: 2rem;
}

@media(max-width: 1280px) {
  .breadcrumb {
    padding-inline: 0;
  }
}

@media(max-width: 992px) {
  .product__left {
    display: grid;

    .product__images {
      order: -2;
    }

    .product__right {
      order: -1;
    }

    .ps-categoryproducts {}
  }
}

.breadcrumb__wrapper {
  background-color: unset;
  margin-bottom: 0;
}

/* Subcategory links */
.subcategory__link {
  padding: .875rem 1.5rem;
  font-weight: 500;
  border: unset;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  gap: 0.5em;

  &:hover,
  &:focus-within {
    background: #92b57c;
    color: #000;
  }

  span {
    display: flex;
    align-items: center;
    min-height: 40px;
  }
}

#content.page-content--not-found {
  display: none;
}

body:has(.bm-checkout) {
  padding: 0 !important;
  display: block !important;
}

body:has(.bm-checkout) #bm-vertical-menu {
  display: none !important;
}

.product__add-to-cart-button {
  background: #92b57c;
  border: 1px solid #92b57c;

  &:hover,
  &:focus-within {
    background: hsl(97, 28%, 50%);
    border-color: hsl(97, 28%, 50%);
  }
}

.products__selection {
  display: block;
}

#product {

  .alert.alert-info.alert-dismissible {
    display: none !important;
  }

  .product__description-short {
    color: #444;

    p {
      margin-bottom: 0;
    }
  }

  .product-reference {
    color: #717171;
    font-size: 16px;
  }

  h1.product__name {
    color: #000;
    font-size: 30px;
  }

  .product__customization {
    padding: 0;
    border: unset;

    .product-customization__title {
      margin-bottom: 0;
    }

    [name="submitCustomizedData"] {
      padding: 0.25em 0.5em;
    }
  }

  .product-variant__label {
    display: flex;

    .selected-value {
      font-size: 0.875rem;
      margin-bottom: 0.375rem;
    }
  }

  .paysec {
    padding: 1.875rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;

    .product__actions-qty-add {
      gap: 0.5rem;
      align-items: stretch;
      flex-wrap: nowrap;
    }

    .quantity-button__group {
      border: 1px solid #e8e8e8;
      border-radius: 4px;
      padding-inline: 0.25rem;

      .btn {
        padding: 0;
        border: unset;

        .material-icons {
          font-size: 11px;
        }
      }

      input {
        max-width: 2rem;
        border: unset;
      }
    }

    .product__actions,
    .product__add-to-cart-container {
      margin-block-end: 0;
    }

    .product__prices-block {
      gap: 0.125em;
      position: relative;

      .prisinfo {
        border: unset;
        position: absolute;
        right: 0;
        border-radius: 2px !important;
        background: #F2F2F2;
        font-size: 12px;
        padding: 0.5rem 1rem;
        cursor: pointer;
      }

      #prisinfo {

        background: #fff;
        border: unset;
        border-radius: 8px;
        padding: 1rem;
        position: relative;
        overflow: visible;
        translate: var(--bm-vmenu-width);

        p {
          margin-bottom: 0;
        }


        &::backdrop {
          background: #0001;
        }

        .close {
          border: unset;
          background: #fff;
          border-radius: 100%;
          position: absolute;
          top: -1.5rem;
          right: -1.5rem;
          padding: 0;
          line-height: 0;
          padding: 0.25rem;

          svg {
            width: 1rem;
            height: 1rem;

          }
        }
      }
    }

    .product__add-to-cart-button {
      padding: 0.5rem 1rem;
      justify-content: space-between;
      font-size: 20px;
      color: #fff;
      background-color: #000;
      border-color: #000;

      @media(max-width: 992px) {
        font-size: 0px;
      }
    }
  }

  .accordions {

    details {
      border-bottom: 1px solid #E6E6E6;

      &:first-of-type {
        border-top: 1px solid #E6E6E6;
      }

      summary {
        display: flex;
        justify-content: space-between;
        padding-block: 0.875rem;

        &::after {
          content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCAxMSA2IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMC41IDAuNUw1LjUgNS41TDEwLjUgMC41IiBzdHJva2U9IiM4Nzg3ODciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4=");
          translate: 0 -2px;
        }

        &::marker {
          content: '';
        }
      }
    }
  }

  .product__prices {
    margin-block-end: 1rem;
  }


  .carousel-item {
    background: #eee;

    img {
      mix-blend-mode: multiply;
    }
  }

  .product__zoom {
    position: absolute;
    inset: 20%;
    background: 0;
    border: 0;
    box-shadow: unset;
  }
}

.brugforhjaelp {
  border-radius: 5px;
  background: #F4F4F4;
  padding: 1.25rem;
  margin-bottom: 1rem;

  p {
    font-size: 14px;
    color: #4E4E4E;
    margin-bottom: 0;
  }
}

#module-bm_customerdashboard-dashboard {
  #center-column {
    padding: 1.5rem 2rem;
  }
}

#module-bm_checkout-checkout {
  main#wrapper {
    width: 100% !important;
  }

  #delivery-address,
  .bm-checkout__same-address-toggle {
    display: none;
  }

  .columns-container.container {
    width: min(1280px, 100%);
  }

  .bm-checkout {
    font-family: Inter -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.05em;
  }

  main#wrapper {
    background: #f9f9f9;
  }

  .bm-checkout__logo img {
    min-width: 64px;
  }

  .bm-checkout__header {
    border-bottom: 0;
  }

  .bm-checkout__hook--address-bottom {
    margin-top: 0 !important;
  }

  #bm-custom-fields-form {

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1rem;
      margin-inline: -1rem;
    }

    .col-md-12 {
      padding: 0;
      grid-column: span 2;
    }

    .col-md-6 {
      padding: 0;
      max-width: unset;
      flex: unset;
      width: 100%;

      .form-group {
        display: grid;
        align-items: center;
        outline: unset !important;
        border: unset;

        &>* {
          grid-area: 1 / 1;
        }

        label {
          pointer-events: none;
          font-size: 15px;
          font-weight: 400;
          color: var(--bm-text-muted);
          pointer-events: none;
          transition: all 0.2s ease;
          background: var(--bm-bg-white);
          line-height: 0.25;
          padding: 0.5rem;
        }

        input {
          background-color: transparent;
          outline: none !important;
          border: 1px solid var(--bm-border-color);
          padding: .5em;
          border-radius: 4px;
          color: currentColor;
          box-shadow: unset !important;

          &::placeholder {
            opacity: 0;
          }
        }

        &:has(input:not(:placeholder-shown)),
        &:focus-within {
          label {
            translate: 01em -1.5em !important;
            background: #fff;
            font-size: 80%;
            padding: 0 0.125em;
            width: fit-content;
            font-weight: 500;
          }
        }

        input {
          outline: unset !important;
        }

        .bm-field-error {
          display: none;
        }
      }
    }

    input {
      width: 100%;
    }
  }
}

body.bm-vmenu-active #header {
  overflow: hidden;
  position: sticky !important;
  /* Above page content (e.g. the messe card logo badge is z-index:2, which used
     to paint over the sticky header when scrolled), but below the off-canvas
     vertical menu (z-index:1002) and the cart/modal overlays. */
  z-index: 100;
  width: calc(100vw - var(--bm-vmenu-width) - 2rem);
}

@media (min-width: 1500px) {

  .checkout-steps__mobile,
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xs,
  .container-xxl {
    max-width: 1420px;
  }
}

@media (min-width: 1600px) {

  .checkout-steps__mobile,
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xs,
  .container-xxl {
    max-width: 1520px;
  }
}

body.bm-vmenu-active main#wrapper {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.container.container--limited-sm {
  max-width: 992px !important;
}

#product_accordion {
  margin-block-end: 3rem;
}

.product-miniature {
  .product-miniature__title {
    color: #000;
  }

  .product-miniature__quickview-button {
    background: #000;
    color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .quantity-button {
    display: none;
  }

  .product-miniature__actions {
    width: 100%;
  }

  .product-miniature__add,
  .product-miniature__add-text {
    display: initial;
    width: 100%;
    border-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

.modal.fade.quickview {
  translate: 100%;
  transition: translate 400ms ease-in-out;

  &.show {
    translate: 0 0;
  }

  .quickview__dialog {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    height: 100%;

    .quickview__content {
      height: 100%;
      border-radius: 0;
      border-top-left-radius: 8px;
      border-bottom-left-radius: 8px;
      max-width: 580px;

      .quickview__header {
        position: absolute;
        right: 0.5rem;
        z-index: 1;
      }

      .page-product--quickview {
        grid-template-columns: 1fr;
        padding: 1rem 2rem;

        .product__carousel img {
          aspect-ratio: unset;
        }

        .product__right {
          align-self: end;
          position: sticky;
          bottom: 0;
          background: #fff;
          padding-top: 1rem;
        }
      }

      .prisinfo {
        display: none;
      }

      .product__manufacturer {
        display: none;
      }

      .product__actions-qty-add {
        flex-wrap: nowrap;
      }

      .product__prices-block {
        flex-direction: row;
        align-items: center;
      }

      .product__add-to-cart-button {
        color: #fff;
        background: #000;
        border-color: #000;
        font-size: 20px;
        display: flex;
        justify-content: space-around;
        padding: 0.5rem 1rem;

        @media(max-width: 1280px) {
          font-size: 0;
        }
      }
    }

    .quickview__footer {
      display: none;
    }
  }
}

#bm-vertical-menu,
body.bm-vmenu-active {
  background: #f0f0f0;
}

#bm-vertical-menu .bm-vmenu__welcome {
  margin-inline: 10px;
}

.header-block__action-btn {
  padding: 0;
}

.header-block__action-btn .header-block__icon {
  order: -1;
  width: 18px;
  height: 18px;
}

#authentication,
#password {
  padding: 1rem !important;
  place-items: center;
  grid-template-rows: 1fr;

  &>*:not(#wrapper),
  .breadcrumb__wrapper,
  [data-ps-action="toggle-password"] {
    display: none;
  }

  #wrapper {
    padding: 0rem;
    border-radius: 8px;
    display: flex;
    width: min(860px, 100%);
    aspect-ratio: 16 / 9;
    position: relative;
  }

  .container.container--limited-sm {
    order: -1;
    padding: 2rem;
    display: grid;
    align-items: center;

    #center-column {
      padding-bottom: 0;

    }
  }

  #main-content {
    flex: 0 0 50%;
    background: #f2f2f2;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: url('/img/messeocc_img.png');
    background-size: cover;
  }

  #notifications {
    position: absolute;
    bottom: -4rem;
    width: 100%;
    text-align: center;
    color: #999;
  }

  .top-heading.d-flex {
    position: absolute;
    top: -4rem;
    left: 0;
    width: 100%;
    justify-content: space-between;

    .logo {
      gap: 0.5em;
      align-items: center;
      font-weight: 700;

      img {
        height: 28px;
      }
    }

    .language {
      position: absolute;
      top: 0;
      right: 0;

      .bm-vmenu__language {
        padding: 0;
      }

      .bm-vmenu__language-toggle {
        background: #fff;
        border-radius: 100vmax;
        padding: 4px 8px;
        border: 1px solid #ddd;
      }

      .bm-vmenu__language-dropdown {
        position: absolute;
        width: max-content;
      }
    }
  }

  .auth-header {
    text-align: center;

    h1 {
      display: inline;
      margin-bottom: 0;
      font-size: 1rem;
      line-height: normal;
      font-weight: 400;
    }

    h2 {
      margin-bottom: 0.5em;
    }
  }

  .iforgot,
  #back-to-login {
    color: #999;
    padding-left: 0;

    &:visited {
      color: #999;
    }
  }

  .form-control {
    border-radius: 8px;
  }

  #submit-login,
  #send-reset-link {
    width: 100%;
    border-radius: 8px;
  }

  @media(max-width: 992px) {
    #wrapper {
      aspect-ratio: unset;
    }

    #main-content {
      display: none;
    }
  }
}

.header-block__title {
  font-weight: 600;
  font-size: 16px;
}

#password #main-content {
  background: url('https://occ.dk/wp-content/uploads/2024/02/DSC0153-WEB.jpg.webp');
  background-size: cover;
}

#password .top-heading.d-flex {
  top: -3rem;
}

.bm-gs-wrapper {
  width: 100%;
  box-shadow: 0 1px 3px 0px #7771;
}

.bm-gs-trigger {
  margin: 0;
  border: unset;
  gap: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  width: 100%;
  border-radius: 8px;

  &:hover,
  &:focus-within {
    background: unset;
    border-color: #ddd;
  }
}

.bm-gs-trigger-text {
  font-size: 14px;
  font-weight: 400;
  color: #3f3f46;
  max-width: 100%;
}

.bm-gs-chevron {
  margin-left: auto;
  rotate: -90deg;
}

.bm-gs-group-item--active {
  border-color: #333;
  background: #0001;
}

.bm-gs-group-item:hover {
  border-color: #ddd;
  background-color: #00000005;
}

.bm-gs-badge {
  background-color: #000;
  color: #fff;
}

#bm-vertical-menu .bm-vmenu__account .bm-vmenu__welcome-label {
  margin-left: 20px;
}

#category {
  .category__header {

    .category__image,
    .page-title-section {
      width: fit-content;
      margin-inline: auto;
      text-align: center;
    }

    .category__image {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 0.5rem 4rem;
      margin-bottom: 2rem;
    }

    .page-title-section {
      margin-bottom: 2rem;
    }
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 0.5rem 0.5rem;
  }

  .product__actions-qty-add {
    justify-content: start;
    width: fit-content;
  }

  .product-miniature__quickview-touch {
    display: inline-flex;
    border-radius: 100%;
    aspect-ratio: 1 / 1;
    padding: 0.5rem !important;
  }
}

/* Auth pages hide the vertical menu, so reclaim the sidebar gutter it reserves
   (bm_verticalmenu's `body:has(#bm-vertical-menu)` padding-left) and keep the
   login / reset card centered. Specificity (1,1,1) beats the module's (1,0,1). */
body#authentication.bm-vmenu-active,
body#password.bm-vmenu-active {
  padding-left: 1rem !important;
}

/* Dashboard — "DIN STAND" heading above the stand fields */
.bm-group-stand-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717a;
  margin: 0.85rem 0 0.3rem;
}

/* --------------------------------------------------------------------------
   OCC site footer — messeteam, address, "En del af OS&E Hospitality"
   -------------------------------------------------------------------------- */
.occ-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.occ-footer__top {
  /* Mirror the site .container (max-width + 12px gutter + auto-center) so the
     footer content lands on the same grid as the page content. */
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.occ-footer__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717a;
}

.occ-footer__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #18181b;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.2;
}

.occ-footer__lead {
  font-size: 0.875rem;
  color: #52525b;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

.occ-footer__team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

.occ-footer__member {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.occ-footer__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: #eee;
}

.occ-footer__member-info {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.45;
}

.occ-footer__member-name {
  font-weight: 600;
  color: #18181b;
}

.occ-footer__member-title {
  color: #71717a;
  margin-bottom: 0.15rem;
}

.occ-footer__member-link {
  display: block;
  color: #3f3f46;
  text-decoration: none;
}

.occ-footer__member-link:hover {
  color: #18181b;
  text-decoration: underline;
}

.occ-footer__visit-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #18181b;
  margin: 0 0 0.5rem;
}

.occ-footer__address {
  font-style: normal;
  font-size: 0.8rem;
  color: #52525b;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.occ-footer__bottom {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding: 1.5rem 12px 0;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.occ-footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.occ-footer__occ {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.occ-footer__occ-logo {
  height: 22px;
  width: auto;
}

.occ-footer__occ-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #18181b;
  letter-spacing: 0.01em;
}

.occ-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.4;
}

.occ-footer__brand-mark {
  height: 16px;
  width: auto;
  fill: #18181b;
}

.occ-footer__brand-text {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: #52525b;
  font-weight: 500;
}

.occ-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.occ-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #52525b;
  transition: background 0.15s ease, color 0.15s ease;
}

.occ-footer__social-link:hover {
  background: #18181b;
  color: #fff;
}

@media (max-width: 992px) {
  .occ-footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .occ-footer {
    padding: 2rem 1rem 1rem;
  }

  .occ-footer__team {
    grid-template-columns: 1fr;
  }
}

/* Search overlay backdrop — bm_search ships with its overlay background
   commented out, so the page (homebanners, deadline banner) bled through the
   open search. Dim + blur the page behind; the popover (z-index 1055) stays
   above this 1050 overlay. */
.bm-search-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* ── Mobile horizontal-scroll guard ──────────────────────────────────────────
   The bm_cart off-canvas drawer (.bm-cart-panel, fixed + translateX(100%)) gets
   captured by a transformed ancestor (vertical menu / dashboard) on some pages,
   so its off-screen position adds page width and creates a horizontal-scroll
   glitch on phones/tablets. `overflow-x: clip` clips that bleed WITHOUT creating
   a scroll container, so position:sticky (header, vmenu) keeps working — unlike
   `overflow-x: hidden`, which would break sticky. */
html,
body {
  overflow-x: clip;
}

/* ── Tablet/phone layout fixes — sidebar collapses off-canvas at ≤992px ──────
   1) #wrapper/#header use width:calc(100vw - vmenu - 2rem), which assumes the
      sidebar is always present. With the menu collapsed (769–992px) that left a
      ~260px dead band on the right and crushed the content. Use full width.
   2) The in-header hamburger (.bm-vmenu-header-toggle) was being re-hidden by a
      later rule, so there was no way to open the menu. Force it visible. */
@media (max-width: 992px) {
  body.bm-vmenu-active main#wrapper,
  body.bm-vmenu-active #header,
  body:has(#bm-vertical-menu) main#wrapper,
  body:has(#bm-vertical-menu) #header {
    width: auto !important;
    max-width: 100% !important;
  }

  /* The button ships with a static Bootstrap `d-none` (display:none !important);
     two-class selector outranks `.d-none` so the hamburger actually shows. */
  .bm-vmenu-header-toggle,
  .bm-vmenu-header-toggle.d-none {
    display: inline-flex !important;
  }
}

/* Keep the footer team in two columns on phones (was 1 column ≤600px, which
   made the footer very tall). */
@media (max-width: 600px) {
  .occ-footer__team {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Footer aligned to the site content grid ────────────────────────────────
   The page content sits inside #wrapper > #center-column > .page-content.container.
   To land the footer on the SAME grid we mirror each layer:
     #footer width      = #wrapper width      (calc(100vw - vmenu - 2rem))
     .occ-footer padding= #center-column padding (2rem, but 0 at ≤1280px)
     .occ-footer__* box = .container          (max-width + 12px gutter + auto-center,
                                               handled on the elements themselves)
   Only while the sidebar is present (≥993px); below that everything is full-width. */
@media (min-width: 993px) {
  body.bm-vmenu-active footer#footer,
  body:has(#bm-vertical-menu) footer#footer {
    width: calc(100vw - var(--bm-vmenu-width) - 2rem);
  }
}

/* #center-column drops its 2rem padding at ≤1280px — the footer must too,
   or its content would sit 2rem further in than the page content. */
@media (min-width: 993px) and (max-width: 1280px) {
  .occ-footer {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Match the theme's responsive .container max-widths so the footer content
   stays centred on the same grid on wide screens. */
@media (min-width: 1500px) {
  .occ-footer__top,
  .occ-footer__bottom {
    max-width: 1420px;
  }
}

@media (min-width: 1600px) {
  .occ-footer__top,
  .occ-footer__bottom {
    max-width: 1520px;
  }
}

/* ── Center the footer content on mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .occ-footer__help,
  .occ-footer__visit {
    text-align: center;
  }

  .occ-footer__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .occ-footer__team {
    justify-items: center;
  }

  .occ-footer__member {
    text-align: left;
  }

  .occ-footer__bottom,
  .occ-footer__bottom-left {
    justify-content: center;
  }
}

/* When the sidebar is off-canvas (≤992px) the page is full-width, but
   Bootstrap's .container caps at 720px (md) and centres — leaving big empty
   margins on tablets (the "980px looks off" report). Let it use the available
   width in that band so content lines up with the full-width header/footer. */
@media (min-width: 768px) and (max-width: 991px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 100%;
  }
}

/* ── Mobile: bigger, centered welcome hero with more breathing room ─────────
   The ≤992 rule shrank the title to 1.35rem; on phones it should be larger and
   centered, with a little more space below the header. */
@media (max-width: 768px) {
  .occ-welcome {
    text-align: center;
    padding-top: 1.75rem;
    margin-bottom: 2.25rem;
  }

  .occ-welcome__title {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .occ-welcome__contact {
    font-size: 1.05rem;
  }
}
/* (The messe-card action-button layout is owned by bm_homecategories.css —
   that module's higher-specificity rules win, so the side-by-side button fix
   lives there.) */