@charset "UTF-8";
.aofb-frontend-preview,
.aofb-style-live-preview-body {
  /*
   * Form Builder Frontend Styles
   *
   * Structural / functional / mechanical CSS only. Visual defaults (colors,
   * backgrounds, decorative borders, border-radius, button/input/label
   * colors, message colors, decorative shadows) are intentionally NOT here —
   * they are generated per-form as a scoped inline <style> block by
   * Form_Builder::render_form_markup() (Form Styling, Free) with an
   * extension point for Pro's Custom CSS. See ARCHITECTURE notes in
   * form-builder.php. This file must make the form fully usable (rows,
   * responsiveness, hidden states, validation, submit, conditional states)
   * with Form Styling turned off — the theme/browser then provides the
   * visual appearance.
   */
}
.aofb-frontend-preview .aofb-frontend-form,
.aofb-style-live-preview-body .aofb-frontend-form {
  max-width: 100%;
  margin: 0 auto;
}
.aofb-frontend-preview .aofb-frontend-field,
.aofb-frontend-preview .form-group,
.aofb-style-live-preview-body .aofb-frontend-field,
.aofb-style-live-preview-body .form-group {
  margin-bottom: 1rem;
}
.aofb-frontend-preview .mb-3,
.aofb-style-live-preview-body .mb-3 {
  margin-bottom: 1rem !important;
}
.aofb-frontend-preview .d-block,
.aofb-style-live-preview-body .d-block {
  display: block !important;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-quarter,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-quarter {
  grid-column: span 3;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-third,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-third {
  grid-column: span 4;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-half,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-half {
  grid-column: span 6;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-two_thirds,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-two_thirds {
  grid-column: span 8;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-three_quarter,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-three_quarter {
  grid-column: span 9;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-layout-width-full,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-layout-width-full {
  grid-column: span 12;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row--gap-sm,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row--gap-sm {
  gap: 8px;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row--gap-md,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row--gap-md {
  gap: 16px;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row--gap-lg,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row--gap-lg {
  gap: 24px;
}
.aofb-frontend-preview .aofb-frontend-form .ao-form-row > .aofb-frontend-submit,
.aofb-style-live-preview-body .aofb-frontend-form .ao-form-row > .aofb-frontend-submit {
  align-self: end;
}
@media (max-width: 640px) {
  .aofb-frontend-preview .aofb-frontend-form .ao-form-row--stack-mobile,
  .aofb-style-live-preview-body .aofb-frontend-form .ao-form-row--stack-mobile {
    grid-template-columns: 1fr;
  }
  .aofb-frontend-preview .aofb-frontend-form .ao-form-row--stack-mobile > [class*=aofb-layout-width-],
  .aofb-style-live-preview-body .aofb-frontend-form .ao-form-row--stack-mobile > [class*=aofb-layout-width-] {
    grid-column: span 1;
  }
}
.aofb-frontend-preview .form-label,
.aofb-style-live-preview-body .form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.aofb-frontend-preview .form-label.aofb-visually-hidden,
.aofb-style-live-preview-body .form-label.aofb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.aofb-frontend-preview,
.aofb-style-live-preview-body {
  /* Box model only — no color, background, or border-color. Those are
   * supplied by generated Form Styling when enabled; without it the browser
   * default input chrome shows through, which is the intended OFF state. */
}
.aofb-frontend-preview .form-control,
.aofb-frontend-preview .form-select,
.aofb-style-live-preview-body .form-control,
.aofb-style-live-preview-body .form-select {
  display: block;
  width: 100%;
  padding: var(--aofb-padding-y, 0.375rem) var(--aofb-padding-x, 0.75rem);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.aofb-frontend-preview .invalid-feedback,
.aofb-style-live-preview-body .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
}
.aofb-frontend-preview .invalid-feedback.d-block,
.aofb-style-live-preview-body .invalid-feedback.d-block {
  display: block !important;
}
.aofb-frontend-preview .form-text,
.aofb-style-live-preview-body .form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
}
.aofb-frontend-preview .form-check,
.aofb-style-live-preview-body .form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}
.aofb-frontend-preview .aofb-choice-list--inline,
.aofb-style-live-preview-body .aofb-choice-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.aofb-frontend-preview .aofb-choice-list--inline .form-check,
.aofb-style-live-preview-body .aofb-choice-list--inline .form-check {
  margin-bottom: 0;
}
.aofb-frontend-preview .aofb-character-counter,
.aofb-style-live-preview-body .aofb-character-counter {
  text-align: right;
}
.aofb-frontend-preview,
.aofb-style-live-preview-body {
  /* Positioning/sizing only — appearance:none + the colored checked-state
   * indicator are part of the generated visual skin (Form Styling), so a
   * native unstyled checkbox/radio still renders correctly with Form
   * Styling off. */
}
.aofb-frontend-preview .form-check-input,
.aofb-style-live-preview-body .form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
}
.aofb-frontend-preview .form-check-input[type=radio],
.aofb-style-live-preview-body .form-check-input[type=radio] {
  border-radius: 50%;
}
.aofb-frontend-preview .aofb-rating,
.aofb-style-live-preview-body .aofb-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.aofb-frontend-preview .aofb-rating-stars,
.aofb-style-live-preview-body .aofb-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}
.aofb-frontend-preview .aofb-rating-star,
.aofb-style-live-preview-body .aofb-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.aofb-frontend-preview,
.aofb-style-live-preview-body {
  /* The half-star rendering is color trickery, but the behavior itself
   * (clipping an overlaid glyph) is structural, not decorative — its
   * color comes from generated Form Styling. */
}
.aofb-frontend-preview .aofb-rating-star.is-half::before,
.aofb-style-live-preview-body .aofb-rating-star.is-half::before {
  position: absolute;
  inset: 0 50% 0 0;
  overflow: hidden;
  content: "★";
}
.aofb-frontend-preview .aofb-rating-value,
.aofb-style-live-preview-body .aofb-rating-value {
  min-width: 3rem;
  font-size: 0.875rem;
}
.aofb-frontend-preview .btn,
.aofb-style-live-preview-body .btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: var(--aofb-padding-y, 0.375rem) var(--aofb-padding-x, 0.75rem);
  font-size: 1rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.aofb-frontend-preview .aofb-spinner,
.aofb-style-live-preview-body .aofb-spinner {
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  margin-left: 0.5em;
  border: 0.15em solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.125em;
  animation: aofb-spin 0.75s linear infinite;
}
@keyframes aofb-spin {
  to {
    transform: rotate(360deg);
  }
}
.aofb-frontend-preview .aofb-frontend-notice,
.aofb-style-live-preview-body .aofb-frontend-notice {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}
.aofb-frontend-preview .aofb-frontend-success-state,
.aofb-style-live-preview-body .aofb-frontend-success-state {
  margin: 0;
}
.aofb-frontend-preview *,
.aofb-frontend-preview *::before,
.aofb-frontend-preview *::after,
.aofb-style-live-preview-body *,
.aofb-style-live-preview-body *::before,
.aofb-style-live-preview-body *::after {
  box-sizing: border-box;
}

.aofb-list-preview {
  width: min(760px, 100% - 32px);
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  color: #1d2327;
}

.aofb-list-preview[open] {
  display: flex;
  flex-direction: column;
}

.aofb-list-preview::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.aofb-list-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #dcdcde;
}
.aofb-list-preview-head h2 {
  margin: 0;
  font-size: 1.15em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aofb-list-preview-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #50575e;
  cursor: pointer;
}
.aofb-list-preview-close:hover, .aofb-list-preview-close:focus-visible {
  background: #f0f0f1;
  color: #1d2327;
}

.aofb-list-preview-body {
  flex: 1 1 auto;
  min-height: 120px;
  padding: 24px;
  overflow: auto;
}

.aofb-list-preview-status {
  margin: 0;
  color: #646970;
}

.aofb-list-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #dcdcde;
  background: #f6f7f7;
}
