/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
 */

@import '../variables.scss';

.error-boundary {
    &__container {
        background: white;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 16px;
        width: 700px;
        border: 1px solid $gray-400;
        box-shadow: 5px 6px 5px -1px rgba(0, 0, 0, 0.1);
        height: 100%;
        overflow-y: overlay;
        @include scrollbars($white);
    }

    &__header {
        margin-bottom: 16px;
        color: $nordic-blue;
        display: flex;
        justify-content: space-between;
        align-items: center;

        img {
            height: 32px;
            width: 32px;
        }
    }

    &__main {
        button {
            margin-right: 8px;
        }
    }

    &__info {
        .info-header {
            font-weight: 700;
            color: $gray-700;
        }

        p {
            margin-top: 16px;
        }
    }

    &__footer {
        margin-top: 32px;

        p {
            margin-top: 16px;
        }

        button {
            margin-top: 16px;
        }
    }

    &__message {
        margin-bottom: 16px;

        &--loading {
            margin-bottom: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .loading-header {
                color: #263238;
                font-size: 10px;
                font-weight: 400;
                line-height: 13px;
                text-transform: uppercase;
                letter-spacing: 2.6416px;
            }
        }

        .report {
            border: 1px solid $gray-400;
            padding: 16px;
            user-select: text;
        }

        pre {
            margin-top: 12px;
            font-size: 12px;
        }
    }
}
