.pisell-big-sale {
  --pisell-big-sale-sale-detail-width: 420px;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f5f6f8;
}

.pisell-big-sale__layout {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.pisell-big-sale__product-panel {
  position: relative;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #4e4e4e;

  .pisell-big-sale-product-list-wrapper {
    height: 100%;
    overflow: auto;
  }
}

.pisell-big-sale__sale-detail {
  display: flex;
  flex-direction: column;
  flex: 0 0 420px;
  min-width: 360px;
  min-height: 0;
  overflow: hidden;
}

.pisell-big-sale__sale-detail-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.pisell-big-sale--secondary-screen {
  background: #fff;
}

.pisell-big-sale--secondary-screen .pisell-big-sale__sale-detail {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.pisell-big-sale--phone {
  --pisell-big-sale-mobile-sale-detail-collapsed-height: 152px;

  min-height: 100dvh;
  overflow: visible;

  .pisell-big-sale__layout {
    flex-direction: column;
    overflow: visible;
  }

  .pisell-big-sale__product-panel {
    .pisell-big-sale-product-list-wrapper {
      height: 100%;
      padding-bottom: calc(var(--pisell-big-sale-mobile-sale-detail-collapsed-height) + env(safe-area-inset-bottom));
    }
  }

  .pisell-big-sale__sale-detail {
    position: static;
    flex: none;
    height: 0;
    min-width: 0;
    overflow: visible;
    background: transparent;
  }
}
