.custom-html-section {
  /* background: #f8f8f8; */
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}
.composite_form .composite_component,
.composite_price,
.widget_composite_summary,
.widget_composite_summary_content,
.add-to-cart-btn .composite_component,
.single_add_to_cart_button {
  display: none !important;
}
.composite_form .cart {
  display: flex !important;
  flex-direction: column !important;
}

/*Accordian section*/
/* Accordion Container */
.composite-product-accordion {
  margin-top: 20px;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.composite-product-accordion .wc-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Accordion Item — card-style with breathing room */
.accordion-item {
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.accordion-header {
  background: #4caf50; /* Green background */
  color: #fff; /* White text */
  padding: 14px 18px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: #43a047;
}

.com_title_price {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.95;
  flex: 1;
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.com_title_price .com_prod_title {
  font-weight: 500;
}

.com_title_price .com_prod_price {
  font-weight: 600;
}

.tab_title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hide the default checkbox */
.component-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%; /* Makes it round */
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  background: transparent;
}

/* When checked, add background color and checkmark */
.component-checkbox:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}

/* Create checkmark */
.component-checkbox:checked::before {
  content: "✓";
  color: #4caf50;
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

/* Hover effect */
.component-checkbox:hover {
  border-color: #ffffff;
}

/* Smooth transition */
.component-checkbox,
.component-checkbox::before {
  transition: all 0.3s ease;
}

/* Accordion Button */
.accordion-button {
  /* background: #4caf50; */
  color: #fff;
  padding: 0;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-weight: 600;
}

/* Active Header */
.accordion-header.active {
  background: #388e3c; /* Darker green */
}

/* Accordion Content */
.accordion-content {
  display: none; /* Hide by default */
  padding: 22px 22px 24px;
  background: #ffffff;
  border-top: 1px solid #eef0ee;
}

.accordion-content > p {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

/* Assigned Products List */
.assigned-products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* Assigned Product Item */
.assigned-product {
  background: #fff;
  border: 1px solid #e3e6e3;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  width: auto;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.assigned-product:hover {
  transform: translateY(-2px);
  border-color: #cfd6cf;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Product Image */
.assigned-product img {
  width: 100%;
  max-width: 130px;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Product Info */
.product-info {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.product-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: #2c2c2c;
}

.product-info h4 a,
.product-info h4 a:hover {
  color: inherit;
  text-decoration: none;
}

/* Price */
.price {
  font-size: 13px;
  color: #4caf50;
  font-weight: 600;
  margin: 0;
}

/* Select Option Button */
.select-button {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.select-button:hover {
  background: #388e3c;
}

.assigned-product.selected {
  border: 2px solid #4caf50;
  background-color: #f1f8f3;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.18);
}

.assigned-product.selected .price {
  color: #2e7d32;
}

.custom-add-to-cart {
  text-transform: lowercase !important;
  font-family: "Poppins", Sans-serif;
  font-size: 14px;
  color: #ffffff;
  background-color: #88c74d;
  margin: 0px 0px 0px 0px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.custom-add-to-cart:hover {
  background-color: #76b53e;
  transform: translateY(-1px);
}

#final-composite-price {
  padding: 18px 0px 6px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}
.final-price {
  color: var(--wd-primary-color);
  font-weight: 700;
  font-size: 26px;
  padding: 0;
  line-height: 1.2;
}

.add-to-cart-section {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/*end of Accordian section*/
/* Main Summary Container */
.composite_wrap {
  display: none;
}
.add-to-cart-btn .composite_wrap {
  display: flex;
  gap: 20px;
  padding: 0px !important;
}
.custom-summary-container {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Main Product Row */
.custom-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 4px;
}

/* Image (15% width) */
.custom-summary-image {
  width: 15%;
}
.custom-summary-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Title & Selection (50% width) */
.custom-summary-info {
  width: 50%;
  padding-left: 10px;
}
.custom-summary-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.custom-summary-selection {
  font-size: 14px;
  color: #666;
}

/* Price (15% width) */
.custom-summary-price {
  width: 15%;
  text-align: right;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Add to Cart Button (20% width) */
.custom-summary-cart {
  width: 20%;
  text-align: right;
}
.custom-summary-add-to-cart {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}
.custom-summary-add-to-cart:hover {
  background: #388e3c;
}

/* Component Items - Vertical View */
.custom-components-list {
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #ddd;
}
.custom-component-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}
.component-title {
  flex: 1;
  font-size: 14px;
  color: #333;
}
.component-selection {
  flex: 2;
  font-size: 14px;
  color: #666;
}
.component-price {
  flex: 1;
  text-align: right;
  font-size: 14px;
  color: #333;
}
/*-------------------*/
/* Fixed Bottom Cart Summary */
.custom-cart-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.07);
  padding: 8px 15px;
  z-index: 1000;
}
.main_product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1222px;
  margin: 0 auto;
}

/* Product Image */
.product-img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Product Title */
.product-title {
  flex: 1 1 auto;
  padding: 0 2px;
  min-width: 0;
}
.product-title h3 {
  font-size: 14px;
  line-height: 1.3;
  color: #1f2933;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Price */
.product-price {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: #1f2933;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.product-price .final-price {
  color: #27ae60;
}

/* Add to Cart Button */
.add-to-cart-btn {
  flex: 0 0 auto;
  text-align: right;
}
.add-to-cart-btn button {
  text-transform: none;
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}
.add-to-cart-btn button:hover {
  background: #219150;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}
.add-to-cart-btn button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(39, 174, 96, 0.25);
}

.atc-icon {
  display: none;
}
.atc-text {
  display: block;
}
.full-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* Dark transparent background */
  z-index: 999; /* Ensure it's above other elements */
  display: none; /* Initially hidden */
}
.wd-opened {
  z-index: 10000 !important;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  .spcl-cart {
    width: 100%;
  }
  .custom-cart-summary {
    padding: 10px 12px;
  }
  .main_product {
    gap: 10px;
  }
  .product-img {
    display: none;
  }
  .product-title {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
  }
  .count_selected_items {
    font-weight: 400;
  }
  .product-price {
    flex: 0 0 auto;
    font-size: 16px;
    gap: 6px;
  }
  .arrow_control {
    width: 28px;
    height: 28px;
  }
  .atc-icon {
    display: block;
  }
  .atc-text {
    display: none;
  }
  .product-title h3 {
    font-size: 14px;
    margin-bottom: 0;
  }
  .selectable_area {
    padding: 4px 6px;
  }
  .add-to-cart-btn button {
    min-width: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .add-to-cart-btn .atc-icon svg {
    width: 22px;
    height: 22px;
  }
}
/**/

.component_products {
  background: #fdf6ec;
  border-top: 1px solid #f1e7d3;
  padding: 0;
  margin-top: 0;
  display: none;
}

.pipa-summary-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 20px;
}

.pipa-summary-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
  letter-spacing: 0.2px;
}

.component-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: block;
}

.component-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  border-radius: 0;
  box-shadow: none;
}

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

.component-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #2c2c2c;
  line-height: 1.4;
}

