.ywcas-statistic-wrapper {
  max-width: 1200px;

  .ywcas-statistic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    min-height: 500px;
  }

  .no-result-stats {
    display: flex;
    height: calc(100% - 40px);
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
  }

  .ywcas-statistic-block {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid #ECECEC;


    h2 {
      color: var(--yith-primary) !important;
      font-size: 16px;
      margin-bottom: 24px;
    }

    .ywcas-statistic-block--term-wrapper {
      border: 1px solid #ECECEC;;
      background-color: #fff;
      border-radius: 9px;
      padding: 18px;
      margin-bottom: 15px;

      .ywcas-statistic-block--term-info {
        display: flex;
        align-items: center;
        justify-content: space-between
      }

      .ywcas-statistic-block--term-progress {
        background: rgb(231, 231, 231);
        height: 20px;
        width: 100%;
        border-radius: 2px;
        margin-top: 10px;

        .ywcas-statistic-block--term-progress-bar {
          background-color: #2992B7;
          height: 100%;
          text-align: center;
          line-height: 20px;
          color: white;
          border-radius: 2px;
        }
      }
    }

    .ywcas-statistic-block-view-all {
      margin-top: 30px
    }

    &.top-clicked {
      .ywcas-statistic-block--term-progress-bar {
        background-color: #00ABE7 !important;
      }
    }

    &.top-no-results {
      .ywcas-statistic-block--term-progress-bar {
        background-color: #A9B5BA !important;
      }
    }


  }
}

.yith-plugin-fw-panel-custom-tab-container {
  min-height: 500px;

}

#ywcas-statistic-filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 50px;

  #post-query-submit {
    margin: 0;
  }

  #post-query-reset{
    color: #000;
    background: #e8e9eb;
    border-color: #c6c6c6;

    &:hover{
      background: #d5d6da;
      border-color: #b7b7b7;
    }
  }
}


.ywcas-statistic-detail {
  a.ywcas-stats-go-back {
    font-size: 13px;
    text-decoration: none;
    display: block;
    margin-bottom:20px;
    color: var(--yith-primary) !important;

    &:hover {
      color: var(--yith-primary-hover) !important;
    }
  }
  .ywcas-empty-statistic-details{
    display:flex;
    align-items:center;
    justify-content:center;
    padding-right: 25px;
    border-radius: 0 5px 5px 0;
    background: var(--yith-content-bg);
    border-radius: 5px;
    box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow);
    transition: background-color .2s ease-in-out;
    margin-top: 110px;
    min-height: 70px;
  }

  h1.wp-heading-inline {
    margin-bottom: 50px;


  }
}

.ywcas-statistic-block-view-all {
  a {
    font-size: 13px;
    text-decoration: none;
    padding-left: 10px;
    color: var(--yith-primary) !important;

    &:hover {
      color: var(--yith-primary-hover) !important;
    }
  }
}

#statistic-detail-form {
  margin-top: -60px;
}
