@layer components {
  /*
   * Button
   */
  
  .btn {
    cursor: pointer;
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 1.25rem;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    line-height: 1.125;
    margin: 0;
    text-align: center;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: 0.2s ease;
  
    @media (max-width: 639.98px) {
      font-size: 0.938rem;
    }
  
    &:focus {
      outline: none;
    }
  
    &:hover {
      text-decoration: none;
    }
  
    &:disabled {
      pointer-events: none;
    }
  }
  
  /* Primary */
  .btn-primary {
    background-color: var(--color-primary);
    box-shadow: 0px 1px 2px 0px rgb(var(--rgb-primary) / 0.32);
    color: var(--color-white) !important;
  
    &:hover,
    &:focus {
      background-color: var(--color-primary-darker);
      box-shadow: 0px 1px 2px 0px rgb(var(--rgb-primary) / 0.48);
    }
  }
  
  /* Secondary */
  .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-grey-200);
    box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.32);
    color: var(--color-primary);
  
    &:hover,
    &:focus {
      border-color: var(--color-grey-500);
      box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.48);
    }
  }
  
  /* Danger */
  .btn-danger {
    background-color: var(--color-white);
    border: 1px solid var(--color-red);
    box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.32);
    color: var(--color-red);
  
    &:hover,
    &:focus {
      border-color: var(--color-red-darker);
      box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.48);
    }
  }
  
  /* Large */
  .btn-lg {
    border-radius: 1.375rem;
    padding: 0.75rem 1.5rem;
    min-width: 10rem;
  
    i {
      margin-right: 0.25rem;
    }
  }
  
  /* Small */
  .btn-sm {
    border-radius: 1rem;
    padding: 0.25rem 0.25rem;
    font-size: 0.75rem;
  
    i {
      margin-right: 0.25rem;
    }
  }
  
  /* Record */
  .btn-record {
    color: var(--color-red-darker);
    min-width: 10rem;
  }
  
  /* Block */
  .btn-block {
    display: block;
    width: 100%;
  }
  
  /* Disabled */
  button:disabled,
  .btn-disabled {
    background-color: var(--color-grey-200);
    border: 1px solid transparent;
    color: var(--color-white);
    pointer-events: none;
  }
  
  /* Switch language */
  .btn-switch-language {
    background-color: var(--color-grey-050);
    border: 1px solid var(--color-grey-200);
    box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.32);
    color: var(--color-primary);
    display: inline-flex;
  
    &:hover,
    &:focus {
      border-color: var(--color-grey-500);
      box-shadow: 0px 1px 2px 0px rgb(var(--rgb-grey-200) / 0.48);
    }
  
    .switch-language-flag {
      margin: 0 0.375rem;
    }
  }
  
  /* Social */
  .btn {
    .btn-social-icon {
      margin-right: 0.75rem;
    }
  }
  
  /* Center button */
  .btn-center {
    display: table;
    margin: 0 auto;
    position: relative;
  }
  
  /* Icon */
  .btn-icon {
    justify-content: center;
    color: var(--color-grey-500);
    display: flex;
    width: 2rem;
    margin: 0 2px 0 2px;
  
    &:hover {
      color: var(--color-grey-600);
    }
  }
  
  /* App store & Google Play */
  .btn-app-store {
    display: block;
    background-image: url("/assets/btn-app-store-cd84f3bc.svg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 137px;
    height: 40px;
  
    @media (max-width: 991.98px) {
      width: 110px;
      height: 32px;
    }
  }
  
  .btn-google-play {
    display: block;
    background-image: url("/assets/btn-google-play-53c4210b.svg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 138px;
    height: 40px;
  
    @media (max-width: 991.98px) {
      width: 110px;
      height: 32px;
    }
  }
}
