@import '../../assets/styles/colors';

.storybook-card-container {
  background-color: $white;
  border: 1px solid $grey_2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 537px;
  height: fit-content;
  .storybook-card-header {
    height: 35px;
    width: -webkit-fill-available;
    padding: 5px 20px;
    color: $primary;
    background-color: $blue_4;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    &--primary {
      background-color: $primary;
      color: $white_1;
    }
    &--secondary {
      background-color: $primary-light;
      color: $primary;
    }
    &--success {
      background-color: $success;
      color: $white_1;
    }
    &--warning {
      background-color: $warning;
      color: $white_1;
    }
    &--default {
      box-shadow: 0px 0px 0px $shadow;
    }
    .header {
      font-size: 16px;
      font-weight: 600;
      &--x-small {
        font-size: 12px;
      }
      &--small {
        font-size: 14px;
      }
      &--medium {
        font-size: 16px;
      }
      &--large {
        font-size: 18px;
      }
    }
  }
  .storybook-card-body {
    display: flex;
    overflow-y: hidden;
    overflow-wrap: break-word;
    min-height: 120px;
    width: -webkit-fill-available;
  }
  .card-content-padding {
    padding: 15px;
  }
  .storybook-card-footer {
    height: 35px;
    width: -webkit-fill-available;
    padding: 5px 20px;
    color: $primary;
    background-color: $blue_4;
    font-size: 16px;
    font-weight: 600;
    &--primary {
      background-color: $primary;
      color: $white_1;
    }
    &--secondary {
      background-color: $primary-light;
      color: $primary;
    }
    &--success {
      background-color: $success;
      color: $white_1;
    }
    &--warning {
      background-color: $warning;
      color: $white_1;
    }
    &--default {
      box-shadow: 0px 0px 0px $shadow;
    }
  }
  .justify-content-center {
    justify-content: center;
  }
  .justify-content-start {
    justify-content: flex-start;
  }
  .justify-content-end {
    justify-content: flex-end;
  }
  .align-items-center {
    align-items: center;
  }
  .align-items-top {
    align-items: flex-start;
  }
  .align-items-bottom {
    align-items: flex-end;
  }
}
.border-round {
  border-radius: 10px;
}
.border-round-top {
  border-radius: 10px 10px 0px 0px;
}
.border-round-bottom {
  border-radius: 0px 0px 10px 10px;
}
.card-shadow,
.card-header-shadow {
  box-shadow: 0px 0px 6px $shadow;
}
