.size-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.swatch-label {
  cursor: pointer;
  padding: 10px 18px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  color: #555;
  user-select: none;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  box-shadow: inset 0 0 0 0 #0073aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
}

.swatch-label:hover {
  border-color: #0073aa;
  color: #0073aa;
  background-color: #e7f0fa;
}

.swatch-label input[type="radio"] {
  display: none;
}

.swatch-label input[type="radio"]:checked + .swatch-text {
  border-radius: 30px;
  background-color: #0073aa;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 115, 170, 0.6);
  padding: 10px 18px;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}


#close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  background: #eee;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#close-popup:hover {
    background: #ccc;
}

/*style for the attributes of SIZE in popup*/

.popup-size-swatches {
  text-align: center;
  margin-top: 20px;
}
.popup-size-swatches .swatch-item {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #000;
  margin: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}
.popup-size-swatches .swatch-item.active {
  background-color: #000;
  color: #fff;
}

/*end of attributes size in popup*/

/*the second option WHOLE OR GROUND style*/

.grind-selector {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
}

.grind-heading {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 30px;
  color: black;
}

.grind-options {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.grind-option {
  flex: 0 0 45%;
  padding: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  background-color: #f9f9f9;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.grind-option:hover {
  background-color: #eaeaea;
  border-color: #bbb;
}
/*end of whole or ground style*/


/*style for save button inside popup*/
#save-size-selection, #popup-save-qty {
  display: block;
  margin: 0 auto;
  padding: 14px 30px;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background 0.3s;
}

#save-size-selection:hover, #popup-save-qty:hover {
  background-color: #333;
}

/*grind option selected*/
.grind-option.selected {
    background-color: #222;
    color: #fff;
    border-color: #000;
}
/*hide variations*/
.variations {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/*style for frequency options to make it horizontal*/
.bos4w-radio-plan-options {
  display: flex;
  gap: 20px; /* spacing between options */
  list-style: none;
  padding: 0;
  margin: 0;
}

.bos4w-radio-plan-options li {
  flex: 0 0 auto; /* prevents shrinking */
}  /* end of frequency style */


/*css code for the Add for button when clicked it shrinks*/
.bundled_product_optional_checkbox {
    cursor: pointer; /* Makes the cursor a hand */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bundled_product_optional_checkbox:active {
    transform: scale(0.96); /* Slightly shrink on click */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Optional click shadow */
} /* end of css code for the Add for button when clicked it shrinks*/

/*on hover make the title hand*/
.details .item_title{
  cursor: pointer;
}
/*hide quantity */
.products.bundled_products .bundled_qty {
  display: none;
}
