.griffinforms-modal-field input,
.griffinforms-modal-field textarea {
    width: 100%;
}

#griffinforms-selectfolder-modal .gf-notice-container:empty {
    display: none;
}

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

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

#griffinforms-selectfolder-modal .gf-folder-picker-toolbar-search {
    min-width: 0;
}

#griffinforms-selectfolder-modal .gf-folder-picker-search-group {
    width: 75%;
}

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

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

#griffinforms-selectfolder-modal .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: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    text-align: left;
    box-shadow: none;
}

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

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

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

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

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

#griffinforms-selectfolder-modal .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-selectfolder-modal .gf-folder-picker-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
}

#griffinforms-selectfolder-modal .gf-folder-picker-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

#griffinforms-selectfolder-modal .gf-folder-picker-icon.is-active {
    background: color-mix(in srgb, var(--wp-admin-theme-color, #3858e9) 16%, #ffffff);
}

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