.calc-block {
}

.calc-block {
  margin-bottom: 60px;
}

.calc-block .calculator {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.calc-block .form-input {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border: 2px solid var(--text_primary_head);
  padding: 15px;
  border-radius: 10px;
}

.calc-block .form-input.result-input .input-title {
  color: var(--primary);
}

.calc-block .form-input .input-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.calc-block .form-input .input-value {
  width: 100%;
  /* margin-top: auto; */
}

.calc-block .form-input .result-text {
  width: 100%;
  height: 100%;
  max-height: 200px;
  resize: none;
  font-weight: 500;
  display: flex;
  padding: 12px 40px 12px 15px;
  font-size: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.calc-block .form-input .result-text * {
  font-size: 18px;
  font-weight: 600;
  color: var(--background_alt_main);

}

.calc-block .form-input input,
.calc-block .form-input select {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  height: 50px;
  border-color: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--primary);
  color: var(--background_alt_main);
  padding: 10px;
}

/* Стилизация select */

select {
  appearance: none;
  @supports (appearance: base-select) {
    &,
    &::picker(select) {
      appearance: base-select;
    }
  }
}

select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding-block: 10px;
  padding-inline: 10px 30px;
  border-radius: 5px;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-weight: 700;
  @supports (appearance: base-select) {
    padding-inline: 10px;
    background-image: none;
    &::picker-icon {
      content: "";
      width: 20px;
      height: 20px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFF' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
      transition: rotate 0.2s ease-out;
      background-repeat: no-repeat;
      filter: invert(1);
    }
    &:open::picker-icon {
      rotate: 180deg;
    }
    &::picker(select) {
      padding: 0;
      margin-top: 5px;
      border: 2px solid var(--primary);
      background: white;
      border-radius: 5px;
      font-weight: 400;

      opacity: 0;
      height: 0;
      overflow: clip;
      transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s,
        display 0.5s;

      transition-behavior: allow-discrete;
    }
    &:open::picker(select) {
      opacity: 1;
      height: calc-size(auto, size);
      overflow: auto;
      @starting-style {
        opacity: 0;
        height: 0;
      }
    }
    option {
      padding: 10px;
      border-top: 1px solid var(--primary);
      cursor: pointer;
      transition-property: color, background;
      transition-duration: 0.2s;
      transition-timing-function: ease-out;
      &:where(:hover, :active) {
        background: var(--primary);
        color: white;
      }
      &:checked {
        background: var(--primary);
        color: white;
      }
      &::checkmark {
        display: none;
      }
      &:first-child {
        border: 0;
      }
    }
  }
}

/* @media (max-width: 1025px) {
  .calc-block .calculator {
    grid-gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
} */

@media (max-width: 498px) {
  .calc-block .calculator {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=block.css.map */
