@import 'variables';

.feedback-component {
  box-shadow: 0 0 24px -2px rgba(0, 0, 0, .2);
  bottom: 75px;
  position: fixed;
  right: 25px;
  z-index: 2;

  &.expanded {
    background-color: white;
    border-radius: 0 0 6px 6px;
    border-top: 4px solid $brand-primary;
    height: auto;
    min-height: 450px;
    padding: 32px;
    width: 400px;
  }

  &.collapsed {
    align-items: center;
    background-color: $brand-primary;
    border: 2px solid white;
    border-radius: 50%; /* makes it a circle */
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    margin: 0;
    width: 48px;

    &:hover {
      opacity: 0.5;
    }
  }

  .title {
    color: $text-medium;
    flex-grow: 1;
    font-size: 12px;
    font-family: $font-family-header;
    font-weight: $font-weight-header-regular;
    height: 24px;
    line-height: 32px;
  }

  img.icon-speech {
    background-color: $brand-primary;
    height: 36px;
    width: 24px;
  }

  .feedback-header {
    display: flex;
    margin-bottom: 8px;
  }

  .btn-group {
    margin: 8px auto 16px;
  }

  .submit {
    float: right;
    margin-top: 16px;
  }

  .submit:hover {
    background-color: $gray-lighter;
  }

  .radio-set {
    display: flex;
    margin-top: 8px;
  }

  .radio-set-item {
    cursor: pointer;
  }

  .radio-set .radio-set-item:not(:first-child) {
    margin-left: 12px;
  }

  .radio-set-item label {
    width: 100%;
    text-align: center;
  }

  .nps-label {
    font-family: $font-family-header;
    font-weight: $font-weight-header-regular;
    margin-bottom: 15px;
    width: 65px;
  }

  .status-message {
    font-family: $font-family-header;
    font-weight: $font-weight-header-regular;
    text-align: center;
    position: absolute;
    font-size: 20px;
    color: $text-medium;
    /* for centering when parent has automatic height */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  input[type="radio"] {
    margin: 5px;
  }

  input[type="text"] {
    color: $text-medium !important;
  }

  textarea {
    width: 100%;
    color: $text-medium !important;
    border: 1px solid $gray-lighter;
    border-radius: 5px;
    padding: 10px;
  }
}
