pre {
    font-family: "Inter", sans-serif !important;
    font-weight: 300;
}

.griffinforms-formcontrol-container textarea.form-control {
  height: auto;
  min-height: 100px;
}

/* Terms & Conditions modal content */
.griffinforms-terms-modal-body {
  padding-right: 0.25rem;
}

.griffinforms-terms-modal-body > *:first-child {
  margin-top: 0;
}

.griffinforms-terms-modal-body > *:last-child {
  margin-bottom: 0;
}

.griffinforms-terms-modal-body p,
.griffinforms-terms-modal-body ul,
.griffinforms-terms-modal-body ol,
.griffinforms-terms-modal-body blockquote {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.griffinforms-terms-modal-body ul,
.griffinforms-terms-modal-body ol {
  padding-left: 1.25rem;
}

.griffinforms-terms-modal-body li + li {
  margin-top: 0.35rem;
}

.griffinforms-frontend-checkbox-input,
.griffinforms-frontend-radio-input {
  height: 1rem;
  width: 1rem;
}

.griffinforms-nojs-notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.griffinforms-nojs-title {
  margin-bottom: 0.25rem;
}

/* File upload list layout reset */
.griffinforms-formpage-container ul.list-group,
.griffinforms-formpage-container [id^="gf-fileslist-"] {
  margin: 0 0 8px 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

[data-gf-form-id] .griffinforms-progress-bar {
  margin: 0 0 1rem;
  color: var(--gf-progress-bar-muted, var(--bs-secondary, #6c757d));
}

[data-gf-form-id] .griffinforms-progress-bar__track {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  padding-top: 0.25rem;
}

[data-gf-form-id] .griffinforms-progress-bar__connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

[data-gf-form-id] .griffinforms-progress-bar__connector-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke: currentColor;
}

[data-gf-form-id] .griffinforms-progress-bar__step {
  color: var(--gf-progress-bar-muted, var(--bs-secondary, #6c757d));
  cursor: default;
  pointer-events: none;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

[data-gf-form-id].gf-no-theme .griffinforms-progress-bar__step[data-gf-progress-state="active"],
[data-gf-form-id].gf-no-theme .griffinforms-progress-bar__step[data-gf-progress-state="complete"] {
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__step {
  flex: 1 1 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="tabs"] .griffinforms-progress-bar__step {
  flex: 1 1 0;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--gf-progress-bar-page-bg, #fff);
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="tabs"] .griffinforms-progress-bar__connector {
  display: none;
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="tabs"] .griffinforms-progress-bar__step[data-gf-progress-state="active"] {
  border-color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
  background: color-mix(in srgb, var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd)) 10%, var(--gf-progress-bar-page-bg, #fff));
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="tabs"] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] {
  background: var(--gf-progress-bar-page-bg, #fff);
}

[data-gf-form-id] .griffinforms-progress-bar__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: currentColor;
  margin-bottom: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gf-progress-bar-page-bg, #fff);
  transform: none;
}

[data-gf-form-id] .griffinforms-progress-bar__marker--icon {
  width: auto;
  height: auto;
  min-width: 1.5rem;
  min-height: 1.5rem;
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__marker--icon {
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__marker--icon .griffinforms-progress-bar__marker-icon {
  color: #fff;
  display: block;
  line-height: 1;
  transform: translateY(0);
}

[data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="tabs"] .griffinforms-progress-bar__marker--icon .griffinforms-progress-bar__marker-icon {
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
  background: transparent;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}

[data-gf-form-id] .griffinforms-progress-bar__marker-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  transform: none;
}

[data-gf-form-id] .griffinforms-progress-bar__marker-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
  display: inline-block;
  transform: translateY(0);
}

[data-gf-form-id] .griffinforms-progress-bar__marker-check {
  display: none;
  position: relative;
  width: 0.75rem;
  height: 0.45rem;
  border-left: 0.15rem solid #fff;
  border-bottom: 0.15rem solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  transform-origin: center;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__marker-number {
  display: none;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__marker,
[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="active"] .griffinforms-progress-bar__marker {
  background: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__marker-check {
  display: block;
}

[data-gf-form-id] .griffinforms-progress-bar__marker--icon + .griffinforms-progress-bar__marker-check {
  display: none;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__marker--icon .griffinforms-progress-bar__marker-check {
  display: none;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="active"],
[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] {
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="active"] .griffinforms-progress-bar__marker,
[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__marker {
  opacity: 1;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="upcoming"] .griffinforms-progress-bar__marker {
  background: var(--gf-progress-bar-muted, var(--bs-secondary, #6c757d));
}

[data-gf-form-id] .griffinforms-progress-bar__label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--gf-progress-bar-muted, var(--bs-secondary, #6c757d));
  margin-top: 0.1rem;
}

[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="active"] .griffinforms-progress-bar__label,
[data-gf-form-id] .griffinforms-progress-bar__step[data-gf-progress-state="complete"] .griffinforms-progress-bar__label {
  color: var(--gf-progress-bar-accent, var(--bs-primary, #0d6efd));
}

@media (max-width: 767.98px) {
  [data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  [data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__track {
    flex-wrap: nowrap;
    min-width: max-content;
    width: max-content;
    padding-right: 0.25rem;
  }

  [data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__step {
    flex: 0 0 9rem;
    min-width: 9rem;
  }

  [data-gf-form-id] .griffinforms-progress-bar[data-gf-progress-style="stepper"] .griffinforms-progress-bar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-gf-form-id] .griffinforms-progress-bar *,
  [data-gf-form-id] .griffinforms-progress-bar {
    transition: none !important;
    animation: none !important;
  }
}

/* Payment field */
.griffinforms-payment-field-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.griffinforms-payment-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.griffinforms-payment-layout-cards {
  display: grid;
  grid-template-columns: repeat(var(--griffinforms-grid-columns, auto-fit), minmax(260px, 1fr));
  gap: 1.25rem;
}

.griffinforms-payment-layout-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.griffinforms-payment-layout-minimal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.griffinforms-payment-field {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.griffinforms-payment-field.is-selected {
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.15);
}

.griffinforms-payment-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
  width: 100%;
}

.griffinforms-payment-layout-cards .griffinforms-payment-card {
  min-height: 320px;
  align-items: stretch;
}

.griffinforms-payment-card-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.griffinforms-payment-card-media img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.griffinforms-payment-card-media--placeholder {
  height: 220px;
  background: transparent;
}

.griffinforms-payment-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.griffinforms-payment-card--featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(255, 255, 255, 0));
}

.griffinforms-payment-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--bs-warning-text, #b45309);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.08));
  border: 1px dashed rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.08);
  width: auto;
}

.griffinforms-payment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.griffinforms-payment-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bs-body-color, #212529);
}

.griffinforms-payment-price {
  font-weight: 600;
  color: var(--bs-primary, #0d6efd);
}

.griffinforms-payment-description {
  margin: 0;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.95rem;
}

.griffinforms-payment-link-anchor {
  font-size: 0.85rem;
  color: var(--bs-primary, #0d6efd);
  text-decoration: none;
}

.griffinforms-payment-link-anchor:hover {
  text-decoration: underline;
}

.griffinforms-payment-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.griffinforms-form-container {
  position: relative;
}

.griffinforms-form-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
}

.griffinforms-assist-field-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.griffinforms-form-lock.is-hidden {
  display: none;
}

.griffinforms-form-lock-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
  color: #1d2327;
}

.griffinforms-form-lock-card .spinner-border {
  width: 1rem;
  height: 1rem;
}

.griffinforms-payment-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--bs-body-color, #212529);
}

.griffinforms-payment-select input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.griffinforms-payment-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.griffinforms-payment-gateway-option {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.75rem;
  padding: 1rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.griffinforms-payment-gateway-option:hover,
.griffinforms-payment-gateway-option:focus-within {
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.08);
}

.griffinforms-payment-gateway-radio-wrap {
  display: flex;
  align-items: flex-start;
  padding-top: 0.2rem;
}

.griffinforms-payment-gateway-radio-wrap input {
  margin: 0;
}

.griffinforms-payment-gateway-media {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.griffinforms-payment-gateway-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.griffinforms-payment-gateway-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.griffinforms-payment-gateway-description {
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #6c757d);
}

.griffinforms-payment-qty-control label {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--bs-secondary-color, #6c757d);
}

.griffinforms-payment-qty-inputs {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-body-bg, #fff);
}

.griffinforms-payment-qty-input {
  width: 60px;
  border: none;
  text-align: center;
  padding: 0.35rem;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
  background: transparent;
}

.griffinforms-payment-qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--bs-primary, #0d6efd);
}

.griffinforms-payment-qty-display {
  width: 60px;
  text-align: center;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
  padding: 0.35rem;
}

.griffinforms-payment-qty-display.griffinforms-payment-qty-disabled-display {
  opacity: 0.5;
}

.griffinforms-payment-qty-btn {
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: var(--bs-primary, #0d6efd);
  cursor: pointer;
}

.griffinforms-payment-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.griffinforms-payment-qty-btn:hover,
.griffinforms-payment-qty-btn:focus,
.griffinforms-payment-qty-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bs-primary, #0d6efd);
}

.griffinforms-payment-qty-disabled .griffinforms-payment-qty-input,
.griffinforms-payment-qty-disabled .griffinforms-payment-qty-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.griffinforms-payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bs-light, #f8f9fa);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  width: 100%;
  margin-top: auto;
}

.griffinforms-payment-summary-label {
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #6c757d);
}

.griffinforms-payment-summary-amount {
  font-weight: 700;
  color: var(--bs-body-color, #212529);
}

.griffinforms-payment-cart-summary {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.griffinforms-payment-cart-body {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.griffinforms-payment-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.griffinforms-payment-cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
}

.griffinforms-payment-cart-item span:last-child {
  font-weight: 600;
}

.griffinforms-payment-cart-empty {
  margin: 0;
}

.griffinforms-payment-cart-summary.is-active .griffinforms-payment-cart-body {
  display: flex;
}

.griffinforms-payment-cart-summary.is-active .griffinforms-payment-cart-empty {
  display: none;
}

.griffinforms-payment-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #6c757d);
}

.griffinforms-payment-summary-total {
  font-weight: 600;
  font-size: 1rem;
  color: var(--bs-body-color, #212529);
}

.griffinforms-payment-tax-registration {
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
}

.griffinforms-payment-empty {
  padding: 0.75rem 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.griffinforms-payment-inline-error {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 2;
  display: none;
  padding: 0.2rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

.griffinforms-payment-layout-list .griffinforms-payment-card {
  flex-direction: row;
  align-items: flex-start;
}

.griffinforms-payment-layout-list .griffinforms-payment-card-media {
  width: 160px;
  margin-bottom: 0;
}

.griffinforms-payment-layout-list .griffinforms-payment-card-media img,
.griffinforms-payment-layout-list .griffinforms-payment-card-media--placeholder {
  height: 160px;
}

/* Minimal layout now reuses default card/list styling; no overrides needed. */

.griffinforms-payment-hide-images .griffinforms-payment-card-media {
  display: none;
}

.griffinforms-payment-hide-descriptions .griffinforms-payment-description {
  display: none;
}

.griffinforms-payment-group-error {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .griffinforms-payment-card {
    flex-direction: column;
  }

  .griffinforms-payment-card-media img {
    width: 100%;
    height: auto;
  }

  .griffinforms-payment-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Signature field */
.gf-signature-wrap {
    width: 100%;
    max-width: 100%;
}
.gf-signature-canvas {
    display: block;
    max-width: 100%;
    cursor: crosshair;
    touch-action: none;
}
.gf-signature-placeholder {
    pointer-events: none;
    user-select: none;
}
.gf-signature-clear {
    display: inline-block;
    cursor: pointer;
}

/* Rich text field */
.gf-richtext-wrap {
    position: relative;
    width: 100%;
}
.gf-richtext-field {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
}
.gf-richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}
.gf-richtext-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    border: none;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    line-height: 1;
    transition: background 0.1s;
}
.gf-richtext-toolbar button:hover {
    background: rgba(0, 0, 0, 0.07);
}
.gf-richtext-toolbar button.is-active {
    background: rgba(0, 0, 0, 0.12);
}
.gf-richtext-editor {
    padding: 10px 12px;
    outline: none;
    min-height: 160px;
    overflow-y: auto;
    cursor: text;
    word-break: break-word;
}
.gf-richtext-editor:focus,
.gf-richtext-editor .ProseMirror:focus,
.gf-richtext-editor .ProseMirror-focused {
    outline: none;
}
.gf-richtext-editor p {
    margin: 0 0 0.5em;
}
.gf-richtext-editor p:last-child {
    margin-bottom: 0;
}
.gf-richtext-editor ul,
.gf-richtext-editor ol {
    padding-left: 1.5em;
    margin: 0 0 0.5em;
}
.gf-richtext-editor a {
    color: #0d6efd;
    text-decoration: underline;
}
.gf-richtext-editor blockquote {
    border-left: 3px solid #dee2e6;
    margin: 0 0 0.5em;
    padding-left: 1em;
    color: #6c757d;
}
.gf-richtext-editor code {
    background: #f4f4f4;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: monospace;
}
.gf-richtext-editor hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 0.75em 0;
}
.gf-richtext-editor .ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    color: #adb5bd;
    pointer-events: none;
    float: left;
    height: 0;
}
.gf-richtext-counter {
    font-size: 11px;
    text-align: right;
    padding: 2px 4px;
    color: #6c757d;
}
.gf-richtext-counter.at-limit {
    color: #dc3545;
    font-weight: 600;
}

/* ── Likert scale field ───────────────────────────────────────────── */
.gf-likert-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gf-likert-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.gf-likert-table thead th {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gf-likert-table thead th.gf-likert-row-label-col {
    text-align: left;
    min-width: 120px;
}

.gf-likert-table tbody td {
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.gf-likert-table tbody tr:last-child td {
    border-bottom: none;
}

.gf-likert-table .gf-likert-row-label {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    min-width: 80px;
}

.gf-likert-table thead th:not(:first-child),
.gf-likert-table tbody td:not(:first-child) {
    border-left: 1px solid #dee2e6;
}

.gf-likert-table input[type="radio"] {
    cursor: pointer;
}

.gf-likert-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.gf-likert-table .gf-likert-na-col {
    color: #aaa;
}

@media (max-width: 600px) {
    .gf-likert-table {
        table-layout: auto;
    }
    .gf-likert-table thead th {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    .gf-likert-table tbody td {
        padding: 0.35rem 0.5rem;
    }
    .gf-likert-table .gf-likert-row-label {
        min-width: 80px;
    }
}
