@use './colors';

// Global element styles. Included by common.scss unless it's loaded with
// `$include-element-resets: false`, e.g. to put them in a cascade layer.

button {
  padding: 0;
  font-family: Roboto, sans-serif;
  background-color: transparent;
  border: none;
  cursor: pointer;

  &:active,
  &:focus {
    outline: none;
    box-shadow: none;
  }

  &:disabled {
    cursor: not-allowed;
  }
}

input,
textarea {
  overflow-x: hidden;
  font-weight: normal;
  font-size: 15px;
  font-family: Roboto, sans-serif;
  font-style: normal;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 0;
  color: inherit;
  background-color: transparent;
  padding: 0;
  resize: none;

  &::placeholder {
    color: colors.$spunPearl;
  }

  &::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: colors.$spunPearl;
  }

  &::-moz-placeholder {
    /* Firefox 19+ */
    color: colors.$spunPearl;
  }

  &:-ms-input-placeholder {
    /* IE 10+ */
    color: colors.$spunPearl;
  }

  &:-moz-placeholder {
    /* Firefox 18- */
    color: colors.$spunPearl;
  }

  &:disabled {
    background: transparent;
    cursor: not-allowed;
  }

  &:active,
  &:focus {
    outline: none;
    box-shadow: none;
  }
}

iframe {
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

*,
::after,
::before {
  box-sizing: border-box;
}
