#invoice-container {
  &:has(.checkbox-container) {
    border: 0.5px solid rgb(0 43 16 / 16%);
    box-shadow: 0 1px 2px 0 rgb(0 43 16 / 10%);
    padding: 24px 18px;
    margin-block: 24px;
  }

  .invoice-accordion-container {
    min-height: 11px;
  }

  .checkbox-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-block: 2rem;
  }

  label {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
  }

  ul {
    margin-block: 0;

    li {
      padding-left: 0;
      margin-bottom: 0;
      margin-top: 0;
    }
  }

  h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 22px;
  }

  h5 {
    margin-top: 0;
    margin-bottom: 0;
  }

  input:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb !important;
    outline: none;
  }

  input[type="text"] {
    font-size: 16px;
    width: 100%;
    background: #6f92705e;
    border: 1px solid #000;
    color: #000;
    padding: 8px 13px;
    transition: all 0.2s;
    margin-top: 1rem;
    margin-bottom: 0;
    max-width: 300px;

    &::placeholder {
      color: #000;
    }
  }

  /* &:has(.invoice-accordion) { */

  /*  input[type="text"] { */

  /*    margin-bottom: 2rem; */

  /*  } */

  /* } */

  label {
    position: relative;

    &::before {
      content: "";
      display: inline-block;
      width: 24px;
      height: 24px;
      border: 1px solid #000;
      background: #6f92705e;
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    &:has(input[type="checkbox"]:checked) {
      &::after {
        content: "✓";
        display: inline-block;
        position: absolute;
        z-index: 1;
        top: 1px;
        left: 6px;
        color: #222;
        font-weight: bold;
      }
    }
  }

  input[type="checkbox"] {
    border-radius: 0;
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0;
    appearance: none;
  }

  .invoice-accordion {
    margin-bottom: 1rem;
    border-block: 1px solid #777;

    .invoice-accordion-header {
      border: none;
      color: #002b10;
      font-weight: 700;
      padding: 4px 32px 4px 4px;
      width: 100%;
      text-align: left;
      cursor: pointer;
      position: relative;

      span:not(:last-of-type) {
        &::after {
          content: " - ";
        }
      }
    }

    .accordion-icon {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-weight: 400;
      font-size: 21px;
    }

    .invoice-accordion-content {
      padding: 20px 4px;

      @media screen and (width >= 1140px) {
        padding: 8px 4px 20px;
      }

      .invoice-accordion-content-grid {
        display: grid;
        gap: 2rem;

        @media screen and (width >= 1140px) {
          grid-template-columns: 1fr 1fr;
          padding: 0 4px;
        }

        > div {
          display: flex;
          flex-direction: column;
          gap: 2rem;

          /* padding-bottom: 2rem; */
          padding-top: 0;

          @media screen and (width >= 1140px) {
            padding-top: 20px;
            gap: 0.5rem;
          }
        }
      }

      .left {
        border-bottom: 1px solid #f3e5e6;
        padding-bottom: 2rem;

        @media screen and (width >= 1140px) {
          border-right: 1px solid #f3e5e6;
          border-bottom: none;
          padding-right: 2rem;
          padding-bottom: 0;
        }
      }
    }

    .invoice-accordion-content-footer {
      border-bottom: 1px solid #f3e5e6;
      padding: 0 4px 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-bottom: 20px;

      @media screen and (width >= 1140px) {
        /* justify-content: center; */
        margin-bottom: 0;
        padding: 20px 4px;
      }
    }

    .invoice-accordion-sub-content {
      display: grid;
      gap: 0.5rem;

      @media screen and (width >= 768px) {
        grid-template-columns: 200px 1fr;
        gap: 1rem;
      }
    }
  }

  #loading {
    width: 43px;
    height: 11px;
    background: url("../img/loader.gif") 50% no-repeat;
  }
}
