@-moz-document url-prefix(about:certerror) {
    :root {
        --error-icon: url("chrome://userchrome/content/resources/ieframe.dll.mui/HTML/red_shield_48.png");

        --in-content-page-color: #575757 !important;
    }

    body {
        position: relative;
        background-image: linear-gradient(180deg, #ffffff 0%, #e9eaef 100%) !important;
        background-size: cover !important;
        background-color: rgb(232, 234, 239) !important;
        align-items: unset !important;
        justify-content: unset !important;

        @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
            background-image: none !important;
            background-color: white !important;
        }

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 59px;
            background-image: linear-gradient(180deg, #fdedee 0%, #ffffff 96.6%, #ffffff 100%);
        
            @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
                content: unset !important;
            }
        }
    }
    
    .container {
        margin-top: 20px;
        margin-left: 80px;
        position: relative;
        max-width: 730px !important;

        @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
            margin-top: 80px;
            margin-left: 120px;
            margin-right: 120px;
            max-width: 700px !important;
        }
    }

    .title {
        border-bottom: 1px solid #b6bcc6 !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 26px !important;
        position: relative;
        background-image: none !important;

        @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
            border-bottom: none !important;
            margin-bottom: 25px !important;
        }

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: -60px;
            height: 48px;
            width: 48px;
            background-image: var(--error-icon);
            background-position: center;
            background-repeat: no-repeat;

            @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
                content: unset !important;
            }
        }
    }

    h1 {
        &.title-text {
            color: #4465a2 !important;
            font-size: 0.7em !important;
            font-weight: normal !important;
            padding-top: 7px !important;
            padding-bottom: 23px !important;
            margin-bottom: 0 !important;

            @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
                color: #a90000 !important;
                font-size: 36px !important;
                font-weight: 300 !important;
                padding-bottom: 0 !important;
                padding-top: 0 !important;
            }
        }
    }

    a {
        min-height: 19px !important;
        border: 0 !important;
        color: rgb(19,112,171) !important;
        font-size: 0.9em !important;
        background: transparent !important;
        padding: 0 !important;
        text-align: left !important;
        margin-bottom: 13px !important;
        font-weight: normal !important;
        text-decoration: none !important;

        &:hover {
            border: 0 !important;
            background: transparent !important;
            color: rgb(7,74,229) !important;
            text-decoration: underline !important;
            cursor: pointer;
        }

        &#viewCertificate {
            margin: 0 !important;
        }
    }

    .button-container {
        position: static;
        margin-left: 0 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        width: fit-content;

        > button {
            min-height: 19px !important;
            border: 0 !important;
            color: rgb(19,112,171) !important;
            font-size: 0.9em !important;
            background: transparent !important;
            padding: 0 !important;
            text-align: left !important;
            margin-bottom: 29px !important;
            font-weight: normal !important;
            padding-left: 21px !important;
            position: relative !important;

            &:hover {
                border: 0 !important;
                background: transparent !important;
                color: rgb(7,74,229) !important;
                text-decoration: underline !important;
                cursor: pointer;
            }

            &:active {
                border: 0 !important;
                background: transparent !important;
                padding: 0 !important;
                padding-left: 21px !important;
            }

            &::before {
                content: '';
                position: absolute;
                height: 16px;
                width: 14px;
                top: 2px;
                left: 0;
                background-position: center;
                background-repeat: no-repeat;
            }

            &#returnButton {
                &::before {
                    background-image: url("chrome://userchrome/content/resources/ieframe.dll.mui/Bitmap/green_shield.png");
                }
            }

            &#exceptionDialogButton {
                margin-top: 0 !important;

                &::before {
                    background-image: url("chrome://userchrome/content/resources/ieframe.dll/Icon Group/31058.ico");
                    background-size: 16px;
                }
            }

            &#advancedButton {
                font-size: 1em !important;
                padding-left: 29px !important;
            }
        }

        &#advancedPanelButtonContainer {
            padding: 0 !important;
            background-color: transparent !important;
            margin-top: 29px !important;

            #advancedPanelReturnButton {
                display: none !important;
            }
        }
    }
    
    .advanced-panel {
        margin: 0 !important;
        margin-left: 32px !important;
        background-color: transparent !important;
        border: 0 !important;
        display: block !important;
        position: relative !important;
        font-size: 0.9em !important;

        &[hidden=''] {
            &:first-child {
                &::before {
                    background-image: url("chrome://userchrome/content/resources/ieframe.dll.mui/HTML/down.png");
                }
            }

            * {
                display: none !important;
            }
        }

        &:first-child {
            &::before {
                content: '';
                position: absolute;
                top: -47px;
                left: -28px;
                height: 15px;
                width: 15px;
                background-image: url("chrome://userchrome/content/resources/ieframe.dll.mui/HTML/up.png");
            }
        }

        > p {
            margin: 0 !important;
            white-space: unset !important;
        }
    }

    @supports -moz-bool-pref("BeautyFox.appearance.IE11") {
        #errorShortDesc {
            margin-top: 0 !important;
        }

        #errorLongDesc {
            > ul {
                margin-left: 25px !important;
            }
        }
    }
}