.calculate-tax-section {
  display: grid;
  gap: 20px;
  width: min(1150px, 100% - 10px);
  padding: 40px 10px;
  scroll-snap-align: center;

  & > h1 {
    width: 100%;
    color: var(--blue-darkest);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    text-align: center;
  }

  & > p {
    width: 100%;
    color: var(--blue-darker);
    text-align: center;
  }
}

.open-info-tax {
  position: absolute;
  right: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(200px, 100%);
  padding: 10px;
  border-radius: var(--rounded-lg);
  background-color: var(--blue-shadow);
  color: var(--white);
  font-size: var(--text-sm);

  & > button {
    padding: 10px;
    border-radius: var(--rounded-lg);
    background-color: var(--blue-dark);
  }
}

.close-info-tax {
  display: none;
}

.form-calculate-tax {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  width: min(900px, 100%);
  margin: auto;

  & div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    width: min(600px, 100%);
    margin: auto;
  }

  & label {
    display: grid;
    width: min(280px, 100%);
    color: var(--blue-sapphire);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
  }

  & input {
    border-bottom: 1px solid var(--blue-sapphire);
    font-weight: var(--font-regular);
    outline: none;
  }
}

.form-calculate-tax > button {
  width: min(180px, 100%);
  height: 50px;
  margin: auto;
  border-radius: var(--rounded-lg);
  background-color: var(--blue-darkest);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.form-calculate-tax > button:disabled {
  opacity: 0.7;
}

.table-calculate-tax {
  width: min(690px, 100%);
  margin: 20px auto 0;
}

.table-calculate-tax > thead > tr > th {
  width: min(330px, 16dvw);
  max-width: 16dvw;
  padding: 5px;
  background-color: var(--blue-sapphire);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.table-calculate-tax > thead > tr > th:first-child {
  width: 100px;
  border-radius: var(--rounded-lg) 0 0 0;
}

.table-calculate-tax > thead > tr > th:last-child {
  border-radius: 0 var(--rounded-lg) 0 0;
}

.table-calculate-tax > tbody > tr > td {
  width: min(330px, 16dvw);
  max-width: 16dvw;
  padding: 5px;
  border-bottom: 1px solid rgb(0 0 0 / 40%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-calculate-tax > tbody > tr,
.table-tax-result > tbody > tr {
  border-right: 1px solid rgb(0 0 0 / 40%);
}

.table-calculate-tax > tbody > tr > td:first-child {
  width: 100px;
  background-color: var(--blue-sapphire);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.table-tax-result {
  width: min(400px, 100%);
  margin: 20px auto;
}

.table-tax-result > thead > tr > th:first-child {
  width: 100%;
  padding: 5px;
  border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
  background-color: var(--blue-sapphire);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.table-tax-result > tbody > tr {
  border-bottom: 1px solid rgb(0 0 0 / 40%);
}

.table-tax-result > tbody > tr > td:first-child {
  width: min(50px, 16dvw);
  max-width: 20dvw;
  padding: 5px;
  background-color: var(--blue-sapphire);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.table-tax-result > tbody > tr > td:last-child {
  width: 100%;
  max-width: 75dvw;
  padding: 5px;
}

.table-tax-result > tbody > tr:first-child > td:last-child {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.info-view-tax {
  position: relative;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: var(--rounded-full);
  background-color: var(--blue-darker);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-align: center;
}

#info-view-tax-checkbox {
  width: 0;
  visibility: hidden;
  position: absolute;
}

@media (width >= 28rem) {
  .table-calculate-tax > * {
    font-size: var(--text-base);
  }
}

@media (width >= 64rem) {
  .open-info-tax {
    top: -35px;
    right: -320px;
    width: 300px;
  }
}
