/**BUTTONS**/
.m2-button {
  border-radius: 4px;
  border: 1px solid #5c6bc0;
  color: #5c6bc0;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  min-width: 64px;
  text-transform: uppercase;
  padding: 13px 24px;
  min-width: 72px;
  background: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .125s ease-in-out;
}
.m2-button:hover {
  background-color: rgba(92, 107, 193, .25);
}
.m2-button:disabled {
  cursor: default;
}
.m2-button.with-loader {
  position: relative;
}
.m2-button.small {
  padding: 8px 12px;
}
.m2-button.white {
  color: #fff;
  border-color: #fff;
}
.m2-button.white:hover {
  background-color: rgba(255, 255, 255, .25);
}
.m2-button.full {
  background-color: #5c6bc0;
  color: #fff;
}
.m2-button.black {
  color: rgba(0, 0, 0, .82);
  border-color: rgba(0, 0, 0, .82);
}
.m2-button.black:hover {
  background-color: rgba(0, 0, 0, .25);
}
.m2-button:disabled {
  border-color: #cecece;
  color: #cecece;
}
.m2-button.full:disabled {
  background-color: #cecece;
  border-color: #cecece;
  color: #fff;
}
.m2-button.full:hover {
  background-color: rgba(92, 107, 193, .25);
  color: #5c6bc0;
}
.m2-button.full:hover:disabled {
  color: #fff;
  background-color: #cecece;
  border-color: #cecece;
}
.m2-button:hover:disabled {
  background-color: transparent;
}
.m2-button.flat {
  border: none;
}
.m2-button.icon {
  position: relative;
}
.m2-button.icon i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.m2-button.icon-right {
  padding-right: 42px;
}
.m2-button.icon-right i {
  right: 8px;
}
.m2-button.icon-left {
  padding-left: 42px;
}
.m2-button.icon-left i {
  left: 8px;
}

/*INPUT-FIELDS*/
.m2-input-field {
  width: 100%;
  height: 25px;
  position: relative;
  padding-top: 14px;
  padding-bottom: 12px;
  margin: 20px 0;
}
.m2-input-field input, .m2-input-field p.input[contenteditable="true"] {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 6px 8px;
  text-align: left;
  outline: none;
  margin: 0;
  border-radius: 8px;
  width: calc(100% - 16px - 2px);
  height: 24px;
  border: 1px solid #d7d7d7;
  background: none;
  background-color: #fff;
  transition: border .125s ease-in-out;
}
.m2-input-field input:disabled {
  background-color: #dedede;
  cursor: default;
}
.m2-input-field textarea, .m2-input-field p.textarea[contenteditable="true"] {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 0;
  text-align: left;
  outline: none;
  border: none;
  margin: 0;
  width: calc(100% - 16px - 2px);
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: none;
  background-color: #fff;
  padding: 6px 8px;
  height: 238px;
  resize: none;
}
.m2-input-textarea {
  height: 240px;
}
.m2-input-textarea-small {
  height: 60px;
}
.m2-input-textarea-small textarea, .m2-input-field p.textarea[contenteditable="true"] {
  height: 58px;
}
.m2-input-textarea-medium {
  height: 140px;
}.m2-input-textarea-medium textarea, .m2-input-field p.textarea[contenteditable="true"] {
  height: 138px;
}
.m2-input-textarea-popup textarea, .m2-input-field p.textarea[contenteditable="true"] {
  height: 78px !important;
}
.m2-input-textarea-popup {
  height: 80px;
}
.m2-input-field span {
  position: absolute;
  top: 22px;
  left: 8px;
  transform: none;
  transform-origin: bottom left;
  color: #737373;
  transition: transform .125s ease-in-out;
  padding: 0 4px;
  background-color: #fff;
}
.m2-input-field div {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  background-color: #5c6bc0;
  transition: transform .125s ease-in-out;
  z-index: 777;
}
.m2-input-field h5 {
  color: #d50000;
  font-weight: 400;
  font-size: 12px;
  margin: 6px 0 0 0;
  margin-top: 4px;
  text-align: left;
  opacity: 0;
  transition: opacity .125s ease-in-out;
}
.m2-input-field.error h5 {
  opacity: 1;
}
.m2-input-field.active input, .m2-input-field.active textarea {
  border-color: #5c6bc0;
}
.m2-input-field.error input, .m2-input-field.error textarea {
  border-color: #d50000;
}
.m2-input-field.active span, .m2-input-field.filled span {
  transform: scale(0.75) translateY(-30px);
  color: #5c6bc0;
}
.m2-input-field.error span {
  transform: scale(0.75) translateY(-30px);
  color: #d50000 !important;
}

.m2-tooltip {
  position: relative;
}
.m2-tooltip .tooltiptext {
  border-radius: 5px;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, .9);
  color: #000;
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  margin: 0;
  z-index: 9999;
  position: absolute;
  opacity: 0;
  transition: opacity .125s ease-in-out, transform .125s ease-in-out;
}
.m2-tooltip:hover .tooltiptext {
  opacity: 1;
}
.m2-tooltip-bottom .tooltiptext {
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) scale(0);
}
.m2-tooltip-bottom-right .tooltiptext {
  right: 0;
  top: calc(100% + 10px);
  transform: scale(0);
}
.m2-tooltip-bottom-left .tooltiptext {
  left: 0;
  top: calc(100% + 10px);
  transform: scale(0);
}
.m2-tooltip-top .tooltiptext {
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0);
}
.m2-tooltip-left .tooltiptext {
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%) scale(0);
}
.m2-tooltip-right .tooltiptext {
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%) scale(0);
}
.m2-tooltip-bottom:hover .tooltiptext, .m2-tooltip-top:hover .tooltiptext {
  transform: translateX(-50%) scale(1);
}
.m2-tooltip-bottom-right:hover .tooltiptext, .m2-tooltip-bottom-left:hover .tooltiptext,
.m2-tooltip-top-right:hover .tooltiptext, .m2-tooltip-top-left:hover .tooltiptext {
  transform: scale(1);
}
.m2-tooltip-left:hover .tooltiptext, .m2-tooltip-right:hover .tooltiptext  {
  transform: translateY(-50%) scale(1);
}
