@use "variables" as *;

:host {
    height: 100%;
    width: 100%;
    padding: $spacing-3;
    gap: $spacing-3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    .error {
        color: $error;
        font-size: $font-size-lmd;
        max-width: 100%;
        white-space: pre-wrap;
    }

    .preview-container {
        align-items: center;
        display: flex;
        flex-grow: 1;
        justify-content: center;
        overflow: hidden;
        width: 100%;
        flex-direction: column;

        img {
            height: 100%;
            width: 100%;
            object-fit: contain;
        }
    }

    .action-container {
        display: flex;
        height: fit-content;
        justify-content: space-between;
        width: 100%;
    }

    .loading-message {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: $spacing-3;
    }

    .warning {
        display: block;
        font-style: normal;
        text-align: center;
        color: $black;
    }
}
