$border-radius: 3px;
$side-padding: 20px;

.itsec-admin-notice {
    background: white;
    border-radius: $border-radius;
    box-shadow: 0 0 5px rgba(211, 211, 211, 0.35);

    .itsec-admin-notice__header {
        background: #eeecec;
        padding: calc(#{$side-padding} / 2);
        border-top-left-radius: $border-radius;
        border-top-right-radius: $border-radius;

        &:last-child {
            border-bottom-left-radius: $border-radius;
            border-bottom-right-radius: $border-radius;
        }

        & .components-button {
            margin-top: 1em;

            @include bordered-button('blue');
        }

        @at-root {
            .itsec-admin-notice--severity-error#{&} {
                background: $alert-red;

                & .components-button {
                    @include bordered-button('red');
                }
            }

            .itsec-admin-notice--severity-warning#{&} {
                background: $alert-orange;

                & .components-button {
                    @include bordered-button('orange');
                }
            }

            .itsec-admin-notice--severity-info#{&} {
                background: $alert-blue;
            }

            .itsec-admin-notice--severity-success#{&} {
                background: $alert-green;

                & .components-button {
                    @include bordered-button('green');
                }
            }
        }
    }

    .itsec-admin-notice .itsec-admin-notice__header:last-child {
        border-bottom-left-radius: $border-radius;
        border-bottom-right-radius: $border-radius;
    }

    .itsec-admin-notice__header .itsec-admin-notice__header-inset {
        background: white;
        border-radius: 5px;
        padding: calc(#{$side-padding} / 2);

        .components-button:not(:last-child) {
            margin-right: .5rem;
        }
    }

    .itsec-admin-notice__header h4 {
        font-size: 14px;
        margin: 0;
        color: $dark-text;
        font-weight: 600;
        text-transform: none;
    }

    .itsec-admin-notice__message {
        border-left: 1px solid $border-color;
        border-right: 1px solid $border-color;
        padding: 10px $side-padding;

        & p:first-child {
            margin-top: 0;
        }

        & p:last-child {
            margin-bottom: 0;
        }
    }

    .itsec-admin-notice__meta {
        border-left: 1px solid $border-color;
        border-right: 1px solid $border-color;
        background: $focused-blue;
        padding: 5px $side-padding;
        margin: 0;
        display: grid;
        grid-template: auto / min-content 1fr;
        grid-gap: 5px 20px;

        & dt,
        & dd {
            margin: 0;
        }

        & dt {
            text-transform: uppercase;
            color: darken(#444444, 25);
        }
    }

    .itsec-admin-notice__footer {
        border-left: 1px solid $border-color;
        border-right: 1px solid $border-color;
        padding: 5px $side-padding;
        font-size: 11px;
    }

    & > :last-child:not(.itsec-admin-notice__header) {
        border-bottom: 1px solid $border-color;
    }
}

.itsec-plugin-rebranding-container {
    border-left: 4px solid #DBA618;
    border-bottom: 1px solid #C3C4C7;
    border-right: 1px solid #C3C4C7;
    border-top: 1px solid #C3C4C7;
    background: #FCF9E8;
    padding: 10px;
    position: relative;

    .itsec-rebranding-header {
        font-weight: 700;
        font-size: 14px;
        color: #333333;
        margin: 0px;
    }

    .itsec-rebranding-header:before {
        content: "\f14c";
        color: #B32D2E;
        font: normal 20px/1 dashicons;
        margin-right: 6px;
        display: inline-block;
        vertical-align: top;
    }

    p {
        font-weight: 500;
        font-size: 14px;
        color: #333333;
        margin: 0 0 0 26px !important;

    }

    a {
        text-decoration: underline;
        margin-left: 26px;
    }

    .itsec-plugin-rebranding-notice-dismiss {
        position: absolute;
        top: 0;
        right: 1px;
        border: none;
        margin: 0;
        padding: 9px;
        background: none;
        color: #787c82;
        cursor: pointer;
    }

    .itsec-plugin-rebranding-notice-dismiss:before {
        background: none;
        color: #787c82;
        content: "\f153";
        display: block;
        font: normal 16px/20px dashicons;
        speak: never;
        height: 20px;
        text-align: center;
        width: 20px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
