.bxcart-fallback-toolbar[hidden],
.bxcart-fallback-breadcrumb[hidden],
.bxcart-fallback-product-switcher[hidden],
.bxcart-fallback-product-panel[hidden] {
  display: none !important;
}

.bxcart-fallback-toolbar {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  width: 100%;
  background: #f6f8fa;
  border-bottom: 1px solid #e7eaf0;
}

.bxcart-fallback-toolbar-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1440px);
  min-height: 72px;
  margin: 0 auto;
}

.bxcart-fallback-breadcrumb {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: #202124;
  white-space: nowrap;
}

.bxcart-fallback-breadcrumb a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bxcart-fallback-breadcrumb a:hover,
.bxcart-fallback-breadcrumb a:focus-visible {
  color: #165dff;
}

.bxcart-fallback-breadcrumb-separator {
  margin: 0 14px;
  font-weight: 400;
  color: #c4c7cc;
}

.bxcart-fallback-product-switcher {
  position: relative;
  flex: 0 1 440px;
  min-width: 0;
  margin-left: auto;
}

.bxcart-fallback-product-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 9px 14px;
  font: inherit;
  color: #202124;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 4px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bxcart-fallback-product-trigger:hover,
.bxcart-fallback-product-trigger:focus-visible,
.bxcart-fallback-product-trigger[aria-expanded="true"] {
  border-color: #165dff;
  outline: none;
  box-shadow: 0 0 0 2px rgb(22 93 255 / 10%);
}

.bxcart-fallback-product-trigger:disabled {
  cursor: wait;
  opacity: 0.68;
}

.bxcart-fallback-product-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

.bxcart-fallback-product-label {
  flex: 0 0 auto;
  margin-right: 10px;
  font-size: 14px;
  color: #5f6368;
}

.bxcart-fallback-product-trigger strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: #25324b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bxcart-fallback-product-trigger .el-icon-arrow-down {
  flex: 0 0 auto;
  margin-left: 12px;
  font-size: 14px;
  color: #8c96a8;
  transition: transform 0.2s ease;
}

.bxcart-fallback-product-trigger[aria-expanded="true"] .el-icon-arrow-down {
  transform: rotate(180deg);
}

.bxcart-fallback-product-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 35%) minmax(0, 65%);
  width: min(680px, 92vw);
  max-height: min(440px, 68vh);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgb(18 38 63 / 14%);
}

.bxcart-fallback-product-categories,
.bxcart-fallback-product-list {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bxcart-fallback-product-categories {
  padding: 10px;
  background: #f7f8fa;
  border-right: 1px solid #e7eaf0;
}

.bxcart-fallback-category-button,
.bxcart-fallback-product-button {
  width: 100%;
  font: inherit;
  color: #202124;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.bxcart-fallback-category-button {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 4px;
}

.bxcart-fallback-category-button + .bxcart-fallback-category-button {
  margin-top: 4px;
}

.bxcart-fallback-category-button:hover,
.bxcart-fallback-category-button:focus-visible,
.bxcart-fallback-category-button.is-active {
  color: #165dff;
  background: #eaf1ff;
  outline: none;
}

.bxcart-fallback-category-button span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bxcart-fallback-category-button .el-icon-arrow-right {
  flex: 0 0 auto;
  font-size: 12px;
  color: #a5adba;
}

.bxcart-fallback-category-button.is-active .el-icon-arrow-right {
  color: #165dff;
}

.bxcart-fallback-category-flag {
  flex: 0 0 22px;
  width: 22px;
  height: 16px;
  object-fit: cover;
}

.bxcart-fallback-product-list {
  padding: 10px 14px;
  background: #fff;
}

.bxcart-fallback-product-button {
  display: block;
  min-height: 68px;
  padding: 11px 12px;
  border-radius: 4px;
}

.bxcart-fallback-product-button + .bxcart-fallback-product-button {
  margin-top: 4px;
}

.bxcart-fallback-product-button:hover,
.bxcart-fallback-product-button:focus-visible,
.bxcart-fallback-product-button.is-current {
  background: #eaf1ff;
  outline: none;
}

.bxcart-fallback-product-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.bxcart-fallback-product-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: #202124;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bxcart-fallback-product-button:hover .bxcart-fallback-product-title,
.bxcart-fallback-product-button:focus-visible .bxcart-fallback-product-title,
.bxcart-fallback-product-button.is-current .bxcart-fallback-product-title {
  color: #165dff;
}

.bxcart-fallback-current-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
  background: #165dff;
  border-radius: 3px;
}

.bxcart-fallback-product-description {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  line-height: 19px;
  color: #8c96a8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.bxcart-fallback-product-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  font-size: 14px;
  color: #8c96a8;
  text-align: center;
}

.bxcart-fallback-root .bxcart-fallback-frame {
  height: auto;
}

@media (width <= 767px) {
  .bxcart-fallback-toolbar-inner {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    padding: 10px 12px;
  }

  .bxcart-fallback-breadcrumb {
    width: 100%;
    overflow: hidden;
    font-size: 12px;
  }

  .bxcart-fallback-breadcrumb a,
  .bxcart-fallback-breadcrumb span:not(.bxcart-fallback-breadcrumb-separator) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bxcart-fallback-breadcrumb-separator {
    flex: 0 0 auto;
    margin: 0 8px;
  }

  .bxcart-fallback-product-switcher {
    flex-basis: auto;
    width: 100%;
    margin-left: 0;
  }

  .bxcart-fallback-product-trigger {
    min-height: 40px;
    padding: 7px 10px;
  }

  .bxcart-fallback-product-icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .bxcart-fallback-product-label {
    margin-right: 6px;
    font-size: 12px;
  }

  .bxcart-fallback-product-trigger strong {
    font-size: 13px;
  }

  .bxcart-fallback-product-panel {
    right: auto;
    left: 0;
    grid-template-columns: minmax(112px, 38%) minmax(0, 62%);
    width: 100%;
    max-height: min(400px, 58dvh);
  }

  .bxcart-fallback-product-categories {
    padding: 6px;
  }

  .bxcart-fallback-product-list {
    padding: 6px;
  }

  .bxcart-fallback-category-button {
    gap: 6px;
    min-height: 42px;
    padding: 8px;
  }

  .bxcart-fallback-category-button span,
  .bxcart-fallback-product-title {
    font-size: 12px;
  }

  .bxcart-fallback-category-flag {
    flex-basis: 18px;
    width: 18px;
    height: 13px;
  }

  .bxcart-fallback-product-button {
    min-height: 58px;
    padding: 8px;
  }

  .bxcart-fallback-product-title-row {
    gap: 6px;
  }

  .bxcart-fallback-current-badge {
    padding: 1px 5px;
    font-size: 10px;
    line-height: 16px;
  }

  .bxcart-fallback-product-description {
    font-size: 11px;
    line-height: 17px;
  }
}
