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

  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 var(--pisell-big-sale-sale-detail-width);
  min-width: 360px;
  min-height: 0;
  overflow: hidden;
  background: #181818;
}

.pisell-big-sale--has-right-action-panel .pisell-big-sale__sale-detail {
  contain: layout;
}

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

.pisell-big-sale__sale-detail--has-header {
  .pisell-sale-detail-tmpl-a .pisell-sale-detail-main {
    padding-top: 0;
  }
}

.pisell-big-sale__sale-detail .big-sale-dialog-header-bar {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 6px;
  background: #181818;
}

.big-sale-dialog-header-bar__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.big-sale-dialog-header-bar__order-id {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-sale-dialog-header-bar__close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: -6px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.pisell-big-sale--has-right-action-close {
  .big-sale-dialog-header-bar__close {
    display: none;
  }
}

.big-sale-dialog-header-bar--phone {
  .big-sale-dialog-header-bar__order-id {
    font-size: 18px;
    line-height: 24px;
  }
}

.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-tmpl--kiosk {
  background: #f2f4f7;

  &.pisell-big-sale--phone {
    height: 100svh;
    min-height: 0;
    max-height: 100svh;
    overflow: hidden;

    .pisell-big-sale__layout {
      flex-direction: row;
      overflow: hidden;

      > .pisell-kiosk-sale {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        align-self: stretch;
      }
    }
  }
}

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

  min-height: 100svh;
  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;
  }
}

.pisell-big-sale__right-action-customer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pisell-big-sale__right-action-customer-card {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 2px;
  border-radius: 10px;
  color: #cdbfea;
  background: linear-gradient(180deg, #312352 0%, #1c1732 100%);
  font-size: 10px;
  text-align: center;
}

.pisell-big-sale__right-action-customer-value {
  font-size: 14px;
  font-weight: 700;
}

.pisell-big-sale-right-action-panel__action-button.pisell-big-sale__right-action-save {
  // Two standard buttons (56px each) plus the 6px gap between them.
  min-height: 118px;
  border-color: #f79009;
  color: #fff;
  background: #f79009;

  &:not(:disabled):hover,
  &:not(:disabled):focus,
  &:not(:disabled):active {
    border-color: #dc6803;
    color: #fff;
    background: #dc6803;
  }

  .pisell-big-sale-right-action-panel__action-button-icon {
    font-size: 20px;
  }

  .pisell-big-sale-right-action-panel__action-button-label {
    font-size: 14px;
  }
}

.pisell-big-sale__right-action-quantity {
  display: grid;
  height: 44px;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 2px;
  box-sizing: border-box;
  padding: 3px;
  border: 2px solid #365777;
  border-radius: 10px;
  color: #dce9ff;
  background: #07101d;

  button,
  span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 14px;
  }
}
