body, html {
  margin: 0;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.container {
  max-width: 1280px;
  width: 100%;
  padding: 60px;
  margin: 0 auto;
  box-sizing: border-box;
}

.crop-container {
	margin-bottom: 40px;
  position: relative;
}

#upload {
	display: none;
  appearance: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
  padding: 12px 24px;
  box-sizing: border-box;
	background: #53F0CE;
	font-size: 16px;
	text-decoration: none;
	color: #262626;
}

.loader {
	display: none;
}

.success-msg {
	display: none;
}

.error-msg {
	display: none;
	color: red;
}

.upload-block {
	position: relative;
}

body.ready #upload {
	display: inline-block;
}

body.loading #upload {
	display: none;
}

body.loading .loader {
	display: inline-block;
}

body.success .success-msg {
	display: block;
}

body.error .error-msg {
	display: block;
}

body.ready-to-copy .clipboard-btn {
  opacity: 0.5;
  visibility: visible;
}

label {
  display: block;
  box-sizing: border-box;
}

label span {
  display: block;
  padding-bottom: 8px;
  box-sizing: border-box;
}

input[type="text"] {
  outline: none;
  width: 100%;
  height: 42px;
  line-height: 42px;
  appearance: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid #cdcdcd;
  padding: 0 12px;
  box-sizing: border-box;
}

form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.item {
  display: flex;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e9e9e9;
  box-sizing: border-box;
  width: 520px;
  position: relative;
}

.item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

#crop_image {
  display: block;
  width: 100%;
  height: 400px;
  background: #f2f2f2;
  position: relative;
}

.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #f2f2f2;
  background-image: url('https://files.mojam.co/signature/assets/img/spinner.svg');
  background-size: 24px 24px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  z-index: 2;
}

.hidden {
  display: none;
}

.clipboard-btn {
  position: absolute;
  top: -32px;
  right: 0;
  display: block;
  width: 24px;
  height: 24px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-image: url('https://files.mojam.co/signature/assets/img/clipboard.svg');
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
  opacity: 0;
  visibility: hidden;
}

.clipboard-btn.active {
  opacity: 1 !important;
}

.clipboard-btn.active .hint {
  display: flex;
}

.clipboard-btn:hover {
  opacity: 1 !important;
}

.hint {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  display: flex;
  padding: 6px 12px;
  border-radius: 4px;
  color: #000;
  font-size: 14px;
  opacity: 1;
  display: none;
}