#cardsRoot {
  margin: 30px 0 40px 0;
}

.card {
  --primary-text-color: #00939d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  padding-left: 20px;
}
.cardLeftContainer {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cardCheck {
  width: 18px;
  height: 18px;
  margin: 5px 10px;
  accent-color: var(--primary-text-color);
}
.cardThumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 120px;
  height: 120px;
}

.cardInfoContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 50%;
}

.cardNameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 50%;
  gap: 20px;
  font-size: 16px;
}

.cardName {
  font-family: sans-serif;
  text-decoration: none;
  color: var(--primary-text-color);
}
.cardSubname {
  font-family: sans-serif;
  border: 1px solid var(--primary-text-color);
  border-radius: 18px;
  padding: 4px 10px;
}

.cardSize {
  font-family: sans-serif;
  font-size: 18px;
  width: 50%;
  text-align: center;
}

.cardAmountContainer {
  display: flex;
  width: 120px;
  justify-content: space-between;
  align-items: center;

  border: 1px solid var(--primary-text-color);
  border-radius: 18px;
  height: 36px;
}

.cardAmountTxt {
  margin-left: 10px;
}

.cardAmountBtns {
  display: flex;
}
.cardAmountBtn {
  border: none;
  background-color: transparent;
  color: var(--primary-text-color);
  font-family: sans-serif;
  font-size: 18px;
  padding: 0 10px;
  height: 36px;
  transition: background-color 0.1s ease;
}

.cardAmountBtn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.cardAmountLastBtn {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.cartDeleteBtn {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
  transform: scale 0.2s ease;
}

.cartDeleteBtn:hover {
  scale: 1.06;
  cursor: pointer;
}

.cartDeleteIco {
  width: 40px;
}

@media (max-width: 950px) {
  .cardThumb {
    width: 80px;
    height: 80px;
  }

  .cardInfoContainer {
    width: 40%;
    margin-left: 10px;
    gap: 5px;
    justify-content: flex-start;
  }
  .cardNameContainer {
    width: 100%;
    gap: 5px;
    align-items: flex-start;
  }
  .cardSubname {
    text-align: start;
    padding: 0;
    border: none;
  }
  .cardName {
    text-align: start;
  }
  .cardSize {
    white-space: nowrap;
    width: 100%;
    text-align: start;
  }

  .cardAmountContainer {
    width: 120px;
  }

  .cardAmountTxt {
    margin-left: 10px;
    font-size: 14px;
  }

  .cardAmountBtn {
    font-size: 18px;
    padding: 0 8px;
    height: 36px;
  }
  .cartDeleteBtn {
    margin-left: 18px;
  }
}

@media (max-width: 600px) {
  .cardSubname {
    text-align: start;
    font-size: 13px;
    padding: 0;
    border: none;
  }
  .cardName {
    text-align: start;
    font-size: 13px;
  }
  .cardSize {
    white-space: nowrap;
    width: 100%;
    text-align: start;
    font-size: 13px;
  }

  .cardAmountContainer {
    width: 80px;
  }

  .cardAmountTxt {
    margin-left: 10px;
    font-size: 13px;
  }

  .cardAmountBtn {
    font-size: 13px;
    padding: 0 8px;
    height: 36px;
  }
  .cartDeleteBtn {
    margin-right: 18px;
  }
}
