.itemContainer {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  border: 1px solid #e3ece6;
  border-radius: 12px;
  background: var(--brand-sage-50, #F0F6F2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); border-color: #d9e6de; }

.item:not(.itemInvoice) {
  /* border-top: 2px solid #00000017; */
}

.notLast{
  padding-bottom: 10px;
  border-bottom: 2px solid #00000017;
}

.itemInvoice {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  font-size: 18px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-top: 0px;
}

.itemInvoice:last-child {
  margin-bottom: 0; /* Remove margin-bottom for the last child */
}

.itemImage {
  width: 100%;
  height: 100%;
}

.imageContainer {
  position: relative;
  width: clamp(68px, 18vw, 96px);
  height: clamp(68px, 18vw, 96px);
  border-radius: 10px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 15px;
  left: 8px;
  right: 8px;
  bottom: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 3.3vw;
}

.overlay:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.fileInput {
  display: none;
}

.itemDetails {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  margin-left: 6px;
  margin-right: 6px;
  flex: 1;
  min-width: 0;
}
.infoRow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

.itemInvoiceDetails {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 10px;
  margin-top: -15px;
  flex-grow: 1;
}

.itemName {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  width: calc(100% - 15px); /* Adjust the width to prevent overflow */
  font-size: 5vw;
  font-weight: 500;
  margin-top: 0;
  margin: 0 5px;
  color: rgba(88, 55, 50, 1);
  background-color: transparent;
  text-transform: capitalize;
}

.itemInvoiceName {
  width: calc(260% - 15px);
  background-color: transparent;
  font-size: 1.3rem;
  font-weight: 500;
}

.multiplySymbol {
  font-weight: 600;
}

.qtyInvoice {
  font-weight: 500;
}

.itemPrice { display: none; }

.itemPriceInvoice {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 5px;
  color: #d9c61c;
  text-align: right;
  margin-top: 22px;
}

.itemQty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
}

.itemQtyValue {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  margin-top: 19px;
  margin-left: 1px;
  margin-right: 1px;
  width: 25px;
  text-align: center;
}

.itemQtyInput {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  width: 30px; /* Adjust the width to prevent overflow */
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-align: center;
  background-color: transparent;
}

.addButton {
  background-color: var(--brand-sage, #6B8F71);
  border: 1px solid var(--brand-sage, #6B8F71);
  color: #ffffff;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 84px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px; /* square rounded corner */
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.addButton:hover { background-color: var(--brand-sage-hover, #7FAE7D); border-color: var(--brand-sage-hover, #7FAE7D); }
.addButton:disabled { background-color: var(--brand-sage-muted, #CFD8D3); border-color: var(--brand-sage-muted, #CFD8D3); cursor: default; }
.grayscale {
  filter: grayscale(100%);
}

.disabled {
  color: gray;
}
.plusNegative {
  width: 30px;
  height: 30px;
}

.plusNegative2 {
  width: 84px;
  height: 21px;
  position: absolute;
  transform: rotate(45deg);
  left: -33px;
  top: 21px;
}
.remove {
  width: 25px;
  height: 25px;
  margin-top: -10px;
  margin-right: 10px;
}

/* New elements for clean cafe item card */
.title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #2d2d2d;
  margin: 0 0 2px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-transform: capitalize;
  text-align: left;
  flex: 1; min-width: 0;
}

/* Responsive type scale for title and price */
@media (min-width: 600px) {
  .title { font-size: 17px; }
  .priceNow { font-size: 15px; }
}
@media (min-width: 992px) {
  .title { font-size: 18px; }
  .priceNow { font-size: 16px; }
}
.desc {
  color: #5f5f5f;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}
.priceRow { display: inline-flex; align-items: center; gap: 8px; }
.promoBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to right, #e52535, #fe6d78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.priceNow {
  color: #1c1d1d;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.priceOld {
  color: #727272;
  font-size: 12px;
  text-decoration: line-through;
  white-space: nowrap;
}
.qtyGroup {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 10px; /* square rounded corners */
  height: 32px;
  overflow: hidden;
}
.qtyBtn {
  width: 34px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-sage, #6B8F71);
  border: none;
}
.qtyBtn:hover { background: var(--brand-sage-50, #F0F6F2); }
.qtyVal {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #2d2d2d;
}

.itemInvoice .itemDetails {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.itemInvoice .itemName,
.itemInvoice .itemPrice,
.itemInvoice .itemQty .qtyInvoice .multiplySymbol {
  font-size: 0.9rem;
}

.blank {
  border: 1px solid #000000;
}

.notblank {
  border: 1px solid #ffffff00;
}

.createItem {
  position: absolute;
  left: 15px;
  right: 15px;
}
