@import './../../../../sources/styles/include.scss';

$component: 'reviews';
$template: 'template-1';
$class: 'reviews';

$form: #{$class}-form;
$items: #{$class}-items;
$item: #{$class}-item;
$pagination: #{$class}-pagination;

.ns-intec-universe.c-#{$component}.c-#{$component}-#{$template} {
  .#{$form}-container {
    & + .#{$items} {
      margin-top: 24px;
    }
  }
  .#{$form}-button-open {
    padding: 14px 32px;

    &[data-state='disabled'] {
      cursor: not-allowed;
    }
  }
  .#{$form}-button-open-icon {
    display: block;
    width: 17px;
    height: 14px;
    background-image: url('images/dialog.png');
  }
  .#{$form}-button-open-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .#{$form}-content {
    padding-top: 24px;

    &[data-expanded='false'] {
      display: none;
    }
  }
  .#{$form} {
    padding: 32px;
    max-width: 768px;
    background-color: #FFF;
    border: 1px solid #F2F2F2;

    [data-error='true'] {
      border-color: rgba(#E05757, 0.4);

      &:hover, &:focus {
        border-color: rgba(#E05757, 1);
      }
    }
    textarea {
      max-width: 100%;
      min-width: 100%;
      min-height: 77px;
    }
  }
  .#{$form}-errors {
    margin-bottom: 16px;
  }
  .#{$form}-captcha {
    margin-top: 16px;
  }
  .#{$form}-captcha-content {
    display: inline-block;
  }
  .#{$form}-captcha-field {
    max-width: 368px;
    overflow: hidden;
  }
  .#{$form}-captcha-input,
  .#{$form}-captcha-picture {
    display: block;
    width: auto;
    max-width: 180px;
  }
  .#{$form}-consent {
    margin-top: 16px;
  }
  .#{$form}-buttons {
    margin-top: 24px;
  }
  .#{$form}-button-submit-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .#{$form}-message {
    font-size: 13px;
    line-height: 20px;

    &[data-success='true'] {
      color: #1DB940;
    }
    &[data-success='false'] {
      color: #E05757;
    }
  }

  .#{$item} {
    & + .#{$item} {
      margin-top: -1px;
    }
  }
  .#{$item}-content {
    position: relative;
    padding: 32px 32px 40px 32px;
    background-color: #FFF;
    border: 1px solid #F2F2F2;

    &[data-empty='true'] {
      padding: 40px;
      font-size: 16px;
      line-height: 24px;
      color: #808080;
      text-align: center;
    }
  }
  .#{$item}-label {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 6px 8px;
    @include border-radius(2px);

    &[data-status='on-hold'] {
      color: #0065FF;
      background-color: #ebf3ff;
    }
    &[data-status='accepted'] {
      color: #1DB940;
      background-color: #dcf9e2;
    }
  }
  .#{$item}-avatar {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    @include border-radius(50%);
  }
  .#{$item}-date {
    font-size: 10px;
    line-height: 1;
    color: #808080;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .#{$item}-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #404040;
  }
  .#{$item}-properties {
    margin-top: 16px;
  }
  .#{$item}-property {
    & + .#{$item}-property {
      margin-top: 12px;
    }
  }
  .#{$item}-property-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: #404040;

    & + .#{$item}-property-value {
      margin-top: 4px;
    }
  }
  .#{$item}-property-value {
    font-size: 13px;
    line-height: 20px;
    color: #808080;
  }

  .#{$pagination} {
    margin-top: 32px;
  }

  @media all and (max-width: 768px) {
    .#{$form} {
      padding: 32px 24px;
    }
    .#{$item}-content {
      padding: 24px 24px 32px 24px;
    }
  }
}