@import '../styles/_variables.scss';

.selectable-card {
  position: relative;

  .option-button.option-button.option-button {
    border: $default-border;
    height: 100%;
    width: 100%;
    align-items: stretch;
    justify-content: space-evenly;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 1px 1px 2px 0 $dark-border;
    position: relative;

    &:hover {
      background-color: $light-gray;
    }

    &.selected {
      border-color: $button-hover-color;
      color: $button-hover-color;

      &:hover {
        background-color: $font-light;
        cursor: default;
      }
    }

    &.disabled {
      box-shadow: none;
      opacity: 0.5;

      &:hover {
        background-color: initial;
      }
    }

    &.with-header-label {
      border-start-end-radius: 0;
      border-start-start-radius: 0;
    }

    .selectable-card-inner {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }

  .selectable-card-label.selectable-card-label {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 13px;
    color: $dark-gray;
    padding-block: 6px;

    &.selected {
      color: $button-hover-color;
    }

    &.disabled {
      color: $dark-gray;
    }
  }

  .icon.icon {
    align-items: start;
    padding-block-start: 16px;
    height: initial;
  }

  .header-label.header-label.header-label {
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    left: 0;
    background-color: $disabled-bg;
    color: $clickable-item;
    font-size: 10px;
    font-weight: bold;
    width: 100%;
    border-start-end-radius: 4px;
    border-start-start-radius: 4px;
    padding-block: 3px;
    padding-inline: 3px;
    text-align: center;
    box-sizing: border-box;
  }

  .selected-icon {
    position: absolute;
    top: 9px;
    right: 9px;
    height: 15px;
    color: $button-hover-color;
  }

  .info-tooltip.info-tooltip {
    position: absolute;
    top: 9px;
    right: 9px;
    height: 15px;
    width: 15px;

    .info-icon {
      height: 15px;
    }
  }
}

