/* ===== Global Toggle Button ===== */
.cco-global-toggle {
  display: inline-block;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

/* Existing styles remain unchanged */
[class*="collapsible-configurator-option"] {
  position: relative;
  /* border-radius: 10px; */
}

[class*="collapsible-configurator-option"] .wapf-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cco-toggle {
  font-size: 18px;
  margin-left: 10px;
  transition: transform 0.25s ease;
}

.cco-open .cco-toggle {
  transform: rotate(180deg);
}

.cco-content {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  will-change: max-height;
}

.cco-collapsed .cco-content {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.cco-open .cco-content {
  opacity: 1;
}

/* Prevent flicker before JS initializes */
[class*="collapsible-configurator-option"]:not([data-cco-initialized]) {
  visibility: hidden;
}

.cco-content {
  contain: layout;
}

/* Prevent initial collapse flash */
.cco-preopen .cco-content {
  max-height: none !important;
  overflow: visible !important;
}