/* Notifications
/* ---------------------------------------------------------- */

/* Base notification style */
.gh-notifications {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 7000;
    display: flex;
    flex-direction: column;
}

/* Base notification style */
.gh-notification {
    position: relative;
    display: flex;
    margin-top: 5px;
    padding: 4px;
    width: 240px;
    border: color-mod(var(--blue) l(-10%)) 1px solid;
    background: var(--blue);
    border-radius: 4px;
    box-shadow: rgba(0,0,0,0.06) 0 1px 7px;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.25em;
    opacity: 0.88;
    transition: opacity 0.3s ease;
}

.gh-notification:hover {
    cursor: pointer;
    opacity: 0.95;
}

.gh-notification-content {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 3px;
    transition: background 0.2s ease;
    color: rgba(255,255,255,0.8);
}

.gh-notification-title {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.5rem;
}

.gh-notification a {
    color: #fff;
    text-decoration: underline;
}

.gh-notification em {
    font-weight: bold;
    font-style: normal;
}

.gh-notification-close {
    position: absolute;
    top: 1px;
    right: 1px;
    padding: 6px 6px 5px 5px;
    background: var(--blue);
    border-radius: 2px;
    font-size: 7px;
    line-height: 5px;
}

.gh-notification-close svg {
    height: 7px;
    width: 7px;
    fill: #fff;
}

.gh-notification-close svg path {
    stroke-width: 2px;
}

.gh-notification-close:hover {
    background: #fff;
}

.gh-notification-close:hover svg {
    fill: var(--red)
}

.gh-notification-passive {
    animation: fade-out;
    animation-delay: 5s;
    animation-iteration-count: 1;
}

.gh-notification-passive:hover {
    animation: fade-in;
}

/* Red notification
/* ---------------------------------------------------------- */

.gh-notification-red {
    border: color-mod(var(--red) lightness(+28%)) 1px solid;
}

.gh-notification-red em {
    color: var(--red);
}

.gh-notification-red:hover .gh-notification-content {
    background: color-mod(var(--red) lightness(+40%));
}

/* Green notification
/* ---------------------------------------------------------- */

.gh-notification-green {
    border: color-mod(var(--green) lightness(+28%)) 1px solid;
}

.gh-notification-green em {
    color: var(--green);
}

.gh-notification-green:hover .gh-notification-content {
    background: color-mod(var(--green) lightness(+40%));
}

/* Schedule notification top
/* ---------------------------------------------------------- */

.gh-notification-schedule {
    display: inline-block;
    margin: 0;
    padding: 7px 10px;
    width: auto;
    border: var(--lightgrey) 1px solid;
    border-radius: 2px;
    box-shadow: none;
    vertical-align: middle;
    line-height: 1.3em;
}

.gh-notification-schedule:hover {
    cursor: default;
}

/* Alerts
/* ---------------------------------------------------------- */

/* Alert wrapper, top of screen */
.gh-alerts {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Base alert style */
.gh-alert {
    z-index: 9999;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    border-bottom: #dfe1e3 1px solid;
    background-color: white;
}

.gh-alert-content {
    font-size: 1.4rem;
    line-height: 1.3em;
    font-weight: 200;
    user-select: text;
}

.gh-alert a {
    text-decoration: underline;
    font-weight: 400;
    user-select: text;
}

.gh-alert-close {
    flex-shrink: 0;
    margin-left: 20px;
    padding: 5px;
    font-size: 10px;
    line-height: 10px;
}

.gh-alert-close svg {
    height: 10px;
    width: 10px;
}

.gh-alert-close:hover {
    color: var(--red);
}

.gh-alert-close svg:hover {
    fill: var(--red);
}


/* Blue alert
/* ---------------------------------------------------------- */

.gh-alert-blue {
    border-bottom: color-mod(var(--blue) lightness(-10%)) 1px solid;
    background: var(--blue);
    color: #fff;
}
.gh-alert-blue a {
    color: #fff;
}
.gh-alert-blue svg {
    fill: #fff;
}
.gh-alert-blue .gh-alert-close svg:hover {
    fill: #fff;
}

/* Red alert
/* ---------------------------------------------------------- */

.gh-alert-red {
    border-bottom: color-mod(var(--red) lightness(-10%)) 1px solid;
    background: var(--red);
    color: #fff;
}
.gh-alert-red a {
    color: #fff;
}
.gh-alert-red svg {
    fill: #fff;
}
.gh-alert-red .gh-alert-close:hover {
    color: #fff;
}
.gh-alert-red .gh-alert-close svg:hover {
    fill: #fff;
}

/* Green alert
/* ---------------------------------------------------------- */

.gh-alert-green {
    border-bottom: color-mod(var(--green) lightness(-7%)) 1px solid;
    background: var(--green);
    color: #fff;
}
.gh-alert-green a {
    color: #fff;
}
.gh-alert-green svg {
    fill: #fff;
}
.gh-alert-green .gh-alert-close:hover {
    color: #fff;
}
.gh-alert-green .gh-alert-close svg:hover {
    fill: #fff;
}

/* Black alert
/* ---------------------------------------------------------- */

.gh-alert-black {
    border-bottom: color-mod(var(--darkgrey) lightness(-10%)) 1px solid;
    background: var(--darkgrey);
    color: #fff;
}
.gh-alert-black a {
    color: #fff;
}
.gh-alert-black svg {
    fill: #fff;
}
.gh-alert-black .gh-alert-close:hover {
    color: #fff;
}
.gh-alert-black .gh-alert-close svg:hover {
    fill: #fff;
}

/* Yellow alert
/* ---------------------------------------------------------- */

.gh-alert-yellow {
    border-bottom: #e9ebb6 1px solid;
    background: #fdffb6;
}
