/* tool css */
.tool {
  padding: 48px 0;
}
body.tool-template-default #menu-main {
  background-color: transparent ;
}
.tool .container {
  display: grid;
  grid-template-columns: 9fr 3fr;
  gap: 24px;
}
.tool .container::before {
  content: none !important;
  display: none !important;
}

.tool .container .tool__left {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.tool .container .tool__left .tool__left--ex {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool .container .tool__left .tool__left--ex .tool__title {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tool .container .tool__left .tool__left--ex .tool__title .title {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 36px;
  line-height: 43.2px;
  color: #014379;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.tool .container .tool__left .tool__left--ex .tool__title .title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #eeeeee;
}

.tool__amounttoword--input,
.tool__vn2nonaccent--input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool__top--input {
  display: flex;
  justify-content: space-between;
}
.tool__top--input .right {
  display: flex;
  gap: 32px;
  align-items: center;
}
.tool__top--input .right .paste img,
.tool__top--input .right .copy img,
.tool__top--input .right .trash img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.input__tool {
  border: 1px solid #1abc9c;
  border-radius: 10px;
  padding: 24px;
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 18px;
  line-height: 24.8px;
  color: #212121;
}
.result {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 18px;
  line-height: 24.8px;
  color: #212121;
}

.tool__top--input .left {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #616161;
}
.input__tool::placeholder {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 24px;
  line-height: 28.8px;
  color: #bdbdbd;
}
.submit__tool {
  display: flex;
  justify-content: center;
}
.submit__tool button {
  padding: 12px 24px;
  border-radius: 100px;
  background: #1abc9c;
  border: #1abc9c;
  display: flex;
  gap: 12px;
  align-items: center;
}
.submit__tool button p {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 14px;
  line-height: 18.2px;
  color: #ffffff;
  margin: 0;
}
.submit__tool button img {
  width: 24px;
  height: 24px;
}

.submit__vat button {
  padding: 12px 24px;
  border-radius: 100px;
  background: #1abc9c;
  border: #1abc9c;
  display: flex;
  gap: 12px;
  align-items: center;
}
.submit__vat button p {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 14px;
  line-height: 18.2px;
  color: #ffffff;
  margin: 0;
}
.submit__vat button img {
  width: 24px;
  height: 24px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: spin 0.5s linear;
}

.tool__amounttoword--output,
.tool__vn2nonaccent--output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool__top--output {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tool__top--output .left,
.tool__top--output {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #616161;
}
.tool__top--output .right {
  display: flex;
  align-items: center;
  gap: 32px;
}
#conversionCheckbox {
  margin: 0 !important;
}
.conversion-option {
  display: flex;
  gap: 4px;
  align-items: center;
}
.conversion-option label {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #616161;
  margin: 0 !important;
}
.tool__top--output .right .format {
  cursor: pointer;
  color: #1e88e5;
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 14px;
  line-height: 19.6px;
  letter-spacing: 0%;
  text-decoration: underline;
}
.tool__top--output .right .copy img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.result {
  border: 1px solid #1abc9c;
  border-radius: 10px;
  padding: 24px;
}
.result::placeholder {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 24px;
  line-height: 28.8px;
  color: #bdbdbd;
}
.tool__intro {
  margin: 8px 0 0;
}
.tool__intro-content {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #616161;
}
.tool__intro-content > *:first-child {
  margin-top: 0;
}
.tool__intro-content > *:last-child {
  margin-bottom: 0;
}
.tool__intro-content p,
.tool__intro-content ul,
.tool__intro-content ol,
.tool__intro-content blockquote {
  margin-bottom: 16px;
}
.tool__intro-content h1,
.tool__intro-content h2,
.tool__intro-content h3,
.tool__intro-content h4,
.tool__intro-content h5,
.tool__intro-content h6 {
  margin: 0 0 12px;
  font-family: Mulish-Regular;
  font-weight: 700;
  line-height: 1.35;
  color: #014379;
}
.tool__intro-content a {
  color: #014379;
  text-decoration: underline;
}
.tool__intro.is-collapsed .tool__intro-content {
  position: relative;
  max-height: 180px;
  overflow: hidden;
}
.tool__intro.is-collapsed .tool__intro-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}
.tool__intro.is-expanded .tool__intro-content {
  max-height: none;
}
.tool__intro.is-expanded .tool__intro-content::after {
  content: none;
}
.tool__intro-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  font-style: italic;
  color: #616161;
}
.tool__intro-toggle:hover {
  color: #616161;
}
.post__tool .toc-container {
  display: none;
}
.tool .post__tool {
  display: none;
}

.orther__tool {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.orther__tool span {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #616161;
}
.tool__title--ortherr {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool__title--ortherr span {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #616161;
}
.tool__title--ortherr p,
.tool__title--ortherr p a {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #014379;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}

/* right sidebar */
.tool__right {
  padding: 24px;
  background: #014379;
  border-radius: 16px;
  align-self: start; /* Đảm bảo nó chỉ cao vừa đủ với nội dung */
}

.tool__right .content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool__right .content h2 {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;

  color: #ffffff;
}
.tool__right .content p {
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}
.tool__right .content button {
  padding: 12px 28px;
  border-radius: 100px;
  background: #1abc9c;
  border: #1abc9c;
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: #ffffff;
}

.tool__vat--input {
  display: grid;
  grid-template-columns: 9fr 3fr;
  gap: 24px;
}
.tool__vat--input .left,
.tool__vat--input .right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vat-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-radio {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #7d7d7d;
  cursor: pointer;
  gap: 8px;
  position: relative;
}

.custom-radio input {
  display: none;
}

.radio-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c5c5c5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.radio-check::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #1abc9c;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.custom-radio input:checked + .radio-check {
  border-color: #1abc9c;
}

.custom-radio input:checked + .radio-check::after {
  transform: scale(1);
}

.box__ketqua {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #014379;
  border-radius: 10px;
}
.box__ketqua .amount {
  display: flex;
  justify-content: space-between;
}

.box__ketqua .amount span:first-child {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #616161;
}

.box__ketqua .amount span:last-child {
  padding: 12px;
  font-family: Mulish-Regular;
  font-weight: 400;
  font-size: 18px;
  line-height: 24.8px;
  color: #212121;
  background: #f5f5f5;
  border-radius: 12px;
}

/* toc css */
.toc-container {
  border: 1px solid #a5b7c5;
  padding: 16px;
  width: 100%;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-header span {
  display: flex;
  gap: 4px;
  align-items: center;
}
.toc-header span img {
  width: 18.29px;
  height: 16px;
  cursor: pointer;
}
.toc-header span p {
  font-family: Mulish-Regular;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #014379;
  margin: 0;
}

.toc-arrow {
  transition: transform 0.3s ease;
}

.toc-list {
  list-style: none;
  padding-left: 26px;
  margin-top: 8px;
  display: block;
}

.toc-list li {
  padding: 5px 0;
  font-family: Mulish-Regular;
}

.toc-list a {
  text-decoration: none;
  color: #003366;
  font-family: Mulish-Regular;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.toc-list a:hover {
  text-decoration: underline;
}

.toc-list.hidden {
  display: none;
}

.toc-arrow.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

@media screen and (max-width: 900px) {
  .tool .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 600px) {
  .tool .container .tool__left {
    gap: 30px;
  }
  .tool .container .tool__left .tool__left--ex .tool__title .title {
    font-size: 24px;
  }
  .tool__top--output .right {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .input__tool,
  .result {
    font-size: 16px;
  }
  .tool__top--output {
    flex-direction: column;
    gap: 20px;
  }
  .tool {
    padding: 40px 0;
  }
  .result::placeholder {
    font-size: 16px;
    line-height: 24px;
  }
  .input__tool::placeholder {
    font-size: 16px;
    line-height: 24px;
  }
  .tool__vat--input {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .box__ketqua .amount span:last-child {
    padding: 10px;
    font-family: Mulish-Regular;
    font-size: 14px;
    line-height: 28.8px;
    border-radius: 12px;
  }
}

.tool__top--input .right div,
.tool__top--output .right div {
  position: relative;
  display: inline-block;
}

.tool__top--input .right div:hover::after,
.tool__top--output .right div:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0.8;
  font-size: 12px;
}

.tool__top--output .right .format.active {
  font-family: Mulish-Regular;
  font-weight: 400;
  color: #014379;
  text-decoration: none;
 
}
