.eggy {
    position: fixed;
    width: 400px;
    max-width: 90%;
    padding: 1rem;
    top: 0;
    z-index: 9999;
}

.eggy,
.eggy>div {
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.eggy>div {
    width: 100%;
    -webkit-transition: opacity .3s ease, left .2s ease, right .2s ease, max-height .4s, margin-top .4s, padding .4s;
    transition: opacity .3s ease, left .2s ease, right .2s ease, max-height .4s, margin-top .4s, padding .4s;
    position: relative;
    opacity: 0;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 4px;
    padding: .75rem 1rem;
    background: #fff;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 5fr 1fr;
    grid-template-columns: 1fr 5fr 1fr;
    grid-gap: .5rem;
    display: -ms-flexbox;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 2
}

.eggy>div.open {
    opacity: 1
}

.eggy>div.closing {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0
}

.eggy.top-right {
    right: 0
}

.eggy.top-right>div {
    right: -425px
}

.eggy.top-right>div.open {
    right: 0
}

.eggy.top-left {
    left: 0
}

.eggy.top-left>div {
    left: -425px
}

.eggy.top-left>div.open {
    left: 0
}

/* Theme CSS */
@-webkit-keyframes progressBar {
    0% {
        left: 0
    }

    to {
        left: -105%
    }
}

@keyframes progressBar {
    0% {
        left: 0
    }

    to {
        left: -105%
    }
}

.eggy>div.success {
    background: #f1fbf8;
    border: 2px solid #61c9a8;
}

.eggy>div.success svg:first-of-type {
    fill: #61c9a8
}

.eggy>div.warning {
    background: #fff7ec;
    border: 2px solid #ed9b40
}

.eggy>div.warning svg:first-of-type {
    fill: #ed9b40
}

.eggy>div.info {
    background: #f1f7fd;
    border: 2px solid #40a2ed
}

.eggy>div.info svg:first-of-type {
    fill: #40a2ed
}

.eggy>div.error {
    background: #fef3f4;
    border: 2px solid #d64550
}

.eggy>div.error svg:first-of-type {
    fill: #d64550
}

.eggy>div svg:first-of-type {
    width: 30px;
    z-index: 2
}

.eggy>div svg:last-of-type {
    display: block;
    z-index: 2;
    width: 25px;
    fill: #8d8d8d;
    -ms-grid-column-align: center;
    justify-self: center;
    cursor: pointer;
    margin-left: auto
}

.eggy>div>div .message,
.eggy>div>div .title {
    margin: .1rem 0;
    color: #404040
}

.eggy>div>div .message.title,
.eggy>div>div .title.title {
    font-weight: 600;
    font-size: .8rem;
    margin-bottom: 5px;
}

.eggy>div>div .message.message,
.eggy>div>div .title.message {
    font-weight: 400;
    font-size: .7rem;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* Progressbar CSS */
.eggy>div .progress-bar {
    display: unset;
    height: 100%;
    width: 105%;
    position: absolute;
    top: 0;
    z-index: 1;
    -webkit-clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    -webkit-animation-name: progressBar;
    animation-name: progressBar;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear
}

.eggy>div.success>.progress-bar {
    background-color: rgba(97, 201, 168, .1)
}

.eggy>div.warning>.progress-bar {
    background-color: rgba(237, 155, 64, .1)
}

.eggy>div.info>.progress-bar {
    background-color: rgba(64, 162, 237, .1)
}

.eggy>div.error>.progress-bar {
    background-color: rgba(214, 69, 80, .1)
}