@use '../../scss/variables' as *;
@use '../../scss/mixins';

.revision-selector {
  background-color: var(--background-color);
  border-top: 1px solid var(--secondary-color);
  color: var(--primary-color);
  height: 178px;
  padding: 19px 20px 20px;
  position: relative;
  transition: all 0.3s ease-in-out;
  width: 100%;

  &.is-visible {
    bottom: 0;
  }

  @media only screen and (max-width: $single-column) {
    width: 100%;
  }

  .revision-selector-inner {
    max-width: $max-content-width;
    width: 85%;
    position: relative;
    margin: 0 auto;
  }

  .revision-actions {
    display: flex;

    .revision-deleted-tags-label {
      display: flex;
      flex: 1 1 auto;
      align-items: center;
    }

    .revision-deleted-tags-text {
      margin-left: 8px;
    }

    .revision-buttons {
      display: flex;
      justify-content: flex-end;

      button {
        font-weight: 400;
        border: 0;
      }
    }

    .icon-button {
      color: inherit;

      svg {
        position: relative;
        bottom: 2px;
      }
    }
  }

  .button-primary {
    &:active {
      background: var(--highlight-color);
      border-color: var(--highlight-color);
    }
  }

  .button-secondary {
    background: var(--secondary-button-bg-color);
    color: var(--primary-button-fg-color);
    margin-right: 10px;

    &:active {
      background: var(--background-color);
      color: var(--accent-color);
    }
  }

  .revision-slider {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .revision-date {
    text-align: center;
    font-size: 12px;
    position: absolute;
    top: 35px;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .revision-slider-title {
    margin: 0 auto 38px;
    font-weight: 600;
    font-size: 16px;
  }
}

.is-focus-mode .revision-selector {
  width: 100%;
}
