@import 'Variables';
@import 'mixins/mediaQuery';
.CoveoQuickview {
  @include clickable();
  > div {
    position: relative;
  }
  .coveo-list-layout &:hover .coveo-caption-for-icon {
    display: inline;
  }
  .coveo-caption-for-icon {
    font-size: $font-size-smallest;
    display: none;
    background: $color-greyish-dark-blue;
    color: white;
    border-radius: 2px;
    padding: 6px 16px;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
    > div {
      border: solid;
      content: '';
      position: absolute;
      z-index: 99;
    }

    $arrow-width: 6px;
    $arrow-height: 7px;
    $arrow-color: $color-greyish-dark-blue;

    // Tooltip under element, arrow on top
    &[x-placement^='bottom'] > div {
      top: -$arrow-width;
      border-width: 0 $arrow-width $arrow-height;
      border-color: $arrow-color transparent;
    }

    // Tooltip over element, arrow on bottom
    &[x-placement^='top'] > div {
      bottom: -$arrow-width;
      border-width: $arrow-height $arrow-width 0;
      border-color: $arrow-color transparent;
    }

    // Tooltip on the right of element, arrow on the left
    &[x-placement^='right'] > div {
      left: -$arrow-width;
      border-width: $arrow-width $arrow-height $arrow-width 0;
      border-color: transparent $arrow-color;
    }

    // Tooltip on the left of element, arrow on the right
    &[x-placement^='left'] > div {
      right: -$arrow-width;
      left: auto;
      border-width: $arrow-width 0 $arrow-width $arrow-height;
      border-color: transparent $arrow-color;
    }
  }
}

.CoveoCardActionBar .CoveoQuickview {
  color: #fff;
  text-decoration: none;
  > * {
    display: flex;
    align-items: center;
  }
  .coveo-caption-for-icon {
    position: relative;
    transform: none;
    display: inline;
    padding: 0 5px;
    font-size: inherit;
    &:before {
      display: none;
    }
  }
  .coveo-caption-for-quickview {
    margin-top: 0;
    margin-left: 3px;
    font-size: 11px;
  }
}

.CoveoQuickviewDocument {
  overflow: hidden;
  .coveo-quickview-document {
    height: 100%;
    width: 100%;
    display: table;
    > * {
      display: table-row;
    }
    .coveo-iframeWrapper {
      height: 100%;
      width: 100%;
    }
  }
}

.coveo-term-for-quickview * {
  vertical-align: middle;
  box-sizing: border-box;
}

.coveo-term-for-quickview {
  margin: 2px 10px 10px 0;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid;
  .coveo-term-for-quickview-down-arrow {
    display: inline-block;
    padding: 5px;
    height: 26px;
    position: relative;
    width: 20px;
    .coveo-term-for-quickview-down-arrow-icon {
      position: absolute;
      top: 11px;
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid black;
    }
  }
  .coveo-term-for-quickview-up-arrow {
    display: inline-block;
    padding: 5px;
    height: 26px;
    position: relative;
    width: 20px;
    .coveo-term-for-quickview-up-arrow-icon {
      position: absolute;
      top: 11px;
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 5px solid black;
    }
  }
  .coveo-term-for-quickview-name {
    font-size: 14px;
    padding: 5px 0;
    margin-left: 5px;
  }
}

.coveo-quickview-left-header {
  overflow: hidden;
  padding-right: 16px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.coveo-quickview-right-header {
  text-align: right;
  float: right;
}

.coveo-quickview-icon {
  margin-right: 10px;
  vertical-align: middle;
}

.coveo-quickview-pop-up-reminder {
  color: #0066cc;
  font-size: 16px;
  text-align: left;
}

.coveo-quickview-time {
  font-size: 12px;
  color: $color-grey;
  font-weight: normal;
  vertical-align: middle;
}

.coveo-modal-container.coveo-quick-view {
  .coveo-modal-body {
    height: 90%;
    > div,
    .coveo-list-layout,
    .CoveoQuickviewDocument,
    .coveo-quick-view-full-height {
      height: 100%;
      width: 100%;
    }
    .coveo-logo {
      height: 64px;
      width: 178px;
    }
    .coveo-loading-dot {
      height: 8px;
      width: 8px;
    }
    .coveo-quickview-header {
      height: auto;
    }
    iframe {
      height: 100%;
      width: 100%;
      position: relative;
      @include defaultRoundedBorder();
      padding: 10px 0 0 10px;
    }
  }
}

.coveo-icon-for-quickview {
  text-align: center;
}

.coveo-icon-for-quickview-svg {
  margin-top: 8px;
  width: 20px;
  height: 12px;
  color: $color-greyish-teal-blue;
}

.coveo-computed-modal-box-content {
  > div {
    height: 100%;
  }
}
