.wrapper {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  flex-direction: column;
  border: 1px solid #273773;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding: 15px 10px; */
  color: #fff;
  background-color: #273773;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  text-transform: uppercase;
}

.title h2 {
  font-size: 16px;
  padding: 0;
  margin: 0;
  width: 100%;
}

.data {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.data-wrapper {
  position: relative;
  padding: 10px 0 20px 0;
}
.data-wrapper .overlay {
  display: none;
}
.data-wrapper .overlay.visible {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0000004a;
  top: 0;
  bottom: 0;
  border-radius: 0 0 8px 8px;
}

.form-field {
  display: flex;
  padding: 10px 0;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  position: relative;
  gap: 5px;
}

.form-field.twofields {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.form-field.twofields .input {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 50%;
}

.form-field .info {
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: 100%;
  bottom: -9px;
  font-size: 12px;
}

.form-field .info .swap-container {
  display: flex;
  gap: 5px;
}

.result {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: aliceblue;
  width: 200px;
  margin: 0 auto;
  padding: 15px;
  align-items: center;
}

.calculator-selector {
  position: relative;
  width: 100%;
}

.calculator-selector span {
  cursor: pointer;
  font-weight: 600;
}
.calculator-selector span.title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
}

.calculator-selector ul li::before {
  content: none;
}

.calculator-selector ul li {
  text-align: start;
  text-transform: capitalize;
  padding-inline-start: 0;
}

.calculator-selector ul li a {
  color: #273773;
  text-decoration: none;
  font-weight: bold;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip svg {
  width: 16px;
  position: absolute;
  left: 5px;
  top: -25px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 160px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 0;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.calculator-selector ul {
  display: none;
  flex-direction: column;
  position: absolute;
  z-index: 2;
  background: #fff;
  padding: 20px 40px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  left: auto;
  width: 100%;
  list-style: none;
}

.calculator-selector ul.open {
  display: flex;
  gap: 8px;
  min-width: 260px;
  margin: 0;
}

.wrapper .calculator {
  width: 100%;
  padding: 0 40px;
}
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
form#calculator label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0;
  font-weight: 600;
  width: 100%;
}
form#calculator label span.small {
  font-size: 10px;
  margin-left: auto;
}

form#calculator .inputs.font-regular label {
  font-weight: 500;
}

form#calculator {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

form#calculator .fields {
  display: flex;
  gap: 20px;
}

form#calculator input[type="text"] {
  overflow: visible;
  display: block;
  width: 100%;
  height: calc(1.5em + 2px + 0.75rem);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgb(73, 80, 87);
  background-color: rgb(255, 255, 255);
  background-clip: padding-box;
  padding: 0.375rem 0.75rem;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(206, 212, 218);
  border-image: initial;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
}

form#calculator .form-row {
  width: 100%;
  gap: 20px;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
}

form#calculator .form-row .inputs {
  display: flex;
  gap: 1rem;
  height: 100%;
}

form#calculator .form-row .inputs .item {
  display: flex;
  gap: 6px;
}

form#calculator .form-row .inputs .item input[type="radio"] {
  margin-bottom: 0;
}

form#calculator #symbol {
  text-transform: uppercase;
}
form#calculator #symbol optgroup {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #f2f2f2;
  background-color: #273773;
  width: 100%;
}
.title .calculator-selector svg {
    display: none;
}
.title .calculator-selector svg.visible {
    display: block;
}

form#calculator #symbol optgroup option {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background: #fff;
}
form#calculator #conversion-rate {
  padding: 0.375rem 0;
}

.result-swap {
  display: flex;
  /* flex-direction: column; */
  padding: 16px;
  background: aliceblue;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.form-field.tradeTypeButtons {
  justify-content: flex-end;
}

.form-field.tradeTypeButtons label {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: 5px;
  background: aliceblue;
}

.form-field.tradeTypeButtons .item input:checked + label {
  background: #fbaf17;
  color: #000;
  font-weight: bold;
}

form#calculator .form-row .form-field.tradeTypeButtons .inputs {
  gap: 0;
  height: 38px;
}

form#calculator .form-row .form-field.tradeTypeButtons .inputs .item label {
  margin-bottom: 0;
}

form#calculator
  .form-row
  .form-field.tradeTypeButtons
  .inputs
  .item
  input[type="radio"] {
  display: none;
  margin-bottom: 0;
}

.cvratelabel {
  font-size: 13px;
  color: #5f5f5f;
  margin-top: 4px;
  padding-left: 2px;
}

form#calculator .cvratelabel span#conversion-rate {
  padding: 0;
}

.results {
  display: flex;
  /* flex-direction: column; */
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.results .result_ttl {
  font-weight: 600;
}

.results .box {
  box-shadow: 0px 0px 5px #e9e9e9;
  padding: 20px;
  /* width: 100%; */
  min-width: 160px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  margin: 0;
  align-items: center;
}

input[type="radio"]:after {
  width: 15px;
  height: 15px;
  border-radius: 15px;
  position: relative;
  background-color: #f8fff8;
  content: "";
  display: inline-block;
  visibility: visible;
  border: 1px solid #273773;
}

input[type="radio"]:disabled:after {
  background-color: #8f8c8c;
  border: 1px solid #c9cac9;
}

input[type="radio"]:disabled + label {
  color: #c7c7c7;
}

input[type="radio"]:checked:after {
  width: 15px;
  height: 15px;
  border-radius: 15px;
  top: 0;
  left: 0;
  position: relative;
  background-color: #ffb401;
  content: "";
  display: inline-block;
  visibility: visible;
  border: 1px solid #273773;
}

@media (min-width: 768px) {
  .calculator-selector ul {
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 2;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 6px 6px;
    width: 100%;
  }
}

@media (min-width: 992px) {
  input[type="radio"]:after {
    top: 9px;
  }

  input[type="radio"]:checked:after {
    top: 9px;
  }

  form#calculator .fields {
    flex-direction: column;
    gap: 0;
  }

  .form-control {
    height: calc(1.33em + 0.75rem + 2px);
    padding: 0.175rem 0.35rem;
    font-size: 16px;
  }

  .animationbtn {
    padding: 10px 10px;
    margin-top: 16px;
  }

  .result {
    margin-bottom: 20px;
  }

  form#calculator .form-row {
    display: flex;
  }

  .form-field {
    display: flex;
    padding: 10px 0;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
}
