@use 'sass:math';

@mixin button() {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  text-decoration: none;
  background: none;
  color: inherit;
  appearance: none;
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  font-variant-ligatures: inherit;
  font-variant-caps: inherit;
  font-variant-numeric: inherit;
  font-variant-east-asian: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  text-rendering: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  line-height: inherit;
  text-transform: none;
  text-indent: inherit;
  text-shadow: none;
  text-align: inherit;
  pointer-events: auto;
  cursor: pointer;

}

@mixin btn() {
  @include button();
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: var(--llm-input-accent);

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

@mixin btnOutline() {
  @include button();
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  // height: 70px;
  // min-width: 240px;
  // padding: 0 20px;
  padding: 28px 44px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  border-radius: 0;
  border: 2px solid transparent;
  background-color: transparent;
  color: #28292b;
  box-shadow: none !important;
  transition: color .35s ease, border-color .35s ease, background-color .35s ease;

  &:not(:disabled):not(.disabled) {
    cursor: pointer;
  }

  @media only screen and (min-width: 48em) {
    width: auto;
  }

  border-color: #cfc9c1;
  background: none;
  color: #28292b;

  &:not(:disabled):not(.disabled) {

    &:hover,
    &:active {
      border-color: #28292b;
      color: #28292b;
    }
  }
}

.llm-button {
  @include button();
  color: var(--llm-em-color-primary-grey300);
  font-family: var(--llm-em-font-primary);
  font-size: 12px;
  font-weight: var(--llm-em-typography-cta3-font-weight);
  line-height: var(--llm-em-typography-cta3-line-height);
  letter-spacing: var(--llm-em-typography-cta3-letter-spacing);
  background: var(--llm-em-color-secondary-beige200);
  text-transform: uppercase !important;
  font-style: normal;
  text-align: center;
  padding: 28px 44px;
  border: none;
  display: inline-block;
}
