/* MoPowerLab sitewide breadcrumb component — RC1. */
body.mopowerlab-theme .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 9px 12px;
  border: 1px solid var(--mpl-line, #263544);
  border-radius: 6px;
  background: rgba(8, 14, 21, 0.76);
  color: var(--mpl-soft, #8997a6);
  font-size: 14px;
  line-height: 1.4;
  list-style: none;
}

body.mopowerlab-theme .breadcrumb > li {
  float: none;
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 14px 0 0;
  white-space: normal;
}

body.mopowerlab-theme .breadcrumb > li + li::before {
  content: none;
  padding: 0;
}

/* Neutralize OpenCart's oversized rotated-square separator. */
body.mopowerlab-theme .breadcrumb > li::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* Fixed-size, lightweight chevron; never rendered after the current page. */
body.mopowerlab-theme .breadcrumb > li:not(:last-child)::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 50%;
  right: -1px;
  width: 6px;
  height: 6px;
  border: 0 !important;
  border-top: 1.5px solid #60758a !important;
  border-right: 1.5px solid #60758a !important;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
  pointer-events: none;
}

body.mopowerlab-theme .breadcrumb > li:last-child {
  flex: 1 1 12rem;
  min-width: 0;
  padding-right: 0;
}

body.mopowerlab-theme .breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  color: var(--mpl-blue-hover, #4ba3ff);
  line-height: inherit;
  overflow-wrap: anywhere;
  word-break: normal;
  text-decoration: none;
}

body.mopowerlab-theme .breadcrumb a:hover,
body.mopowerlab-theme .breadcrumb a:focus {
  color: #fff;
  text-decoration: underline;
}

body.mopowerlab-theme .breadcrumb > li:last-child > a,
body.mopowerlab-theme .breadcrumb [aria-current="page"] {
  color: #d6dee7;
  font-weight: 650;
}

body.mopowerlab-theme .breadcrumb > li:first-child:not(:last-child) {
  flex: 0 0 auto;
}

body.mopowerlab-theme .breadcrumb > li:first-child:not(:last-child) > a {
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow-wrap: normal;
}

html[dir="rtl"] body.mopowerlab-theme .breadcrumb > li {
  padding-right: 0;
  padding-left: 14px;
}

html[dir="rtl"] body.mopowerlab-theme .breadcrumb > li:last-child {
  padding-left: 0;
}

html[dir="rtl"] body.mopowerlab-theme .breadcrumb > li:not(:last-child)::after {
  right: auto;
  left: -1px;
  border-right: 0 !important;
  border-left: 1.5px solid #60758a !important;
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 800px) {
  body.mopowerlab-theme .breadcrumb {
    gap: 4px 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  body.mopowerlab-theme .breadcrumb > li {
    padding-right: 12px;
  }

  body.mopowerlab-theme .breadcrumb > li:last-child,
  body.mopowerlab-theme.mpl-v3 .mpl-product-page .breadcrumb > li:last-child {
    flex: 1 1 10rem;
    padding-right: 0;
  }

  html[dir="rtl"] body.mopowerlab-theme .breadcrumb > li {
    padding-right: 0;
    padding-left: 12px;
  }

  html[dir="rtl"] body.mopowerlab-theme .breadcrumb > li:last-child {
    padding-left: 0;
  }
}
