#griffinforms-app-wrapper,
[id^="griffinforms-builder-modal-"],
[id^="griffinforms-builder-modal-"] .modal-dialog {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#griffinforms-app-wrapper {
    position: fixed;
    z-index: 100000;
    background-color: rgb(250, 251, 252);
    display: flex;
    flex-direction: column;
}

#griffinforms-app-wrapper small,
#griffinforms-app-wrapper .small,
[id^="griffinforms-builder-modal-"] small,
[id^="griffinforms-builder-modal-"] .small {
    font-size: 0.857em; /* ~12px */
}

#griffinforms-app-wrapper h1,
#griffinforms-app-wrapper h2,
#griffinforms-app-wrapper h3,
#griffinforms-app-wrapper h4,
#griffinforms-app-wrapper h5,
#griffinforms-app-wrapper h6,
[id^="griffinforms-builder-modal-"] h1,
[id^="griffinforms-builder-modal-"] h2,
[id^="griffinforms-builder-modal-"] h3,
[id^="griffinforms-builder-modal-"] h4,
[id^="griffinforms-builder-modal-"] h5,
[id^="griffinforms-builder-modal-"] h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

#griffinforms-app-wrapper h1,
[id^="griffinforms-builder-modal-"] h1 { font-size: 1.571em; } /* ~22px */
#griffinforms-app-wrapper h2,
[id^="griffinforms-builder-modal-"] h2 { font-size: 1.286em; } /* ~18px */
#griffinforms-app-wrapper h3,
[id^="griffinforms-builder-modal-"] h3 { font-size: 1.143em; } /* ~16px */
#griffinforms-app-wrapper h4,
[id^="griffinforms-builder-modal-"] h4 { font-size: 1em;     } /* 14px */
#griffinforms-app-wrapper h5,
#griffinforms-app-wrapper h6,
[id^="griffinforms-builder-modal-"] h5,
[id^="griffinforms-builder-modal-"] h6 { font-size: 0.929em; } /* ~13px */

.griffinforms-app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 100090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #fff;
    transition: opacity 180ms ease, visibility 180ms ease;
    opacity: 1;
    visibility: visible;
}

.griffinforms-app-loading-overlay.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.griffinforms-app-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.griffinforms-app-loading-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

.griffinforms-app-loading-text {
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
}

.griffinforms-app-loading-quote {
    max-width: 420px;
    text-align: center;
    margin-bottom: 32px;
}

.griffinforms-app-loading-quote__text {
    font-size: 15px;
    font-style: italic;
    color: #1d2327;
    line-height: 1.6;
    margin: 0 0 8px;
}

.griffinforms-app-loading-quote__author {
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

#griffinforms-app-wrapper.gf-fullscreen {
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 100%;
    --gf-wrapper-top: 0px;
}

/* Shared folder picker modal styles used by both All Forms and the builder sidebar */
.griffinforms-container .gf-form-folder-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none !important;
}

.griffinforms-container .gf-folder-picker-list-shell {
    max-height: 420px;
    overflow: hidden;
}

.griffinforms-container .gf-folder-picker-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.griffinforms-container .gf-folder-picker-toolbar-search {
    min-width: 0;
}

.griffinforms-container .gf-folder-picker-search-group {
    width: 75%;
}

.griffinforms-container .gf-folder-picker-toolbar-action {
    flex: 0 0 auto;
    padding-bottom: 1.55rem;
}

