@import "../../style/CommonStyle.module.less";
@import "../../style/utils.module.less";

@BORDER_WIDTH: 1px;

.tItem {
  min-width: 100px;
  max-width: 500px;
  height: calc(100% - @BORDER_WIDTH);
  background-color: @COLOR_WHITE;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  border: 1px solid @COLOR_GRAY02;
  border-bottom: none;
  box-sizing: border-box;
  padding: 0 12px;

  .title {
    .font(@fontFamily: @baseFontBold, @fontSize: 24px);
    color: @COLOR_GRAY03;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &.selected {
    background-color: @COLOR_DARK_RED;
    border-color: @COLOR_DARK_RED;

    .title {
      color: @COLOR_WHITE;
    }
  }

  &:focus-within,
  &:focus {
    background-color: @PRIMARY_COLOR_RED;
    border-color: @PRIMARY_COLOR_RED;

    .title {
      color: @COLOR_WHITE;
    }
  }

  &.medium {
    min-width: 330px;
  }
}
