/* global styles for all cludo instances */
.cludo-container {
  .form-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    button[type="submit"] {
      font-size: 16px;
    }
  }

  label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
  }

  .fixed-query-message {
    color: red;
    grid-row: 4;
    grid-column: 2 / span 5;
    margin-block: 1rem;
  }

  .result-range {
    display: none;
    margin: 0 0 20px;
    font: italic normal 18px "Lora", serif;
  }
  @media screen and (min-width: 768px) {
    /* line 25, ../assets/scss/components/grid/_content.scss */
    .result-range {
      display: block;
    }
  }

  .icon {
    vertical-align: unset;
  }
}

/* Global pagination styles from d7 site - bootstrap */
.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  border-radius: 4px;

  > li {
    display: inline;

    > span,
    > a {
      position: relative;
      float: left;
      padding: 6px 12px;
      line-height: 1.42857;
      text-decoration: none;
      color: #337ab7;
      background-color: white;
      border: 1px solid #dddddd;
      margin-left: -1px;
      cursor: pointer;

      &:hover,
      &:focus {
        z-index: 2;
        color: #23527c;
        background-color: #eeeeee;
        border-color: #dddddd;
      }
    }

    &:first-child {
      > a,
      > span {
        margin-left: 0;
        border-bottom-left-radius: 4px;
        border-top-left-radius: 4px;
      }
    }

    &:last-child {
      > a,
      > span {
        border-bottom-right-radius: 4px;
        border-top-right-radius: 4px;
      }
    }
  }

  > .active {
    > a,
    > a:hover,
    > a:focus,
    > span,
    > span:hover,
    > span:focus {
      z-index: 1;
      color: white;
      background-color: #337ab7;
      border-color: #337ab7;
      cursor: default;
    }
  }

  > .disabled {
    > a,
    > a:hover,
    > a:focus,
    > span,
    > span:hover,
    > span:focus {
      color: #ededed;
      background-color: white;
      border-color: #dddddd;
      cursor: not-allowed;
    }
  }
}

/* global Skeleton Loader styles */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-title,
.skeleton-description {
  background-color: #e0e0e0;
  border-radius: 4px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.skeleton-title {
  height: 30px;
  width: 50%;
}

.skeleton-description {
  height: 100px;
  width: 100%;
}

.skeleton-title::before,
.skeleton-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: skeleton-loading 1.2s infinite;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
