.pisell-sale-detail-voucher {
  margin-bottom: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;

  &__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }

  &__title-left {
    color: var(--base-black, #000);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    display: flex;
    flex-direction: column;
  }

  &__title-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #7f56d9;
    cursor: pointer;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
  }

  &__title-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    color: #7f56d9;
    display: flex;
    align-items: center;
    justify-content: center;

    &--show {
      transform: rotate(180deg);
    }
  }

  &__detail {
    width: 100%;
    transition: 0.2s;
    max-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;

    &--show {
      max-height: unset;
    }
  }

  &__code-wrapper {
    margin-top: 6px;
    display: flex;
    width: 100%;
    padding: 8px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--Gray-300, #d0d5dd);
    background: #fff;
  }

  &__empty {
    margin: 12px 0;
  }

  &--desktop,
  &--tablet,
  &--pos {
    .pisell-sale-detail-voucher__code-wrapper {
      height: 50px;
    }
  }

  &__code-input {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;

    .pisell-lowcode-input-affix-wrapper,
    .pisell-lowcode-input {
      flex: 1;
      min-width: 0;
    }
  }

  &__code-label {
    color: var(--Gray-500, #667085);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    margin-right: 8px;
    white-space: nowrap;
  }
}

.pisell-sale-detail-voucher-container {
  .pisell-sale-detail-voucher-container__content {
    width: 100%;
  }

  &--drawer {
    .pisell-lowcode-drawer-body {
      max-height: 80dvh;
      overflow: auto;
    }
  }

  &--hidden {
    pointer-events: none;
  }
}
