.color-swatch-container {
  margin-bottom: 20px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: all 0.2s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
  border: 3px solid #333;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.color-choose-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.selected-color-name {
  font-weight: 600;
  text-transform: capitalize;
}

/* Product section styling */
.product-section {
  position: relative;
}

/* Grouped product styling */
.grouped-product-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.grouped-product-item:last-child {
  border-bottom: none;
}

.grouped-product-item .color-swatch {
  width: 25px;
  height: 25px;
}

.grouped-product-image {
  display: inline-block;
  margin-right: 15px;
  width: 80px;
  height: 80px;
  vertical-align: top;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
}

.grouped-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WooCommerce grouped product list styling */
.woocommerce-grouped-product-list-item {
  position: relative;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.woocommerce-grouped-product-list-item:last-child {
  border-bottom: none;
}

/* Quantity controls */
.quantity {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity input.qty {
  border: none;
  text-align: center;
  width: 60px;
  padding: 8px 4px;
  margin: 0;
  background: #fff;
}

.quantity-button {
  background: #f8f8f8;
  border: none;
  padding: 0;
  width: 30px;
  height: 34px;
  line-height: 1;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  color: #333;
}

.quantity-button:hover {
  background: #e8e8e8;
}

.quantity-button:active {
  background: #ddd;
}

.quantity-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error messages */
.woocommerce-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  border-left: 4px solid #dc3545;
}

.woocommerce-message, 
.woocommerce-info {
  margin-bottom: 20px !important;
}

/* Loading state */
.single_add_to_cart_button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  .grouped-product-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }
  
  .color-swatch {
    width: 25px;
    height: 25px;
  }
  
  .grouped-product-item .color-swatch {
    width: 20px;
    height: 20px;
  }
  
  .quantity input.qty {
    width: 50px;
  }
  
  .quantity-button {
    width: 25px;
    height: 30px;
    font-size: 16px;
  }
}