.gsi-material-button {
  cursor: pointer;
  user-select: none;

  position: relative;

  overflow: hidden;

  box-sizing: border-box;
  width: auto;
  min-width: min-content;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #747775;
  border-radius: 4px;

  font-family: Roboto, arial, sans-serif;
  font-size: var(--mantine-font-size-sm); /* 14px → sm */
  color: #1f1f1f;
  text-align: center;
  letter-spacing: 0.25px;
  white-space: nowrap;
  vertical-align: middle;

  appearance: none;
  background-color: #ffffff;
  background-image: none;
  outline: none;

  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
}

.gsi-material-button .gsi-material-button-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-inline-end: 12px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  position: relative;

  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  overflow: hidden;
  flex-grow: 0;

  font-family: Roboto, arial, sans-serif;
  font-weight: 500;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.218s;
}

.gsi-material-button:disabled {
  cursor: default;
  border-color: #1f1f1f1f;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 0.38;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 0.38;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  opacity: 0.12;
  background-color: #303030;
}

.gsi-material-button:not(:disabled):hover {
  box-shadow:
    0 1px 2px 0 rgb(60 64 67 / 30%),
    0 1px 3px 1px rgb(60 64 67 / 15%);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  opacity: 0.08;
  background-color: #303030;
}
