.l4s-mps-showcase {
  --l4s-mps-bg: #ffffff;
  --l4s-mps-text: #111827;
  --l4s-mps-muted: #64748b;
  --l4s-mps-border: #e5e7eb;
  --l4s-mps-button-bg: #111827;
  --l4s-mps-button-text: #ffffff;
  --l4s-mps-arrow-bg: #ffffff;
  --l4s-mps-arrow-text: #111827;
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  color: var(--l4s-mps-text);
}

.l4s-mps-viewport {
  overflow: hidden;
  width: 100%;
}

.l4s-mps-track {
  display: flex;
  width: 100%;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.l4s-mps-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
}

.l4s-mps-card {
  width: 100%;
  background: var(--l4s-mps-bg);
  border: 1px solid var(--l4s-mps-border);
  border-radius: 0;
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.l4s-mps-image-wrap {
  height: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
  border-radius: 0;
}

.l4s-mps-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.l4s-mps-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(225deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(315deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(45deg, rgba(15, 23, 42, 0.06) 25%, #f8fafc 25%) 0 0 / 20px 20px;
}

.l4s-mps-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
}

.l4s-mps-manufacturer {
  margin: 0;
  color: var(--l4s-mps-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.l4s-mps-title {
  margin: 0;
  color: var(--l4s-mps-text);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
  font-weight: 750;
}

.l4s-mps-quote-trigger,
.l4s-mps-submit {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--l4s-mps-button-bg);
  color: var(--l4s-mps-button-text);
  min-height: 46px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.l4s-mps-quote-trigger:hover,
.l4s-mps-quote-trigger:focus,
.l4s-mps-submit:hover,
.l4s-mps-submit:focus {
  transform: translateY(-1px);
}

.l4s-mps-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.l4s-mps-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--l4s-mps-border);
  border-radius: 0;
  background: var(--l4s-mps-arrow-bg);
  color: var(--l4s-mps-arrow-text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform 180ms ease, opacity 180ms ease;
}

.l4s-mps-arrow:hover,
.l4s-mps-arrow:focus {
  transform: translateY(-50%) scale(1.04);
}

.l4s-mps-prev {
  left: -22px;
}

.l4s-mps-next {
  right: -22px;
}

.l4s-mps-empty {
  border: 1px dashed #cbd5e1;
  padding: 18px;
  text-align: center;
  color: #64748b;
}

.l4s-mps-modal-open {
  overflow: hidden;
}

.l4s-mps-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.l4s-mps-modal.is-open {
  display: flex;
}

.l4s-mps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
}

.l4s-mps-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 0;
  padding: 30px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.l4s-mps-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.l4s-mps-modal h3 {
  margin: 0 44px 12px 0;
  font-size: 26px;
  line-height: 1.2;
}

.l4s-mps-modal-product,
.l4s-mps-modal-manufacturer {
  margin: 6px 0;
  color: #334155;
}

.l4s-mps-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.l4s-mps-quote-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.l4s-mps-message-field,
.l4s-mps-privacy-note,
.l4s-mps-form-message,
.l4s-mps-submit {
  grid-column: 1 / -1;
}

.l4s-mps-quote-form input,
.l4s-mps-quote-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.4;
}

.l4s-mps-quote-form textarea {
  resize: vertical;
}

.l4s-mps-field-hidden {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.l4s-mps-privacy-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.l4s-mps-form-message {
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
}

.l4s-mps-form-message.is-success {
  color: #047857;
}

.l4s-mps-form-message.is-error {
  color: #b91c1c;
}

@media (max-width: 767px) {
  .l4s-mps-card {
    padding: 18px;
  }

  .l4s-mps-image-wrap {
    height: 220px;
  }

  .l4s-mps-prev {
    left: 8px;
  }

  .l4s-mps-next {
    right: 8px;
  }

  .l4s-mps-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .l4s-mps-quote-form {
    grid-template-columns: 1fr;
  }

  .l4s-mps-modal-panel {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l4s-mps-track,
  .l4s-mps-quote-trigger,
  .l4s-mps-submit,
  .l4s-mps-arrow {
    transition: none !important;
  }
}

.l4s-mps-logo-gallery {
  --l4s-mps-logo-columns: 4;
  --l4s-mps-logo-gap: 20px;
  --l4s-mps-logo-bg: #ffffff;
  --l4s-mps-logo-border: #e5e7eb;
  --l4s-mps-logo-text: #111827;
  width: 100%;
}

.l4s-mps-logo-gallery.is-layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--l4s-mps-logo-columns), minmax(0, 1fr));
  gap: var(--l4s-mps-logo-gap);
}