.griffinforms-container .gf-folder-picker-list {
    max-height: 420px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.griffinforms-container .gf-folder-picker-row {
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) minmax(180px, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    background: #fff;
    text-align: left;
    box-shadow: none;
}

.griffinforms-container .gf-folder-picker-row:hover,
.griffinforms-container .gf-folder-picker-row:focus {
    background: color-mix(in srgb, var(--wp-admin-theme-color, #3858e9) 6%, #ffffff);
}

.griffinforms-container .gf-folder-picker-row.is-selected {
    background: color-mix(in srgb, var(--wp-admin-theme-color, #3858e9) 8%, #ffffff);
}

.griffinforms-container .gf-folder-picker-row-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.griffinforms-container .gf-folder-picker-row-icon img {
    display: block;
    max-width: 24px;
    max-height: 24px;
}

.griffinforms-container .gf-folder-picker-row-name {
    font-weight: 600;
    color: #1d2327;
    min-width: 0;
}

.griffinforms-container .gf-folder-picker-row-description {
    font-size: 12px;
    line-height: 1.4;
    color: #646970;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.griffinforms-container .gf-folder-picker-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
}

.griffinforms-container .gf-folder-picker-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.griffinforms-container .gf-folder-picker-icon:hover,
.griffinforms-container .gf-folder-picker-icon:focus {
    border-color: var(--wp-admin-theme-color, #3858e9);
}

.griffinforms-container .gf-folder-picker-icon.is-active {
    border-color: var(--wp-admin-theme-color, #3858e9);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp-admin-theme-color, #3858e9) 15%, transparent);
}

.griffinforms-container .gf-folder-picker-icon img {
    display: block;
    width: 28px;
    height: 28px;
}

#griffinforms-app-wrapper.gf-no-fullscreen {
    left: 160px;
    top: 30px;
    bottom: 0px;
    width: calc(100% - 160px);
    --gf-wrapper-top: 30px;
}

#griffinforms-form-area {
    flex: 1 1 0;
    min-height: 0;
    background-color: rgb(250, 251, 252);
}

#griffinforms-app-presentationarea {
    overflow: auto;
}

.gf-compact-mode .gf-hide-in-compact {
    display: none;
}

.griffinforms-app-text_update_field,
.griffinforms-app-text_update_field:focus,
.griffinforms-app-textarea_update_field,
.griffinforms-app-textarea_update_field:focus {
    appearance: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

.griffinforms-app-textarea_update_field {
    overflow: hidden !important;
    resize: none;
    width: 100% !important;
    line-height: 1 !important;
    min-height: auto !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none !important;
}

.wp-core-ui select {
    max-width: 100%;
}

.accordion-button {
    color: black !important;
    font-size: 0.8rem;
}

.gf-shimmer-placeholder {
    background: #ccc;
    position: relative;
    overflow: hidden;
}

.gf-shimmer-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(80deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: shimmerMove 1.2s infinite;
}

@keyframes shimmerMove {
    100% {
        transform: translateX(300px);
    }
}

.modal-backdrop {
    z-index: 100060 !important;
}

.modal {
    z-index: 100070 !important;
}

.griffinforms-modal-header {
    height: 72px;
    padding: 24px 32px 8px;
}

.griffinforms-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.griffinforms-modal-body {
    padding: 4px 32px 32px;
}
/* Fix select caret when themes apply custom backgrounds */
.griffinforms-app-formlayout-form select,
.griffinforms-app-formlayout-formpage select,
.griffinforms-modal-body select,
.wp-core-ui select[data-gf-field-type="select_input"] {
    line-height: 1.5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 36px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Integration form controls */
.gf-integration-control {
    margin-bottom: 1.25rem !important;
}

.gf-integration-control:last-child {
    margin-bottom: 0 !important;
}

.gf-integration-control-label {
    display: block !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 0.35rem !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
}

.gf-integration-control-description {
    margin-top: 0.35rem !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

.gf-integration-control-input {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.85rem !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    min-height: 42px !important;
}

.gf-integration-control-input:hover {
    border-color: #b6c2cf !important;
}

.gf-integration-control-input:focus,
.gf-integration-control-input:focus-visible {
    border-color: #6a5acd !important;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.gf-integration-control-input:disabled {
    background-color: #f5f5f7 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.gf-integration-control.has-error .gf-integration-control-input,
.gf-integration-control-input.is-invalid,
.gf-integration-control-input.gf-has-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.gf-ai-draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem;
    border: 1px solid var(--gf-color-border-subtle, #dcdcde);
    border-radius: 4px;
    background: var(--gf-color-surface, #ffffff);
}

.gf-ai-draft-banner__copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.gf-ai-draft-banner__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gf-color-primary, #6f2cf2);
}

.gf-ai-draft-banner__text {
    font-size: 0.76rem;
    color: var(--gf-color-text-muted, #646970);
}

.gf-ai-draft-banner__actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

.gf-ai-draft-banner__actions .btn {
    font-size: 0.74rem;
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
    min-height: auto;
    box-shadow: none !important;
    border-radius: 2px;
}

.gf-ai-draft-banner__publish.btn,
.gf-ai-draft-banner__publish.btn.btn-primary {
    background: var(--gf-color-primary, #6f2cf2) !important;
    border-color: var(--gf-color-primary, #6f2cf2) !important;
    color: var(--gf-color-primary-contrast, #ffffff) !important;
}

.gf-ai-draft-banner__publish.btn:hover,
.gf-ai-draft-banner__publish.btn.btn-primary:hover,
.gf-ai-draft-banner__publish.btn:focus,
.gf-ai-draft-banner__publish.btn.btn-primary:focus {
    background: var(--gf-color-primary-hover, var(--gf-color-primary, #135e96)) !important;
    border-color: var(--gf-color-primary-hover, var(--gf-color-primary, #135e96)) !important;
    color: var(--gf-color-primary-contrast, #ffffff) !important;
}

.gf-ai-draft-banner__discard.btn,
.gf-ai-draft-banner__discard.btn.btn-outline-danger {
    background: var(--gf-color-surface, #ffffff) !important;
    border-color: var(--gf-color-danger, #b32d2e) !important;
    color: var(--gf-color-danger, #b32d2e) !important;
}

.gf-ai-draft-banner__discard.btn:hover,
.gf-ai-draft-banner__discard.btn.btn-outline-danger:hover,
.gf-ai-draft-banner__discard.btn:focus,
.gf-ai-draft-banner__discard.btn.btn-outline-danger:focus {
    background: var(--gf-color-danger-soft, rgba(179, 45, 46, 0.08)) !important;
    border-color: var(--gf-color-danger, #b32d2e) !important;
    color: var(--gf-color-danger, #b32d2e) !important;
}

@media (max-width: 900px) {
    .gf-ai-draft-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .gf-ai-draft-banner__actions {
        width: 100%;
    }

    .gf-ai-draft-banner__actions .btn {
        flex: 1 1 0;
    }
}


.gf-integration-control-checkbox {
    width: 1.1rem !important;
    height: 1.1rem !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5f5 !important;
    margin-right: 0.6rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    appearance: none !important;
    display: inline-block !important;
    position: relative !important;
}

.gf-integration-control-checkbox:checked {
    background-color: #6a5acd !important;
    border-color: #6a5acd !important;
    box-shadow: none !important;
    position: relative !important;
}

.gf-integration-control-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2) !important;
    outline: none !important;
}

.gf-integration-control-checkbox::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 5px !important;
    width: 5px !important;
    height: 8px !important;
    border: 2px solid #ffffff !important;
    border-top: 0 !important;
    border-left: 0 !important;
    transform: rotate(45deg) !important;
    opacity: 0 !important;
    transition: opacity 0.1s ease-in-out !important;
}

.gf-integration-control-checkbox:checked::after {
    opacity: 1 !important;
}

.gf-integration-control-checkbox::before {
    content: none !important;
}

.gf-integration-control .form-check {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.gf-integration-control .form-check-input {
    float: none !important;
    margin-left: 0 !important;
    accent-color: var(--gf-color-primary) !important;
}

.gf-integration-control .form-check-input[type="radio"] {
    border-color: #adb5bd !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.gf-integration-control .form-check-input[type="radio"]:checked {
    border-color: var(--gf-color-primary) !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.gf-integration-control .form-check-input[type="radio"]:checked::before {
    background-color: var(--gf-color-primary) !important;
}

.griffinforms-accounts-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3a3f45;
    cursor: pointer;
    transition: all 0.2s ease;
}

.griffinforms-accounts-back:hover {
    background-color: rgba(138, 43, 226, 0.08);
    border-color: blueviolet;
    color: blueviolet;
}

.griffinforms-accounts-back-icon {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
}

.griffinforms-accounts-back-text {
    font-weight: 500;
}

.griffinforms-accounts-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background-color: #f3f4f6;
    background-image: none;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 28px;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.gf-guided-flow-progress-host,
.gf-guided-flow-nav-host {
    min-height: 0;
}

#griffinforms-builder-modal-accounts .modal-content {
    position: relative;
}

.gf-accounts-discard-confirmation-host {
    position: absolute;
    z-index: 1080;
    transform: translate(-50%, -100%);
    width: min(320px, calc(100% - 32px));
}

.gf-accounts-discard-confirmation-host.is-below {
    transform: translate(-50%, 0);
}

.gf-accounts-discard-confirmation {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.95rem 1rem;
}

.gf-accounts-discard-confirmation-title {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.gf-accounts-discard-confirmation-copy {
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-top: 0.35rem;
}

.gf-guided-flow-progress {
    display: block;
    padding: 0.15rem 0 0;
    position: relative;
    min-height: 78px;
}

.gf-guided-flow-progress::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 1px;
    background: #d1d5db;
    z-index: 0;
}

.gf-guided-flow-progress-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: #6b7280;
    position: absolute;
    left: var(--gf-guided-flow-step-position, 0%);
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
    min-width: 0;
    text-align: center;
}

.gf-guided-flow-progress-item:first-child {
    transform: translateX(0);
}

.gf-guided-flow-progress-item:last-child {
    transform: translateX(-100%);
}

.gf-guided-flow-progress-bead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.gf-guided-flow-progress-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}

.gf-guided-flow-progress-item.is-current {
    color: #111827;
}

.gf-guided-flow-progress-item.is-current .gf-guided-flow-progress-bead {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.gf-guided-flow-progress-item.is-complete {
    color: #1f513f;
}

.gf-guided-flow-progress-item.is-complete .gf-guided-flow-progress-bead {
    border-color: #198754;
    background: #198754;
    color: #ffffff;
}

.gf-guided-flow-nav-shell {
    min-height: 40px;
}

.gf-guided-flow-active .griffinforms-accounts-step-badge {
    display: none;
}

.gf-accounts-mappings-table {
    table-layout: fixed;
    width: 100%;
}

.gf-accounts-mappings-table th,
.gf-accounts-mappings-table td {
    vertical-align: middle;
}

.gf-accounts-mappings-table .gf-app-control {
    margin-bottom: 0 !important;
}

.gf-accounts-mappings-table .gf-app-control-input {
    width: 100% !important;
}

.gf-accounts-loading-placeholder,
.gf-accounts-editor-loading-placeholder {
    pointer-events: none;
}

.gf-accounts-busy .griffinforms-modal-body {
    cursor: progress;
}

.gf-accounts-busy .griffinforms-accounts-list-wrapper,
.gf-accounts-busy .griffinforms-accounts-editor-wrapper,
.gf-accounts-busy .griffinforms-accounts-editor-header {
    user-select: none;
}

.gf-integration-checkbox-label {
    font-weight: 500 !important;
    color: #111827 !important;
    margin-bottom: 0 !important;
}

.gf-integration-control input::-ms-reveal,
.gf-integration-control input::-ms-clear {
    display: none !important;
}

/* Generic admin app form controls */
.gf-app-control {
    margin-bottom: 1.25rem !important;
}

.gf-app-control:last-child {
    margin-bottom: 0 !important;
}

.gf-app-control-label {
    display: block !important;
    font-weight: 500 !important;
    color: #111827 !important;
    margin: 0 0 0.35rem !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
}

.gf-app-control-description {
    margin-top: 0.35rem !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

.gf-app-control-input {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.85rem !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    min-height: 42px !important;
}

.gf-app-control-input:hover {
    border-color: #b6c2cf !important;
}

.gf-app-control-input:focus,
.gf-app-control-input:focus-visible {
    border-color: #6a5acd !important;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.gf-app-control-input:disabled {
    background-color: #f5f5f7 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.gf-app-control.has-error .gf-app-control-input,
.gf-app-control-input.is-invalid,
.gf-app-control-input.gf-has-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.gf-app-control-checkbox {
    width: 1.1rem !important;
    height: 1.1rem !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5f5 !important;
    margin-right: 0.6rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    appearance: none !important;
    display: inline-block !important;
    position: relative !important;
}

.gf-app-control-checkbox:checked {
    background-color: #6a5acd !important;
    border-color: #6a5acd !important;
    box-shadow: none !important;
    position: relative !important;
}

.gf-app-control-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2) !important;
    outline: none !important;
}

.gf-app-control-checkbox::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 5px !important;
    width: 5px !important;
    height: 8px !important;
    border: 2px solid #ffffff !important;
    border-top: 0 !important;
    border-left: 0 !important;
    transform: rotate(45deg) !important;
    opacity: 0 !important;
    transition: opacity 0.1s ease-in-out !important;
}

.gf-app-control-checkbox:checked::after {
    opacity: 1 !important;
}

.gf-app-control-checkbox::before {
    content: none !important;
}

.gf-app-control .form-check {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.gf-app-control .form-check-input {
    float: none !important;
    margin-left: 0 !important;
}

.gf-app-checkbox-label {
    font-weight: 500 !important;
    color: #111827 !important;
    margin-bottom: 0 !important;
}

.gf-app-control input::-ms-reveal,
.gf-app-control input::-ms-clear {
    display: none !important;
}

/* Background helpers aligned to notice palette */
.gf-bg-info {
    background-color: #e5f2ff !important;
}

.gf-bg-success {
    background-color: #e8f5e9 !important;
}

.gf-bg-warning {
    background-color: #fff7e5 !important;
}

.gf-bg-danger {
    background-color: #fdecea !important;
}

.gf-bg-light {
    background-color: #f8f9fb !important;
}

.gf-bg-secondary {
    background-color: #eef1f5 !important;
}

.gf-text-secondary {
    color: #4b5563 !important;
}

.gf-text-success {
    color: #137333 !important;
}

.gf-preview-viewport-btn {
    opacity: 0.5;
    border-radius: 4px;
    transition: background-color 0.1s ease;
}
.gf-preview-viewport-btn:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.05);
}
.gf-preview-viewport-btn--active {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}
#griffinforms-builder-preview-inner {
    transition: width 0.25s ease;
    max-width: none !important;
}

.nav-underline .nav-link.active, .nav-underline .show>.nav-link {
    font-weight: normal;
}
