@import "../Tokens/tokens.scss";
@import "../../common/scss/helpers";

.card-link {
  padding: ($baseUnit * 2) ($baseUnit * 4) ($baseUnit * 2) ($baseUnit * 4);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  background: $grannyApple;
  cursor: pointer;
  min-height: calc(64px + (#{$baseUnit * 6})); // two lines
  user-select: none;
  color: inherit;
  text-decoration: none;

  .card-link-text {
    padding-right: $baseUnit * 12;
    font-size: 21px;
    line-height: 28px;
    flex: 1;
  }

  .card-link-icon {
    display: block;
    background: $gin;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      width: 18px;
      height: 18px;
    }
  }

  &[disabled] {
    opacity: 0.3;
    background: #ccc;
    cursor: not-allowed;
  }

  &:hover:not([disabled]) {
    background: $zanah;

    .card-link-text {
      text-decoration: underline;
    }
  }
}
