/* Keep only the parent destination where the storefront has a page hierarchy. */
.esnaf-store #container .breadcrumb {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.esnaf-store .breadcrumb:not(:has(> li:nth-child(3))) {
  display: none;
}

.esnaf-store .breadcrumb > li {
  display: none;
}

.esnaf-store .breadcrumb > li:nth-last-child(2):not(:first-child) {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

.esnaf-store .breadcrumb > li + li::before {
  display: none;
}

.esnaf-store .breadcrumb > li:nth-last-child(2):not(:first-child) > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 44px;
  margin-block: 3px 8px;
  padding: 7px 13px;
  border: 1px solid #dce6da;
  border-radius: 12px;
  background: #edf5eb;
  color: #135732;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.esnaf-store .breadcrumb > li:nth-last-child(2):not(:first-child) > a::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.esnaf-store .breadcrumb > li:nth-last-child(2):not(:first-child) > a:hover {
  background: #e2efe0;
}

.esnaf-store #product-info > .breadcrumb {
  grid-column: 1 / -1;
}
