/*
 * Copyright (c) 2017-2018 dunnhumby Germany GmbH.
 * All rights reserved.
 *
 * This source code is licensed under the MIT license found in the LICENSE file
 * in the root directory of this source tree.
 *
 */

@import "../proto/definitions/variables.css";

.default {
  display: flex;
  align-items: center;

  margin: 0;
  padding: calc(var(--spacing-3) / 2) var(--spacing-3);

  cursor: pointer;

  .icon {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-right: var(--spacing-3);
  }

  .textContainer {
    flex: 1 0 0%;
    min-width: 0;
  }

  .optionText {
    @extend %Nessie-SemiBold;

    margin: 0;
    color: var(--PC-GREY--D15);
  }

  &.active {
    background: var(--PC-GREY--L95);

    .optionText:not(.description) {
      color: var(--PC-BLUE);
    }
  }

  &.withDescription {
    padding-top: var(--spacing-1);

    .optionText {
      @extend %Nessie-Regular;
      font-size: var(--typo-5);
      line-height: var(--line-height-m);
    }

    .description {
      @extend %Nessie-Regular;
      color: var(--PC-GREY--L40);
      line-height: var(--line-height-s);
      margin-top: 4px;
    }
  }
}

.selected {
  background: var(--PC-GREY--L95);

  &.optionText {
    @extend %Nessie-Bold;
  }
}

.disabled {
  pointer-events: none;
  cursor: auto;

  .optionText {
    color: var(--PC-GREY--L70);
  }

  &.withDescription .optionText,
  .description {
    color: var(--PC-GREY--L70);
  }
}
