.eafe-content-toggle {
  text-align: center;
  font-family: var(--e-global-typography-primary-font-family), Arial, sans-serif;
  margin-bottom: 20px;
}

.eafe-toggle-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
}

.eafe-toggle-switch .toggle-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
  margin: 0;
}

.eafe-toggle-switch .toggle-btn:hover {
  opacity: 0.9;
}

.eafe-toggle-switch .toggle-btn[aria-expanded="true"] {
  color: #fff;
  background-color: #0073e6;
  border-radius: 5px;
}

.eafe-toggle-content .toggle-panel {
  display: none;
  width: 100%;
  text-align: left;
}

.eafe-toggle-content .toggle-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Ensure Elementor widgets inside our toggle display correctly */
.eafe-toggle-content .elementor-widget,
.eafe-toggle-content .elementor-section,
.eafe-toggle-content .elementor-column,
.eafe-toggle-content .elementor-container {
  width: 100% !important;
}

/* Fix for nested elements */
.eafe-toggle-content .elementor-widget-wrap {
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive styles */
@media (max-width: 767px) {
  .eafe-toggle-switch {
    flex-direction: column;
  }

  .eafe-toggle-switch .toggle-btn {
    width: 100%;
  }
}