/* --- Main Item Container --- */
.cbl-item.cbl-item--required,
.cbl-item.cbl-item--simple {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cbl-item.selected {
  border-color: green; /* Green border for selected items */
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.cbl-item--optional {
  cursor: pointer;
}

/* --- Item Content Layout --- */
.cbl-optional-simple-item,
.cbl-required-simple-item,
.cbl-optional-variation,
.cbl-single-variation,
.cbl-variable-container {
  display: flex;
  align-items: center;
  padding: 15px;
  width: 100%;
}

/* --- Custom Checkbox --- */
.cbl-item__checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.selected .cbl-item__checkbox {
  background-color: green;
  border-color: green;
}

.cbl-item__checkbox::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.selected .cbl-item__checkbox::before {
  opacity: 1;
}

/* --- Common Elements --- */
.cbl-item__image {
  width: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

.cbl-item__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.cbl-item__details {
  flex-grow: 1;
}

.cbl-item__title {
  font-weight: 600;
  margin: 0 0 5px;
  font-size: 1em;
  color: #444;
}

.cbl-item__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9em;
}

.cbl-item__price {
  margin: 0;
  color: #0073e6; /* Blue price color */
  font-weight: bold;
}

.cbl-item__stock-status {
  color: #555;
}
.cbl-item__stock-status.is-in-stock::before {
  content: "\2713"; /* Checkmark */
  margin-right: 5px;
  color: #0073e6; /* Blue checkmark */
}

.cbl-item__quantity {
  margin-left: auto;
  padding-left: 15px;
}

/* --- Required Variable "Dropdown" --- */
.cbl-variable-container {
  padding: 0; /* Remove padding for full-width selector */
}
.cbl-variable-selector {
  width: 100%;
  position: relative;
  padding: 15px;
}
.cbl-item--variable.cbl-item--required .cbl-item__quantity {
  padding-right: 15px;
}

.cbl-variable-selector__header {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.cbl-variable-selector__arrow {
  margin-left: auto;
  padding: 0 15px;
  font-size: 1.2em;
  color: #555;
  transition: transform 0.3s ease;
}

.cbl-item.is-open .cbl-variable-selector__arrow {
  transform: rotate(180deg);
}

.cbl-variable-options {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.cbl-variable-option {
  padding: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.cbl-variable-option:last-child {
  border-bottom: none;
}
.cbl-variable-option:hover {
  background-color: #f9f9f9;
}

/* Hide quantity for optional variables until one is selected */
.cbl-item--variable.cbl-item--optional .cbl-item__quantity {
  visibility: hidden;
}
.cbl-item--variable.cbl-item--optional .selected .cbl-item__quantity {
  visibility: visible;
}

.quantity.bundled-quantity-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantity.bundled-quantity-wrapper .quantity {
  margin: 0 !important;
}

.quantity.bundled-quantity-wrapper button {
  padding: 11px;
  font-size: 23px;
  height: 35px;
  padding-top: 4px;
  border: 1px solid #00000024;
  background: white;
  color: black;
}

.quantity.bundled-quantity-wrapper {
  margin: 0 !important;
}

.cbl-optional-variation {
  background: white;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.cbl-optional-variation.selected {
  border-color: green;
}





/* Stock Status Styles */
.cbl-item__stock-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 5px;
}

.cbl-item__stock-status--in {
    color: #0f834d;
}

.cbl-item__stock-status--out {
    color: #e2401c;
}

.cbl-item__stock-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border-radius: 50%;
}



/* Alternative: Using check and cross icons instead of circles */
.cbl-item__stock-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cbl-item__stock-status--in .cbl-item__stock-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f834d'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.cbl-item__stock-status--out .cbl-item__stock-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2401c'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.bundled_products-ah{
  display: none;
}