/* Moved from inline styles in cart_page.php */
.cart-box-choice {
  cursor: pointer;
  text-decoration: underline;
  padding: 1.5rem 0;
  width: 100%;
  text-align: end;
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0B0A0A;
}
.cart-box-choice-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.cart-box-choice-popup .cbc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cart-box-choice-popup .cbc-modal {
  position: relative;
  max-width: 680px;
  margin: 5vh auto;
  background: #fff;
  padding: 4.5rem;
  z-index: 2;
}

.cbc-modal-title{
    font-weight: 600;
    font-size: 2rem;
    line-height: 100%;
    margin-bottom: 32px;
    text-align: center;
}

.cbc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cbc-items-wrapper {
  justify-content: center;
  display: flex;
  gap: 1.5rem;
  flex-direction: row;
}

.cbc-item {
  padding: 1rem;
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  width: fit-content;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cbc-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #E7E2DE;
}
.cbc-item.selected {
  border: 1px solid #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.cbc-thumb {
  display: block;
  width: 160px;
  min-width: 160px;
  aspect-ratio: 1/1;
  padding-bottom: 1.25rem;
}
.cbc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cbc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.cbc-title-desc{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

.cbc-title {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 16px;
  color: #0B0A0A;
}
.cbc-desc,
.cbc-desc > *{
  font-weight: 600;
  color: #0B0A0A;
  font-size: 10px;
}
.cbc-price {
  font-weight: 600;
  font-size: 16px;
}
.cbc-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.cbc-add-main.button {
  display: inline-flex;
  align-items: center;
  border: 1px solid #64615E!important;
  background: #64615E!important;
  color: #fff!important;
  cursor: pointer;
}

.cbc-add-main:hover{
    background: #0B0A0A!important;
    border-color: #0B0A0A!important;
    color: #BAD9B5 !important;
}

.cbc-add-main[disabled] {
  opacity: 0.6;
  cursor: default;
}


@media only screen and (max-width: 768px){
    .cart-box-choice-popup .cbc-modal{
        max-width: 92vw;
        max-height: 85vh;
        overflow: scroll;
        padding: 2.5rem;
    }
    
    .cbc-items-wrapper{
        flex-direction: column;
        align-items: center;
    }
    
    .cbc-modal-title{
        font-size: 24px;
    }
    
    .cbc-price{
        font-size: 14px;
    }
}
