.result-detail {
    position: relative;
    margin: 12px 0;

    .detail-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        padding: 12px;
        border-radius: 8px;

        .header-icon {
            display: flex;
            padding-right: 8px;
        }

        .header-label {
            font-size: 14px;
            font-weight: 600;
            line-height: 1.5em;
            width: 100%;
        }

        .header-action {
            display: flex;
            align-items: center;
            padding-left: 30px;

            .advanced-toggler {
                display: flex;
                align-items: center;
                padding-left: 4px;
                border-radius: 4px;
                outline: none;

                span {
                    font-size: 12px;
                    color: white;
                }

                .md-icon {
                    padding-top: 1px;
                    height: 16px;
                    width: 16px;
                    color: $white;
                }
            }
        }
    }

    .detail-body {
        position: absolute;
        z-index: 100;
        padding: 0 12px 12px 12px;
        border-radius: 0 0 8px 8px;
        backdrop-filter: blur(0.5px);
        width: 100%;

        ul {
            padding: 0;
            margin: 0;

            li {
                display: flex;
                position: relative;
                list-style-type: none;
                padding-bottom: 10px;

                &:last-child {
                    padding-bottom: 0;
                }

                .md-icon {
                    display: inline-block;
                    flex: 14px 0 0;
                    height: 20px;
                    margin-right: 8px;
                }

                span {
                    font-size: 13px;
                    line-height: 1.5em;

                    &.detail-footnote {
                        display: block;
                        color: rgba(#14213d, 50%);
                        padding-top: 5px;
                    }
                }

                &.tamper-proof,
                &.blockchain,
                &.document-valid,
                &.verified-issuer,
                &.verified-signer,
                &.in-progress {
                    .md-icon {
                        color: $verification-result-success-dark;
                    }
                }

                &.unverified-issuer,
                &.unverified-signer,
                &.document-retracted {
                    .md-icon {
                        color: $verification-result-warning-dark;
                    }
                }

                &.document-revoked {
                    .md-icon {
                        color: $verification-result-error-dark;
                    }
                }
            }
        }
    }

    &.success {
        .detail-header,
        .detail-body {
            background-color: $verification-result-success-light;
        }

        .detail-header {
            .header-icon {
                .md-icon {
                    color: $verification-result-success-dark;
                }
            }

            .header-label {
                color: $verification-result-success-dark;
            }

            .header-action {
                button {
                    background-color: $verification-result-success-dark;
                }
            }
        }
    }

    &.warning {
        .detail-header,
        .detail-body {
            background-color: $verification-result-warning-light;
        }

        .detail-header {
            .header-icon {
                .md-icon {
                    color: $verification-result-warning-dark;
                }
            }

            .header-label {
                color: $verification-result-warning-dark;
            }

            .header-action {
                button {
                    background-color: $verification-result-warning-dark;
                }
            }
        }
    }

    &.error {
        .detail-header,
        .detail-body {
            background-color: $verification-result-error-light;
        }

        .detail-header {
            .header-icon {
                .md-icon {
                    color: $verification-result-error-dark;
                }
            }

            .header-label {
                color: $verification-result-error-dark;
            }

            .header-action {
                button {
                    background-color: $verification-result-error-dark;
                }
            }
        }
    }

    &.expanded {
        .detail-header {
            border-radius: 8px 8px 0 0;
        }
    }

    .collapse-enter-active,
    .collapse-leave-active {
        transition: max-height 0s;
    }

    .collapse-enter,
    .collapse-leave-to {
        max-height: 0;
        overflow: hidden;
    }
}
