/**
 * @file
 * Table select styles.
 */

.views-bulk-actions {
  position: relative;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  color: #000;
  border: 1px solid #bfbfbf;
  background-color: #fcfcfa;

  &[data-drupal-sticky-vbo="true"] {
    position: sticky;
    z-index: 101;
    bottom: var(--drupal-displace-offset-bottom, 0);
    animation: fade-in-bottom 320ms 1 forwards;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  &.views-form__header--bypass-animation {
    animation: none;
  }
}

@supports (position: sticky) {
  .views-bulk-actions[data-drupal-sticky-vbo="true"] {
    position: sticky;
  }
}

@keyframes fade-in-bottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.views-bulk-actions__item {
  align-self: center;
  margin-block: 0 0.75rem;
  margin-inline: 0.35rem 0.35rem;
  &:last-of-type {
    margin-inline-end: 0;
  }
  & .button--primary:not(:disabled, .is-disabled) {
    color: #fff;
    border-color: #1e5c90;
    background-color: #0071b8;
    background-image: -webkit-linear-gradient(top, #007bc6, #0071b8);
    background-image: linear-gradient(to bottom, #007bc6, #0071b8);
    text-shadow: 0 1px hsl(0, 0%, 0%, 0.5);
    font-weight: 600;
    &:hover {
      color: #fff;
      border-color: #1e5c90;
      background-color: #2369a6;
      background-image: -webkit-linear-gradient(top, #0c97ed, #1f86c7);
      background-image: linear-gradient(to bottom, #0c97ed, #1f86c7);
    }
  }
  & label {
    display: inline;
    padding-inline-end: 0.5rem;
    &::after {
      content: ":";
    }
  }
  & .form-element--type-select {
    min-height: 2rem;
    padding-block: calc(0.5rem - 1px);
    padding-inline: calc(1rem - 1px) calc(2.25rem - 1px);
    font-size: 0.79rem;
    line-height: 1rem;
  }
  & input,
  & .button {
    margin-block: 0;
  }
}

.views-bulk-actions__item--status {
  width: 100%;
  white-space: nowrap;
  font-size: 0.79rem;
  font-weight: bold;
}

.views-field__skip-to-bulk-actions {
  display: block;
  white-space: nowrap;
  font-size: 0.79rem;
}

@media screen and (min-width: 61rem) {
  .views-bulk-actions {
    flex-wrap: nowrap;
  }
  .views-bulk-actions__item {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .views-bulk-actions__item--status {
    width: auto;
  }
}
