/**
 * All of the CSS for your shortcode-facing functionality should be
 * included in this file.
 */
#coeditor-crm {
  width: 100%;
  height: auto;
}

#coeditor-crm #my-account {
  width: 100%;
}

/*
 * Theme rules such as `.content-page__body iframe { height: auto; }`
 * override the HTML height attribute. These selectors plus the inline
 * !important height from JS keep the admin setting in control.
 */
.content-page__body #coeditor-crm #my-account iframe.coeditor-mav-iframe,
.content-page__body iframe.coeditor-mav-iframe,
#coeditor-crm #my-account iframe.coeditor-mav-iframe {
  display: block;
  width: var(--coeditor-mav-width, 100%) !important;
  max-width: 100% !important;
  height: var(--coeditor-mav-height, 500px) !important;
  min-height: var(--coeditor-mav-height, 500px) !important;
  max-height: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  aspect-ratio: auto !important;
  overflow: auto;
}

/* Loading spinner styles */
#coeditor-crm #loading {
  text-align: center;
  font-weight: bold;
  color: #666;
  margin-top: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#coeditor-crm #loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

#coeditor-crm #loading .spinner {
  margin: 0 auto 8px;
  width: 24px;
  height: 24px;
  border: 3px solid #ccc;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
