.pisell-line-item-wrapper {
  border-radius: 12px;
  background: var(--Base-White, #fff);
  border: 1px solid var(--Gray-300, #d0d5dd);
  overflow: hidden;
}

.pisell-line-item {
  padding: 0;
  border-radius: inherit;
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;

  &__delete-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--Gray-300, #d0d5dd);
    border-radius: 8px;
    background: var(--Gray-100, #f2f4f7);
    color: var(--Gray-500, #667085);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    > span {
      color: currentColor;
      font-size: 20px;
    }

    &--inline {
      width: auto;
      height: auto;
      border: none;
      border-radius: 0;
      background: transparent;
      color: #667085;
      padding: 10px;

      > span {
        color: currentColor;
        font-size: 20px;
      }
    }
  }

  &__swipe-delete {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    padding: 10px 0;
    gap: 4px;

    > span {
      font-size: 12px;
      font-weight: 500;
    }
  }

  &__swipe-delete-icon {
    font-size: 20px;
    line-height: 1;
  }

  &__booking-header {
    background: var(--pisell-line-item-header-color, #2453a6);
    padding: 10px 12px;
  }

  &__booking-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  &__booking-title {
    min-width: 0;
    color: #101828;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__booking-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  &__status {
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #101828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    min-width: 104px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);

    .pisell-lowcodeicon-down,
    .anticon {
      font-size: 12px;
    }

    &:hover,
    &:focus,
    &:active {
      border-color: rgba(16, 24, 40, 0.18);
      background: rgba(255, 255, 255, 0.86);
      color: #101828;
    }

    &:disabled {
      border-color: rgba(16, 24, 40, 0.12);
      background: rgba(255, 255, 255, 0.72);
      color: #101828;
      cursor: default;
    }
  }

  &__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pisell-line-item-status-color, #91caff);
    flex-shrink: 0;
  }

  &__status-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__booking-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }

  &__booking-detail--with-delete {
    position: relative;

    .pisell-line-item__booking-detail-content {
      padding-right: 40px;
    }

    .pisell-line-item__delete-btn--inline {
      position: absolute;
      top: 0;
      right: 0;
    }
  }

  &__booking-detail-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  &__booking-field {
    min-width: 0;
  }

  &__booking-field-label {
    margin-bottom: 4px;
    color: var(--Gray-500, #667085);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    > span:first-child {
      font-size: 14px;
      line-height: 1;
    }
  }

  &__booking-field-value {
    color: var(--Gray-900, #101828);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__related-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  &__section-title {
    color: #101828;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
  }

  &__related-product-card {
    padding: 4px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    .pisell-cart-sku-card__packages-wrap {
      padding: 0;
    }
  }
}
