.griffinforms-single-submission {
    margin: 0 auto;
}

.griffinforms-single-submission i {
    font-size: 1.2rem;
}

.gf-submission-page-header h4 {
    margin-bottom: 0.25rem;
}

.gf-submission-card {
}

.gf-submission-card .gf-pro-badge.gf-pro-badge-gradient {
    margin-bottom: 6px;
}

.gf-submission-meta,
.gf-payment-summary,
.gf-marketing-summary {
    margin-bottom: 1rem;
}

.gf-marketing-summary {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.gf-marketing-summary-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.gf-marketing-summary-icon {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gf-marketing-summary-icon-monochrome {
    filter: none;
    opacity: 1;
}

.gf-marketing-summary-copy {
    line-height: 1.5;
}

.gf-marketing-summary-meta .d-flex {
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.gf-marketing-summary-meta .d-flex:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.gf-marketing-summary-meta-value {
    max-width: 60%;
    color: #111827;
    word-break: break-word;
}

.gf-submission-actions-strip {
    width: 100%;
    padding: 0;
    gap: 0.5rem;
}

.gf-submission-meta .gf-meta-list .d-flex {
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.gf-submission-meta .gf-meta-list .d-flex:last-child {
    border-bottom: none;
}

.gf-submission-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.gf-field-block {
    background-color: #ffffff;
}

.gf-field-missing {
    border: 1px dashed #d1d5db;
}

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

.gf-submission-card .accordion-button {
    font-size: 0.82rem;
}

.gf-submission-field {
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
    margin-bottom: 1rem;
}

.gf-submission-field-account-email-source {
    border-color: transparent;
}

.gf-submission-field-label {
    letter-spacing: 0.08em;
    color: #000000;
}

.gf-submission-field-heading {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.gf-submission-field-source-note {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.14rem 0.5rem 0.14rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #d9e4f0;
    color: #59789b;
    background: #f8fbff;
}

.gf-submission-field-source-mark-icon {
    display: inline-flex;
    width: 0.78rem;
    height: 0.78rem;
    background-color: currentColor;
    -webkit-mask-image: url("../images/icons/users-marker.svg");
    mask-image: url("../images/icons/users-marker.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.gf-submission-field-source-mark-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
}

.gf-submission-field-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gf-submission-value-block {
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #000000;
    box-shadow: none;
}

.gf-wp-link,
.gf-wp-link:hover,
.gf-wp-link:focus {
    color: var(--wp-admin-theme-color, #3858e9);
}

.gf-submission-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--wp-admin-theme-color, #3858e9);
    text-decoration: none;
    font-weight: 500;
}

.gf-submission-email-link:hover,
.gf-submission-email-link:focus {
    color: #135e96;
    text-decoration: none;
}

.gf-submission-email-link-icon {
    display: inline-flex;
    width: 1.08rem;
    height: 1.08rem;
    background-color: currentColor;
    -webkit-mask-image: url("../images/icons/mail.svg");
    mask-image: url("../images/icons/mail.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0.82;
    transition: opacity 120ms ease, transform 120ms ease;
}

.gf-submission-email-link:hover .gf-submission-email-link-icon,
.gf-submission-email-link:focus .gf-submission-email-link-icon {
    opacity: 0.82;
    transform: translateY(-1px);
}

.gf-submission-field-help {
    line-height: 1.4;
}
.gf-payment-line-items .d-flex {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.gf-payment-line-items .d-flex:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gf-submission-accounts-panel {
    position: relative;
    min-height: 80px;
}

.gf-submission-accounts-panel.is-busy {
    opacity: 0.75;
    pointer-events: none;
}

.gf-submission-accounts-summary {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eef2f7;
}

.gf-submission-accounts-summary-stat {
    font-size: 0.82rem;
    line-height: 1.4;
}

.gf-submission-account-setup {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8edf3;
}

.gf-submission-account-setup-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.15rem;
}

.gf-submission-account-setup-summary {
    font-size: 0.8rem;
    color: #6b7280;
}

.gf-submission-account-setup:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
}

.gf-submission-account-targets-scroll {
    max-height: 30rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-width: thin;
}

.gf-submission-account-target {
    background: transparent;
    border-top: 1px solid #e8edf3;
    padding-inline: 0;
}

.gf-submission-account-target:last-child {
    margin-bottom: 0;
}

.gf-submission-account-target-side {
    min-width: 0;
}

.gf-submission-account-actions-wrap {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.gf-submission-account-actions .button {
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.2;
}

.gf-submission-account-action.is-awaiting-confirmation {
    border-color: var(--wp-admin-theme-color, #3858e9);
    box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.18);
}

.gf-submission-account-confirmation-host {
    width: 100%;
}

.gf-submission-account-confirmation-panel {
    width: min(100%, 20rem);
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.gf-submission-account-confirmation-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
}

.gf-submission-account-confirmation-target {
    font-size: 0.78rem;
    color: var(--wp-admin-theme-color, #3858e9);
    word-break: break-word;
}

.gf-submission-account-confirmation-copy {
    font-size: 0.76rem;
    color: #6b7280;
    line-height: 1.45;
}

.gf-submission-account-confirmation-actions .button {
    white-space: nowrap;
}

.gf-submission-account-confirmation-working {
    display: none;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.76rem;
    color: #6b7280;
}

.gf-submission-account-confirmation-working .spinner-border {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 0.14em;
    margin: 0;
}

.gf-submission-account-confirmation-panel.is-working .gf-submission-account-confirmation-working {
    display: inline-flex;
}

.gf-submission-account-confirmation-panel.is-working .gf-submission-account-confirm-cancel,
.gf-submission-account-confirmation-panel.is-working .gf-submission-account-confirm-execute {
    visibility: hidden;
}

.gf-submission-account-meta-list {
    display: grid;
    gap: 0.3rem;
}

.gf-submission-account-meta-row {
    display: grid;
    grid-template-columns: minmax(78px, 96px) minmax(0, 1fr);
    gap: 0.4rem;
    align-items: baseline;
}

.gf-submission-account-meta-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6b7280;
}

.gf-submission-account-meta-value {
    font-size: 0.8rem;
    color: #374151;
}

.gf-submission-account-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--wp-admin-theme-color, #3858e9);
    text-decoration: none;
    font-weight: 500;
}

.gf-submission-account-meta-link:hover,
.gf-submission-account-meta-link:focus {
    color: #135e96;
    text-decoration: none;
}

.gf-submission-account-meta-link-icon {
    display: inline-flex;
    width: 0.88rem;
    height: 0.88rem;
    background-color: currentColor;
    -webkit-mask-image: url("../images/icons/external.svg");
    mask-image: url("../images/icons/external.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0.8;
    transition: opacity 120ms ease, transform 120ms ease;
}

.gf-submission-account-meta-link:hover .gf-submission-account-meta-link-icon,
.gf-submission-account-meta-link:focus .gf-submission-account-meta-link-icon {
    opacity: 0.82;
    transform: translateY(-1px);
}

.gf-submission-account-meta-inline {
    margin-left: 0.45rem;
    font-size: 0.72rem;
    color: #6b7280;
}

.gf-submission-account-status-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.2rem 0.5rem;
    align-items: start;
}

.gf-submission-account-status-chip {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 0.02rem;
}

.gf-submission-account-status-details {
    grid-column: 2;
    display: grid;
    gap: 0.18rem;
}

.gf-submission-account-status-reason {
    font-size: 0.8rem;
    color: #6b7280;
}

.gf-submission-account-status-time {
    font-size: 0.72rem;
    color: #6b7280;
}

.gf-submission-account-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid currentColor;
    opacity: 0.72;
    line-height: 1;
}

.gf-submission-account-status-success {
    color: var(--gf-color-success);
}

.gf-submission-account-status-danger {
    color: var(--gf-color-danger);
}

.gf-submission-account-status-warning {
    color: var(--gf-color-warning);
}

.gf-submission-account-status-info {
    color: var(--gf-color-info);
}

.gf-submission-account-status-secondary {
    color: var(--gf-color-text-secondary, #6c757d);
}

.gf-submission-account-meta-value-confirmation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.gf-submission-account-target-header {
    min-width: 0;
}

.gf-submission-account-target-avatar-wrap {
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #d9e3ee;
    flex: 0 0 auto;
}

.gf-submission-account-target-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gf-submission-account-target-email {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 0;
}

.gf-submission-account-issues .gf-notice {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0;
    font-size: 0.8rem;
}

.gf-submission-account-issues .gf-notice > div {
    display: grid;
    gap: 0.2rem;
}

.gf-submission-accounts-empty {
    background: #fbfdff;
    border-color: #e2e8f0 !important;
}

@media (max-width: 991.98px) {
    .gf-submission-page-header {
        gap: 0.75rem;
    }

    .gf-submission-layout {
        row-gap: 1.5rem;
    }

    .gf-submission-account-target-side {
        min-width: 100%;
    }

    .gf-submission-account-confirmation-panel {
        width: 100%;
    }

    .gf-submission-account-meta-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.gf-richtext-output p { margin: 0 0 0.5em; }
.gf-richtext-output ul,
.gf-richtext-output ol { padding-left: 1.5em; margin-bottom: 0.5em; }
.gf-richtext-output ul { list-style-type: disc !important; }
.gf-richtext-output ol { list-style-type: decimal !important; }
.gf-richtext-output li { list-style-type: inherit !important; }
.gf-richtext-output a { color: #0073aa; }
.gf-richtext-output code { background: #f4f4f4; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.9em; }
.gf-richtext-output blockquote { border-left: 3px solid #ddd; margin: 0; padding-left: 1em; color: #555; }

/* ── Likert submission view ───────────────────────────────────────── */
.gf-likert-submission-view {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
}

.gf-likert-submission-view th,
.gf-likert-submission-view td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.gf-likert-submission-view th:last-child,
.gf-likert-submission-view td:last-child {
    border-right: none;
}

.gf-likert-submission-view th {
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    background: #f9fafb;
}

.gf-likert-submission-view .gf-likert-row-label {
    text-align: left;
    white-space: nowrap;
    font-weight: 500;
}

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

.gf-likert-submission-view .gf-likert-selected {
    background: #f0f7ff;
    color: #0073aa;
    font-weight: 700;
    text-align: center;
}

.gf-likert-submission-view .gf-likert-unselected {
    text-align: center;
    color: #ccc;
}

.gf-likert-submission-view .gf-likert-na-selected {
    background: #f9f9f9;
    color: #888;
    font-weight: 700;
    text-align: center;
}

/* ── Image selection submission view ─────────────────────────────── */
.gf-imgsel-sub-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gf-imgsel-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90px;
}

.gf-imgsel-sub-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.gf-imgsel-sub-title {
    font-size: 0.75em;
    color: #374151;
    margin-top: 4px;
    text-align: center;
    word-break: break-word;
}

/* ── Submission history timeline items ─────────────────────────────────── */

.gf-submission-history-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    margin-bottom: 4px;
    text-align: left;
    cursor: pointer;
    color: #1d2327;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 0.1s, background 0.1s;
}

.gf-submission-history-item:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.gf-submission-history-item.is-selected {
    background: #f0f6fc;
    border-color: var(--wp-admin-theme-color, #3858e9);
    border-left: 3px solid var(--wp-admin-theme-color, #3858e9);
    padding-left: 10px;
}

.gf-submission-history-item.is-current {
    background: #f9fafb;
}

.gf-history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.gf-history-item-title {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.gf-submission-history-item.is-selected .gf-history-item-title {
    color: var(--wp-admin-theme-color, #3858e9);
}

.gf-history-item-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.gf-history-badge-create {
    background: #edfaef;
    color: #1a7c2e;
}

.gf-history-badge-edit {
    background: #f0f6fc;
    color: var(--wp-admin-theme-color, #3858e9);
}

.gf-history-badge-restore {
    background: #fef8ee;
    color: #996800;
}

.gf-history-item-meta {
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
}

.gf-history-item-current {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--wp-admin-theme-color, #3858e9);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gf-revision-compare-table .gf-compare-label-col {
    width: 20%;
    vertical-align: top;
}

.gf-revision-compare-table .gf-compare-col {
    width: 40%;
    vertical-align: top;
}

.gf-compare-field-name {
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.gf-compare-field-heading {
    font-size: 13px;
}
.gf-submission-history-upsell {
    padding: 4px;
}

.gf-upsell-shell-card {
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
}

.gf-upsell-shell-card .gf-upsell-shell__title {
    font-size: 17px;
}
