/* == Button == */
.case.button {
  cursor: pointer;
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  outline: none;
  vertical-align: middle;
  background-color: #757575;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  margin: 0;
  padding: 0.875rem 1.875rem;
  line-height: 1rem;
  font-style: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.25rem;
  border: 1px solid #757575;
  box-sizing: content-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  position: relative;
}
.case.button:hover,
.case.button:active,
.case.button:focus {
  color: #fff;
  background: #616161;
  border-color: #616161;
}
.case.button:active,
.case.button.active {
  outline: 0 none;
  box-shadow: none;
}
/* == basic == */
.case.basic.buttons .button,
.case.basic.button,
.case.basic.primary.buttons .button,
.case.basic.primary.button,
.case.basic.secondary.buttons .button,
.case.basic.secondary.button,
.case.basic.positive.buttons .button,
.case.basic.positive.button,
.case.basic.negative.buttons .button,
.case.basic.negative.button,
.case.basic.white.buttons .button,
.case.basic.white.button,
.case.basic.light.buttons .button,
.case.basic.light.button,
.case.basic.dark.buttons .button,
.case.basic.dark.button,
.case.simple.buttons .button,
.case.simple.button,
.case.simple.primary.buttons .button,
.case.simple.primary.button,
.case.simple.secondary.buttons .button,
.case.simple.secondary.button,
.case.simple.positive.buttons .button,
.case.simple.positive.button,
.case.simple.negative.buttons .button,
.case.simple.negative.button,
.case.simple.white.buttons .button,
.case.simple.white.button,
.case.simple.light.buttons .button,
.case.simple.light.button,
.case.simple.dark.buttons .button,
.case.simple.dark.button,
.case.inverted.buttons .button,
.case.inverted.button,
.case.inverted.primary.buttons .button,
.case.inverted.primary.button,
.case.inverted.secondary.buttons .button,
.case.inverted.secondary.button,
.case.inverted.positive.buttons .button,
.case.inverted.positive.button,
.case.inverted.negative.buttons .button,
.case.inverted.negative.button,
.case.inverted.white.buttons .button,
.case.inverted.white.button,
.case.inverted.light.buttons .button,
.case.inverted.light.button,
.case.inverted.dark.buttons .button,
.case.inverted.dark.button {
  background: transparent;
  box-shadow: none;
  color: var(--primary-color);
}
.case.simple.buttons .button,
.case.simple.button,
.case.simple.primary.buttons .button,
.case.simple.primary.button,
.case.simple.secondary.buttons .button,
.case.simple.secondary.button,
.case.simple.positive.buttons .button,
.case.simple.positive.button,
.case.simple.negative.buttons .button,
.case.simple.negative.button,
.case.simple.white.buttons .button,
.case.simple.white.button,
.case.simple.light.buttons .button,
.case.simple.light.button,
.case.simple.dark.buttons .button,
.case.simple.dark.button {
  box-shadow: none;
  border-color: transparent;
}
.case.basic.button:hover,
.case.basic.button.active,
.case.basic.button:active {
  color: #fff;
  background: #616161;
  border-color: #616161;
}
/* == primary == */
.case.primary.buttons .button,
.case.primary.button {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.case.primary.buttons .button:hover,
.case.primary.buttons .button:active,
.case.primary.buttons .button:focus,
.case.primary.button:hover,
.case.primary.button:active,
.case.primary.button:focus {
  color: #fff;
  background: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
}
.case.primary.buttons .button:active,
.case.primary.buttons .button.active,
.case.primary.button:active,
.case.primary.button.active {
  box-shadow: none;
  background: var(--primary-color-active);
}
.case.simple.primary.buttons .button,
.case.simple.primary.button {
  color: var(--primary-color);
  border-color: transparent;
}
.case.simple.primary.button:hover,
.case.simple.primary.button.active,
.case.simple.primary.button:active {
  color: var(--primary-color-hover);
  background: transparent;
}
.case.basic.primary.buttons .button,
.case.basic.primary.button {
  color: var(--primary-color);
}
.case.basic.primary.button:hover,
.case.basic.primary.button.active,
.case.basic.primary.button:active {
  color: #fff;
}
.case.inverted.primary.buttons .button,
.case.inverted.primary.button {
  background-color: var(--primary-color-inverted);
  color: var(--primary-color);
  border-color: var(--primary-color-inverted);
}
.case.inverted.primary.buttons .button.active,
.case.inverted.primary.buttons .button:hover,
.case.inverted.primary.button:hover,
.case.inverted.primary.button.active,
.case.inverted.primary.button:active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}
/* == secondary == */
.case.secondary.buttons .button,
.case.secondary.button {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}
.case.secondary.buttons .button:hover,
.case.secondary.buttons .button:active,
.case.secondary.buttons .button:focus,
.case.secondary.button:hover,
.case.secondary.button:active,
.case.secondary.button:focus {
  color: #fff;
  background: var(--secondary-color-hover);
  border-color: var(--secondary-color-hover);
}
.case.secondary.buttons .button:active,
.case.secondary.buttons .button.active,
.case.secondary.button:active,
.case.secondary.button.active {
  box-shadow: none;
  background: var(--secondary-color-active);
}
.case.simple.secondary.buttons .button,
.case.simple.secondary.button {
  color: var(--secondary-color);
  border-color: transparent;
}
.case.simple.secondary.button:hover,
.case.simple.secondary.button.active,
.case.simple.secondary.button:active {
  color: var(--secondary-color-hover);
  background: transparent;
}
.case.basic.secondary.buttons .button,
.case.basic.secondary.button {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}
.case.basic.secondary.button:hover,
.case.basic.secondary.button.active,
.case.basic.secondary.button:active {
  color: #fff;
}
.case.inverted.secondary.buttons .button,
.case.inverted.secondary.button {
  background-color: var(--secondary-color-inverted);
  color: var(--secondary-color);
  border-color: var(--secondary-color-inverted);
}
.case.inverted.secondary.buttons .button.active,
.case.inverted.secondary.buttons .button:hover,
.case.inverted.secondary.button:hover,
.case.inverted.secondary.button.active,
.case.inverted.secondary.button:active {
  color: #fff;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}
/* == positive == */
.case.positive.buttons .button,
.case.positive.button {
  background-color: var(--positive-color);
  color: #fff;
  border-color: var(--positive-color);
}
.case.positive.buttons .button:hover,
.case.positive.buttons .button:active,
.case.positive.buttons .button:focus,
.case.positive.button:hover,
.case.positive.button:active,
.case.positive.button:focus {
  color: #fff;
  background: var(--positive-color-hover);
  border-color: var(--positive-color-hover);
}
.case.positive.buttons .button:active,
.case.positive.buttons .button.active,
.case.positive.button:active,
.case.positive.button.active {
  box-shadow: none;
  background: var(--positive-color-active);
}
.case.simple.positive.buttons .button,
.case.simple.positive.button {
  color: var(--positive-color-hover);
  border-color: transparent;
}
.case.simple.positive.button:hover,
.case.simple.positive.button.active,
.case.simple.positive.button:active {
  color: var(--positive-color-hover);
  background: transparent;
}
.case.basic.positive.buttons .button,
.case.basic.positive.button {
  border-color: var(--positive-color-hover);
  color: var(--positive-color-hover);
}
.case.basic.positive.button:hover,
.case.basic.positive.button.active,
.case.basic.positive.button:active {
  color: #fff;
}
.case.inverted.positive.buttons .button,
.case.inverted.positive.button {
  background-color: var(--positive-color-inverted);
  color: var(--positive-color);
  border-color: var(--positive-color-inverted);
}
.case.inverted.positive.buttons .button.active,
.case.inverted.positive.buttons .button:hover,
.case.inverted.positive.button:hover,
.case.inverted.positive.button.active,
.case.inverted.positive.button:active {
  color: #fff;
  background: var(--positive-color);
  border-color: var(--positive-color);
}
/* == negative == */
.case.negative.buttons .button,
.case.negative.button {
  background-color: var(--negative-color);
  color: #fff;
  border-color: var(--negative-color);
}
.case.negative.buttons .button:hover,
.case.negative.buttons .button:active,
.case.negative.buttons .button:focus,
.case.negative.button:hover,
.case.negative.button:active,
.case.negative.button:focus {
  color: #fff;
  background: var(--negative-color-hover);
  border-color: var(--negative-color-hover);
}
.case.negative.buttons .button:active,
.case.negative.buttons .button.active,
.case.negative.button:active,
.case.negative.button.active {
  box-shadow: none;
  background: var(--negative-color-active);
}
.case.simple.negative.buttons .button,
.case.simple.negative.button {
  color: var(--negative-color-hover);
  border-color: transparent;
}
.case.simple.negative.button:hover,
.case.simple.negative.button.active,
.case.simple.negative.button:active {
  color: var(--negative-color-hover);
  background: transparent;
}
.case.basic.negative.buttons .button,
.case.basic.negative.button {
  border-color: var(--negative-color-hover);
  color: var(--negative-color-hover);
}
.case.basic.negative.button:hover,
.case.basic.negative.button.active,
.case.basic.negative.button:active {
  color: #fff;
}
.case.inverted.negative.buttons .button,
.case.inverted.negative.button {
  background-color: var(--negative-color-inverted);
  color: var(--negative-color);
  border-color: var(--negative-color-inverted);
}
.case.inverted.negative.buttons .button.active,
.case.inverted.negative.buttons .button:hover,
.case.inverted.negative.button:hover,
.case.inverted.negative.button.active,
.case.inverted.negative.button:active {
  color: #fff;
  background: var(--negative-color);
  border-color: var(--negative-color);
}
/* == light == */
.case.light.buttons .button,
.case.light.button {
  background-color: var(--light-color);
  color: var(--body-color);
  border-color: var(--light-color);
}
.case.light.buttons .button:hover,
.case.light.buttons .button:active,
.case.light.buttons .button:focus,
.case.light.buttons .button.active,
.case.light.button:hover,
.case.light.button:active,
.case.light.button:focus {
  color: var(--body-color);
  background: var(--light-color-hover);
  border-color: var(--light-color-hover);
}
.case.light.buttons .button:active,
.case.light.buttons .button.active,
.case.light.button:active,
.case.light.button.active {
  box-shadow: none;
}
.case.simple.light.buttons .button,
.case.simple.light.button {
  color: var(--light-color);
  border-color: transparent;
}
.case.simple.light.button:hover,
.case.simple.light.button.active,
.case.simple.light.button:active {
  color: var(--light-color-hover);
  background: transparent;
}
.case.basic.light.buttons .button,
.case.basic.light.button {
  border-color: var(--light-color);
  color: var(--body-color);
}
.case.basic.light.button:hover,
.case.basic.light.button.active,
.case.basic.light.button:active {
  color: var(--body-color);
}
.case.inverted.light.buttons .button,
.case.inverted.light.button {
  background-color: var(--light-color-inverted);
  color: var(--light-color);
  border-color: var(--light-color-inverted);
}
.case.inverted.light.buttons .button.active,
.case.inverted.light.buttons .button:hover,
.case.inverted.light.button:hover,
.case.inverted.light.button.active,
.case.inverted.light.button:active {
  color: #fff;
  background: var(--light-color);
  border-color: var(--light-color);
}
/* == dark == */
.case.dark.buttons .button,
.case.dark.button {
  background-color: var(--dark-color);
  color: #fff;
  border-color: var(--dark-color);
}
.case.dark.buttons .button:hover,
.case.dark.buttons .button:active,
.case.dark.buttons .button:focus,
.case.dark.button:hover,
.case.dark.button:active,
.case.dark.button:focus {
  color: #fff;
  background: var(--dark-color-hover);
  border-color: var(--dark-color-hover);
}
.case.dark.buttons .button:active,
.case.dark.buttons .button.active,
.case.dark.button:active,
.case.dark.button.active {
  box-shadow: none;
}
.case.simple.dark.buttons .button,
.case.simple.dark.button {
  color: var(--dark-color);
  border-color: transparent;
}
.case.simple.dark.button:hover,
.case.simple.dark.button.active,
.case.simple.dark.button:active {
  color: var(--dark-color-hover);
  background: transparent;
}
.case.basic.dark.buttons .button,
.case.basic.dark.button {
  border-color: var(--dark-color);
  color: var(--dark-color);
}
.case.basic.dark.button:hover,
.case.basic.dark.button.active,
.case.basic.dark.button:active {
  color: #fff;
}
.case.inverted.dark.buttons .button,
.case.inverted.dark.button {
  background-color: var(--dark-color-inverted);
  color: var(--dark-color);
  border-color: var(--dark-color-inverted);
}
.case.inverted.dark.buttons .button.active,
.case.inverted.dark.buttons .button:hover,
.case.inverted.dark.button:hover,
.case.inverted.dark.button.active,
.case.inverted.dark.button:active {
  color: #fff;
  background: var(--dark-color);
  border-color: var(--dark-color);
}
/* == white == */
.case.white.buttons .button,
.case.white.button {
  background-color: #fff;
  box-shadow: 0 2px 3px rgba(50, 50, 93, 0.11), 0 1px 1px rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
  border-color: #fff;
}
.case.white.buttons .button:hover,
.case.white.buttons .button:active,
.case.white.buttons .button:focus,
.case.white.button:hover,
.case.white.button:active,
.case.white.button:focus {
  background-color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.case.white.buttons .button:active,
.case.white.buttons .button.active,
.case.white.button:active,
.case.white.button.active {
  box-shadow: 0 0 0 0 transparent;
}
.case.basic.white.buttons .button,
.case.basic.white.button {
  border-color: #fff;
  color: #fff;
}
.case.basic.white.button:hover,
.case.basic.white.button.active,
.case.basic.white.button:active {
  color: var(--primary-color);
}
/* == transparent == */
.case.transparent.buttons .button,
.case.transparent.button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: transparent;
}
.case.transparent.buttons .button:hover,
.case.transparent.buttons .button:active,
.case.transparent.buttons .button:focus,
.case.transparent.button:active,
.case.transparent.button:focus {
  background: rgba(255, 255, 255, 0.4);
}
/* == fluid == */
.case.fluid.button,
.case.fluid.buttons {
  display: flex;
  margin: 0;
}
.case.fluid.buttons .button {
  flex: 1 1 0px;
  min-width: 0;
}
.case.fluid.labeled.button span {
  flex: 1 1 0px;
}
button.case.fluid.button {
  /*padding + border*/
  width: calc(100% - 3.75rem - 2px);
}
/* == icon == */
.case.icon.button {
  margin: 0;
  line-height: 1rem;
  padding: 0.875rem;
  font-size: 1rem;
}
.case.icon.button .icon {
  width: 1rem;
}
.case.button:not(.icon) .icon {
  margin-right: 1rem;
}
.case.right.button:not(.labeled):not(.icon) .icon {
  margin-right: 0;
  margin-left: 1rem;
}
/* == labeled == */
.case.labeled.button {
  padding: 0;
}
.case.labeled.button span,
.case.labeled.button .icon {
  flex: 0 1 auto;
  -ms-grid-row-align: auto;
  align-self: auto;
}
.case.labeled.button span {
  padding: 0.875rem 1.875rem;
}
.case.labeled.button .icon {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.875rem;
  background-color: rgba(255, 255, 255, 0.1);
}
/* == Groups == */
.case.buttons {
  display: inline-flex;
  flex-direction: row;
}
.case.buttons .button {
  flex: 1 0 auto;
  margin: 0em;
  border-radius: 0em;
  box-shadow: none;
}
.case.buttons .button:first-child {
  border-radius: 0.25rem 0 0 0.25rem;
}
.case.buttons .button:last-child {
  border-radius: 0 0.25rem 0.25rem 0;
}
.case.rounded.buttons .button:first-child {
  border-radius: 2rem 0 0 2rem;
}
.case.rounded.buttons .button:last-child {
  border-radius: 0 2rem 2rem 0;
}
/* == status == */
.case.button .status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.813rem;
  height: 0.813rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 2px solid #ffffff;
}
.case.button .status.negative {
  background: var(--negative-color);
}
.case.button .status.positive {
  background: var(--positive-color);
}
/* == circular == */
.case.circular.button {
  border-radius: 100rem;
}
/* == compact == */
.case.compact.buttons,
.case.compact.button {
  padding: 0.75rem 1rem;
}
/* == rounded == */
.case.rounded.buttons,
.case.rounded.button {
  border-radius: 3rem;
}
/* == spaced == */
.case.spaced.button {
  margin-right: 1rem;
}
/* == passive == */
.case.passive.button {
  cursor: default;
  pointer-events: none;
}
/* == filter == */
.case.filter.buttons {
  background-color: var(--dark-color-inverted);
  border-radius: 0.25rem;
}
.case.filter.buttons .button {
  margin: 0.25rem;
  border-radius: 0.25rem;
  background-color: #fff;
  border: 0;
  color: var(--primary-color);
  box-shadow: 0 3px 6px 0 var(--shadow-color);
}
.case.filter.buttons .button.passive {
  background-color: transparent;
  box-shadow: none;
  border: 0;
}
/* == attached == */
.case.attached.buttons,
.case.attached.button {
  position: absolute;
  z-index: 2;
}
.case.attached.top.buttons,
.case.attached.top.button {
  top: 0;
}
.case.attached.bottom.buttons,
.case.attached.bottom.button {
  bottom: 0;
}
.case.attached.left.buttons,
.case.attached.left.button {
  left: 0;
}
.case.attached.right.buttons,
.case.attached.right.button {
  right: 0;
}
.case.attached.middle.buttons,
.case.attached.middle.button {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.case.attached.spaced.top.buttons,
.case.attached.spaced.top.button {
  top: 1rem;
}
.case.attached.spaced.right.buttons,
.case.attached.spaced.right.button {
  right: 1rem;
}
.case.attached.spaced.left.buttons,
.case.attached.spaced.left.button {
  left: 1rem;
}
.case.attached.outside.top.buttons,
.case.attached.outside.top.button {
  top: -1rem;
}
.case.attached.outside.right.buttons,
.case.attached.outside.right.button {
  right: -1rem;
}
.case.attached.outside.left.buttons,
.case.attached.outside.left.button {
  left: -1rem;
}
/* == disabled == */
.case.buttons .disabled.button,
.case.disabled.button,
.case.button:disabled,
.case.disabled.button:hover,
.case.disabled.active.button {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
  pointer-events: none;
}
/* == loading == */
.case.loading.loading.button {
  z-index: 1;
  cursor: default;
  color: transparent;
  opacity: 1;
  pointer-events: none;
  transition: all 0s linear, opacity 0.1s ease;
}
.case.loading.button::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(-1.5rem / 2);
  margin-left: calc(-1.5rem / 2);
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #fff;
  -webkit-animation: spinner 0.6s linear infinite;
  animation: spinner 0.6s linear infinite;
}
.case.small.loading.button::after {
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  margin-left: -0.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #fff;
}
@-webkit-keyframes spinner {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* == Vertical == */
.case.buttons.vertical {
  display: flex;
  flex-direction: column;
}
.case.buttons.vertical .button {
  flex: 1 1 0px;
  min-width: 0;
  border-radius: 0.25rem;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}
/* == Sizes == */
.case.relaxed.button {
  padding: 0.875rem 2.5rem;
}
.case.very.relaxed.button {
  padding: 0.875rem 4rem;
}
.case.mini.buttons .button,
.case.mini.button {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  line-height: 0.75rem;
}
.case.mini.button .icon {
  font-size: 1rem;
}
button.case.mini.fluid.button {
  width: calc(100% - 2rem - 2px);
}
.case.mini.circular.button,
.case.mini.icon.button {
  padding: 0.375rem;
}
.case.small.buttons .button,
.case.small.button {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
}
button.case.small.fluid.button {
  width: calc(100% - 2.5rem - 2px);
}
.case.small.circular.button,
.case.small.icon.button {
  padding: 0.625rem;
}
.case.buttons .button,
.case.button {
  font-size: 1rem;
}
.case.big.buttons .button,
.case.big.button {
  font-size: 1rem;
  padding: 1.25rem 2rem;
}
.case.big.circular.button {
  padding: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
}
.case.big.circular.button .icon {
  font-size: 1.25rem;
  width: 1.25rem;
}
.case.labeled.big.buttons .button,
.case.labeled.big.button,
.case.labeled.small.buttons .button,
.case.labeled.small.button {
  padding: 0;
}
.case.big.labeled.button span {
  font-size: 1rem;
  padding: 1.375rem 1.875rem;
}
.case.big.labeled.button .icon {
  padding: 1.375rem;
}
.case.small.labeled.button span {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}
.case.small.labeled.button .icon {
  padding: 0.75rem;
}
.case.huge.buttons .button,
.case.huge.button {
  font-size: 1.5rem;
  padding: 1.25em 2.5em;
}
.case.huge.circular.button {
  padding: 1.5rem;
  width: 2rem;
  height: 2rem;
}
.case.huge.circular.button .icon {
  font-size: 2rem;
  width: 2rem;
}
.case.massive.buttons .button,
.case.massive.button {
  font-size: 1.5rem;
  padding: 1.5em 3em;
}
.case.massive.circular.button {
  padding: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
}
.case.massive.circular.button .icon {
  font-size: 3rem;
  width: 3rem;
}
.case.compact.button {
  padding: 0.5rem 1rem;
}

/* Phone */
@media screen and (max-width: 30em) {
  .case.stacked.button {
    display: flex;
    flex: 1 1 0px;
    min-width: 0;
    margin-bottom: 0.25rem;
  }
  .case.buttons.stacked {
    display: flex;
    flex-direction: column;
  }
  .case.buttons.stacked .button {
    flex: 1 1 0px;
    min-width: 0;
    border-radius: 0.25rem;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
  }
  .case.buttons.stacked .button:first-child,
  .case.buttons.stacked .button:last-child {
    border-radius: 0.25rem;
  }
}