.component-price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #2c2c2c;
}

.component-item .clear-selection {
  flex: 0 0 auto;
  cursor: pointer;
  color: #b0b0b0;
  font-size: 14px;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.component-item .clear-selection:hover {
  color: #c0392b;
}

.pipa-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid #f1e7d3;
  font-size: 16px;
}

.pipa-summary-total-label strong {
  font-weight: 700;
  color: #2c2c2c;
}

.pipa-summary-total-label small {
  margin-left: 6px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
}

.pipa-summary-total-amount {
  font-weight: 700;
  font-size: 18px;
  color: #2c2c2c;
}

.pipa-summary-total-amount .woocommerce-Price-amount {
  font-weight: 700;
  color: #2c2c2c;
}

@media (max-width: 768px) {
  .pipa-summary-inner {
    padding: 14px 14px 16px;
  }

  .pipa-summary-title {
    font-size: 14px;
  }

  .component-title,
  .component-price {
    font-size: 13px;
  }

  .pipa-summary-total-amount {
    font-size: 16px;
  }
}
.count_selected_items {
  cursor: pointer;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.arrow_control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #1f2933;
  transition: background 0.2s ease, transform 0.3s ease-in-out;
  cursor: pointer;
  flex-shrink: 0;
}

.arrow_control:hover {
  background: #e5e7eb;
}

.arrow_control svg {
  width: 12px;
  height: 8px;
  fill: currentColor;
  transition: transform 0.3s ease-in-out;
}

.arrow_control.open {
  transform: rotate(180deg);
}
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.accordion-header:hover .accordion-toggle {
  background: rgba(255, 255, 255, 0.28);
}

.accordion-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease-in-out;
}

.accordion-toggle svg.open {
  transform: rotate(0deg);
}

.accordion-toggle svg.rotate-180 {
  transform: rotate(180deg);
}

.accordion-toggle .pl-1 {
  padding-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-selection {
  display: inline-block;
  margin-left: 10px;
  color: rgb(203 0 67);
  font-weight: bold;
  cursor: pointer;
}

.clear-selection:hover {
  color: darkred;
}
.selectable_area {
  display: flex;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 8px;
  width: 100%;
  padding: 4px 8px;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.selectable_area:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.empty_product {
  height: 130px;
  width: 130px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 28px;
}

.empty_product::before {
  content: "✕";
  font-size: 26px;
  color: #c5c5c5;
}