.l4s-mps-logo-gallery.is-layout-masonry {
  display: block;
  columns: var(--l4s-mps-logo-columns);
  column-gap: var(--l4s-mps-logo-gap);
}

.l4s-mps-logo-gallery.is-layout-masonry .l4s-mps-logo-item {
  break-inside: avoid;
  margin-bottom: var(--l4s-mps-logo-gap);
}

.l4s-mps-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 24px;
  background: var(--l4s-mps-logo-bg);
  border: 1px solid var(--l4s-mps-logo-border);
  border-radius: 0;
  text-decoration: none;
  color: var(--l4s-mps-logo-text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

a.l4s-mps-logo-item:hover,
a.l4s-mps-logo-item:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.l4s-mps-logo-media {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l4s-mps-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.l4s-mps-logo-placeholder {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.l4s-mps-logo-name {
  display: block;
  margin-top: 12px;
  color: var(--l4s-mps-logo-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 767px) {
  .l4s-mps-logo-gallery {
    --l4s-mps-logo-columns: 2;
    --l4s-mps-logo-gap: 14px;
  }

  .l4s-mps-logo-item {
    padding: 18px;
  }
}

.l4s-mps-manufacturer-page,
.l4s-mps-manufacturer-start-page,
.l4s-mps-manufacturer-directory {
  width: 100%;
}

.l4s-mps-mfg-hero {
  position: relative;
  min-height: clamp(420px, 56vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 10vw, 140px) 24px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.l4s-mps-mfg-template-header {
  width: 100%;
}

.l4s-mps-mfg-hero-bg-stack,
.l4s-mps-mfg-hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.l4s-mps-mfg-hero-bg-stack {
  z-index: 0;
}

.l4s-mps-mfg-hero-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
}

.l4s-mps-mfg-hero-bg.is-active {
  opacity: 1;
}

.l4s-mps-mfg-hero.has-no-background {
  background: linear-gradient(135deg, #111827, #334155);
}

.l4s-mps-mfg-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000000;
  pointer-events: none;
}

.l4s-mps-mfg-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(120px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.l4s-mps-mfg-logo-wrap {
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.l4s-mps-mfg-logo {
  display: block;
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.l4s-mps-mfg-copy {
  max-width: 760px;
}

.l4s-mps-mfg-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.l4s-mps-mfg-short-description {
  margin: 24px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
  font-weight: 500;
}

.l4s-mps-mfg-url {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.l4s-mps-mfg-url:hover,
.l4s-mps-mfg-url:focus {
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.l4s-mps-mfg-hero.is-layout-reference {
  min-height: clamp(480px, 48vw, 720px);
  padding: clamp(92px, 12vw, 160px) 24px clamp(76px, 9vw, 130px);
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-hero-inner {
  width: min(1120px, 100%);
  display: block;
}

.l4s-mps-mfg-reference-card {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.l4s-mps-mfg-reference-title-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
}

.l4s-mps-mfg-reference-title-bar {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 16px 28px;
  background: #e5484d;
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-title {
  color: #ffffff;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-logo-wrap {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  min-height: 128px;
  padding: 16px;
  background: #ffffff;
  border: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-logo {
  max-height: 100%;
}

.l4s-mps-mfg-description-panel {
  margin-top: 18px;
  padding: 24px 28px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-short-description {
  margin: 0;
  max-width: none;
  color: #666666;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
  font-weight: 600;
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-url {
  display: inline-flex;
  min-height: 0;
  margin-top: 28px;
  padding: 7px 10px;
  background: #ffffff;
  border: 0;
  color: #e5484d;
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
}

.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-url:hover,
.l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-url:focus {
  color: #111827;
}

.l4s-mps-mfg-hero.is-layout-reference.is-align-center .l4s-mps-mfg-reference-card {
  margin-left: auto;
  margin-right: auto;
}

.l4s-mps-mfg-hero.is-layout-reference.is-align-right .l4s-mps-mfg-hero-inner,
.l4s-mps-mfg-hero.is-layout-reference.is-align-right .l4s-mps-mfg-reference-card {
  direction: ltr;
  text-align: right;
}

.l4s-mps-mfg-hero.is-layout-reference.is-align-right .l4s-mps-mfg-reference-title-row {
  flex-direction: row-reverse;
}

.l4s-mps-mfg-hero.is-layout-reference.is-align-right .l4s-mps-mfg-url {
  float: right;
}

.l4s-mps-mfg-description-section {
  background: #ffffff;
  color: #111827;
  padding: clamp(52px, 7vw, 100px) 24px;
}

.l4s-mps-mfg-description-inner,
.l4s-mps-manufacturer-directory-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.l4s-mps-manufacturer-directory {
  background: #ffffff;
}

.l4s-mps-manufacturer-directory h1 {
  margin: 0 0 32px;
  color: #111827;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.l4s-mps-not-found {
  padding: 80px 24px;
}
.l4s-mps-mfg-hero.is-align-center .l4s-mps-mfg-hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.l4s-mps-mfg-hero.is-align-center .l4s-mps-mfg-copy {
  margin-left: auto;
  margin-right: auto;
}

.l4s-mps-mfg-hero.is-align-right .l4s-mps-mfg-hero-inner {
  direction: rtl;
  text-align: right;
}

.l4s-mps-mfg-hero.is-align-right .l4s-mps-mfg-copy,
.l4s-mps-mfg-hero.is-align-right .l4s-mps-mfg-logo-wrap {
  direction: ltr;
}


@media (max-width: 767px) {
  .l4s-mps-mfg-hero.is-layout-reference {
    padding: 80px 18px 70px;
  }

  .l4s-mps-mfg-reference-title-row {
    align-items: stretch;
    gap: 12px;
  }

  .l4s-mps-mfg-reference-title-bar {
    min-height: 64px;
    padding: 14px 18px;
  }

  .l4s-mps-mfg-hero.is-layout-reference .l4s-mps-mfg-logo-wrap {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    min-height: 92px;
    padding: 10px;
  }

  .l4s-mps-mfg-description-panel {
    margin-top: 14px;
    padding: 18px;
  }

  .l4s-mps-mfg-hero-inner {
    grid-template-columns: 1fr;
  }

  .l4s-mps-mfg-logo-wrap {
    max-width: 240px;
    min-height: 120px;
    padding: 18px;
  }

  .l4s-mps-mfg-hero {
    justify-content: flex-start;
  }
}

/* Manufacturer category directory */
.l4s-mps-manufacturer-category-directory {
  --l4s-mps-category-columns: 4;
  width: 100%;
}

.l4s-mps-manufacturer-category-group + .l4s-mps-manufacturer-category-group {
  margin-top: 48px;
}

.l4s-mps-manufacturer-category-header {
  margin-bottom: 20px;
}

.l4s-mps-manufacturer-category-title {
  margin: 0 0 10px;
  line-height: 1.2;
}

.l4s-mps-manufacturer-category-description {
  max-width: 900px;
}

.l4s-mps-manufacturer-category-description p:last-child {
  margin-bottom: 0;
}

.l4s-mps-manufacturer-category-grid {
  display: grid;
  grid-template-columns: repeat(var(--l4s-mps-category-columns), minmax(0, 1fr));
  gap: 22px;
}

.l4s-mps-manufacturer-category-card {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.l4s-mps-manufacturer-category-card:hover,
.l4s-mps-manufacturer-category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.16);
  text-decoration: none;
}

.l4s-mps-manufacturer-category-logo-wrap {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: center;
}

.l4s-mps-manufacturer-category-logo {
  display: block;
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.l4s-mps-manufacturer-category-name {
  display: block;
  color: inherit;
  font-weight: 600;
}

.l4s-mps-category-empty {
  margin: 0;
}

@media (max-width: 767px) {
  .l4s-mps-manufacturer-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 16px;
  }

  .l4s-mps-manufacturer-category-card {
    min-height: 110px;
    padding: 16px;
  }
}


/* After-content templates should behave like native Elementor output, not like plugin layout containers. */
.l4s-mps-mfg-after-content-template,
.l4s-mps-mfg-base-after-content-template {
  display: contents;
}

/* v1.5.11: keep individual manufacturer after-content Elementor templates outside plugin layout constraints. */
.l4s-mps-manufacturer-page-content {
  width: 100%;
}

/* v1.5.12: Local Elementor template bridge for embedded manufacturer templates.
   The bridge carries Elementor page/kit classes for CSS matching but must not create spacing,
   constrain width, or alter the existing Elementor layout. */
.l4s-mps-elementor-template-bridge,
.l4s-mps-mfg-after-content-template,
.l4s-mps-mfg-base-after-content-template {
  display: contents;
}

.l4s-mps-elementor-template-bridge > .elementor {
  width: 100%;
  max-width: 100%;
}
