.ethos-attr-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.45rem 1rem;
  font-size: 12px;
  line-height: 1.4;
  color: #f0f4f8;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.ethos-attr-footer__label {
  opacity: 0.9;
}

.ethos-attr-footer__summary {
  opacity: 0.75;
  font-size: 11px;
}

.ethos-attr-footer__btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #2563eb;
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 11px;
}

.ethos-attr-footer__btn:hover {
  background: #1d4ed8;
}

.ethos-attr-footer__btn--muted {
  background: transparent;
  color: #cbd5e1;
}

.ethos-attr-footer__btn--danger {
  background: transparent;
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.55);
}

.ethos-attr-footer__btn--danger:hover {
  background: rgba(185, 28, 28, 0.35);
  color: #fff;
}

.ethos-attr-footer__btn--toggle[aria-pressed='true'] {
  background: #0ea5e9;
  border-color: #7dd3fc;
}

/* Debug: reveal GF Visibility = Hidden fields (admin testing only). */
body.ethos-attr-show-gf-hidden .gform_wrapper .gfield_visibility_hidden {
  position: static !important;
  left: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 1rem !important;
  padding: 0.75rem 1rem !important;
  border: 1px dashed #2563eb !important;
  background: #eff6ff !important;
  border-radius: 4px;
}

body.ethos-attr-show-gf-hidden .gform_wrapper .gfield_visibility_hidden .gfield_label {
  color: #1e40af;
  font-weight: 600;
}

body.ethos-attr-show-gf-hidden .gform_wrapper .gfield_visibility_hidden input[type='text'],
body.ethos-attr-show-gf-hidden .gform_wrapper .gfield_visibility_hidden input[type='hidden'] {
  display: block !important;
  max-width: 100%;
  margin-top: 0.35rem;
  background: #fff;
  border: 1px solid #94a3b8;
}

.ethos-attr-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ethos-attr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ethos-attr-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.ethos-attr-modal__panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.ethos-attr-modal__hint {
  margin: 0 0 1rem;
  font-size: 13px;
  color: #64748b;
}

.ethos-attr-modal__json {
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow: auto;
}

.ethos-attr-modal__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

body.ethos-attr-has-footer {
  padding-bottom: 42px;
}

.ethos-acuity-embed {
  position: relative;
  min-height: var(--ethos-acuity-height, 800px);
}

.ethos-acuity-embed__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ethos-acuity-height, 800px);
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}

.ethos-acuity-embed__loader[hidden],
.ethos-acuity-embed__error[hidden] {
  display: none !important;
}

.ethos-acuity-embed__loader-inner {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 360px;
}

.ethos-acuity-embed__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 4px solid #cbd5e1;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: ethos-acuity-spin 0.85s linear infinite;
}

@keyframes ethos-acuity-spin {
  to {
    transform: rotate(360deg);
  }
}

.ethos-acuity-embed__loader-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.ethos-acuity-embed__loader-sub {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.ethos-acuity-embed__mount {
  display: block;
  min-height: var(--ethos-acuity-height, 800px);
  width: 100%;
}

.ethos-acuity-embed--loaded .ethos-acuity-embed__loader {
  display: none !important;
}

.ethos-acuity-embed__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: var(--ethos-acuity-height, 800px);
  padding: 2rem;
  text-align: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  box-sizing: border-box;
}

.ethos-acuity-embed__error-text {
  margin: 0;
  color: #991b1b;
  max-width: 420px;
}

.ethos-acuity-embed__frame {
  display: block;
  min-height: 400px;
  background: #f8fafc;
  border-radius: 8px;
}

.ethos-acuity-embed__loading {
  text-align: center;
  margin: 0.5rem 0 0;
}
