/* ==========================================================================
   Config
   ========================================================================== */
$selection-bar-border: 1px solid $color-border-base !default;

/* ==========================================================================
   Styles
   ========================================================================== */
.gui-selection-bar {
  left: 0;
  width: 100%;
  background: white;
  border-top: $selection-bar-border;
  border-bottom: $selection-bar-border;
  min-height: 50px;
  margin: 0;
}

.gui-selection-bar__divider {
  background-color: $color-border-base;
  width: 1px;
  height: 20px;
}

.gui-selection-bar__action {
  display: flex;
  margin: 0 $layout-spacing-base * 0.5;
}

.gui-selection-bar__section {
  height: 50px;
  display: flex;
  align-items: center;
}

.gui-selection-bar__actions {
  justify-content: center;
}

.gui-selection-bar__cancel {
  justify-content: flex-end;
  color: $neutral-base;
}

.gui-selection-bar__all {
  padding-left: 0;
}

.gui-selection-bar__count {
  color: white;
  background: $primary-blue;
  padding: ($layout-spacing-base*0.25 - 1px) $layout-spacing-base*0.5;
  margin: 0 $layout-spacing-base*0.25 0 $layout-spacing-base*0.5;
  border-radius: $layout-spacing-base*2;
}

/* ==========================================================================
   Modifiers
   ========================================================================== */
.gui-selection-bar--fixed {
  position: fixed;
  bottom: 0;
  box-shadow: $shadow-base;
}

.gui-selection-bar--auto-hide {
  bottom: -50px;
  opacity: 0;
  transition: bottom cubic-bezier(0.4, 0.0, 0.2, 1) 0.2s, opacity 0s linear 0.2s;

  &.gui-has-selected {
    bottom: 0;
    opacity: 1;
    transition: bottom cubic-bezier(0.4, 0.0, 0.2, 1) 0.2s, opacity 0s linear 0s;
  }
}
