/* PROMOTION_LAYOUT_V1 */
.wb-promotion-layout-v1 .page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 24px;
}

.wb-promotion-layout-v1 .page-heading > :first-child,
.wb-promotion-layout-v1 .page-heading .page-description,
.wb-promotion-layout-v1 .page-heading .toolbar {
  min-width: 0;
}

.wb-promotion-layout-v1 .page-heading .toolbar {
  justify-self: end;
  flex-wrap: wrap;
}

.wb-promotion-layout-v1 .promotion-toolbar-v3 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100%;
  max-width: 100%;
}

.wb-promotion-layout-v1 .promotion-toolbar-v3 > *,
.wb-promotion-layout-v1 .promotion-toolbar-v3 .promotion-search,
.wb-promotion-layout-v1 .promotion-toolbar-v3 .period-picker {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.wb-promotion-layout-v1 .wb-metadata-filter-panel {
  clear: both;
  margin-top: 12px;
}

.wb-promotion-layout-v1 .promotion-tabs-v3 {
  top: 72px !important;
  max-width: 100%;
}

@media (max-width: 1500px) {
  .wb-promotion-layout-v1 .promotion-toolbar-v3 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .wb-promotion-layout-v1 .promotion-toolbar-v3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .wb-promotion-layout-v1 .page-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .wb-promotion-layout-v1 .page-heading .toolbar {
    width: 100%;
    justify-self: stretch;
  }

  .wb-promotion-layout-v1 .page-heading .toolbar > * {
    width: 100%;
  }

  .wb-promotion-layout-v1 .promotion-toolbar-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .wb-promotion-layout-v1 .promotion-toolbar-v3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wb-promotion-layout-v1 .promotion-tabs-v3 {
    top: 64px !important;
  }
}
