body {
  min-width: 0px;
}

.calculator {
  width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
  background: linear-gradient(273.25deg, #FFD44A 36.78%, rgba(255, 247, 67, 0.94) 96.77%);
}

.calc-header span {
  font-size: 11px;
}

.content {
  padding: 15px 20px;
}

.content__title {
  font-size: 16px;
  font-weight: 700;
}

.content__description {
  font-size: 12px;
  margin-top: 10px;
}

.top-coins {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.top-coin {
  display: flex;
  align-items: center;
  padding: 2px 8px 2px 2px;
  background: #EBEBEB;
  border-radius: 30px;
  margin-right: 10px;
  font-size: 11px;
  cursor: pointer;
}

.top-coin__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.top-coin__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 15px;
  grid-column-gap: 20px;
  margin-top: 20px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-item label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #989898;
  margin-bottom: 5px;
}

.tooltip {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: static;
  opacity: 1;
  z-index: 1;
}

.form-item label .tooltip, .result-item .tooltip {
  margin-left: 5px;
}

.tooltip img {
  width: 16px;
  height: auto;
}

.form-item input {
  font-size: 14px;
  border: 1px solid #BBBBBB;
  border-radius: 30px;
  padding: 5px 15px;
  outline: none;
  box-shadow: none;
  width: 100%;
}

.result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 20px;
  grid-column-gap: 15px;
  padding: 20px 25px;
  background: #F3F3F3;
  align-items: start;
  justify-items: start;
}

.result-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 5px;
}

.result-value {
  font-weight: 700;
  color: #9C9C9C;
  font-size: 18px;
}

.profit {
  display: flex;
  align-items: center;
}

.profit-percent {
  font-size: 14px;
  font-weight: 400;
  margin-left: 5px;
}

.result-item .positive {
  color: #46CA93;
}

.result-item .negative {
  color: #FE8484;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Select */
.select {
  position: relative;
  z-index: 100;
}

.select__header {
  display: flex;
  align-items: center;
  height: 31px;
  font-size: 14px;
  border: 1px solid #BBBBBB;
  border-radius: 18px;
  padding: 7px 30px 7px 15px;
  cursor: pointer;
}

.select__current {
  display: flex;
  align-items: center;
}

.select.active .select__header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select.active .select__body {
  display: block;
}

.select.active .select__indicator {
  transform: translateY(-50%) rotate(180deg);
}

.select__indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.select__body {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border: 1px solid #BBBBBB;
  border-top: none;
  background: #FFFFFF;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  max-height: 200px;
  overflow-y: auto;
}

.select__item {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  cursor: pointer;
  transition: background .1s ease-in-out;
  font-size: 14px;
}

.select__item:hover {
  background: rgba(117, 120, 149, 0.1);
}

.select__icon {
  display: flex;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.select__icon svg, .select__icon img {
  max-width: 16px;
  height: auto;
  max-height: 16px;
}

@media screen and (max-width: 768px) {
  .calculator {
    width: 300px;
  }

  .form {
    grid-column-gap: 10px;
  }

  .form-item label {
    font-size: 12px;
  }

  .form-item input {
    padding: 3px 15px;
  }

  .result-label {
    font-size: 12px;
  }

  .result-value {
    font-size: 16px;
  }

  .select__header {
    height: 27px;
  }
}
