.notification {
    padding: 5rem 0.75em;
    position: fixed;
    top: 1.5em;
    right: 1.5em;
    width: 18.75em;
    max-width: calc(100% - 3em);
    transition: transform 0.15s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 999;
}

.notification__box,
.notification__content,
.notification__btns {
    display: flex;
}

.notification__box,
.notification__content {
    align-items: center;
}

.notification__box {
    animation: flyIn 0.3s ease-out;
    background-color: hsl(0, 0%, 100%);
    border-radius: 0.75em;
    box-shadow: 0 0.5em 1em hsla(var(--hue), 10%, 10%, 0.1);
    height: 5em;
    transition: background-color var(--transDur),
    color var(--transDur);
}

.notification--out .notification__box {
    animation: flyOut 0.3s ease-out forwards;
}

.notification__content {
    padding: 0.375em 1em;
    width: 100%;
    height: 100%;
}

.notification__icon {
    flex-shrink: 0;
    margin-right: 0.75em;
    width: 2em;
    height: 2em;
}

.notification__icon-svg {
    width: 100%;
    height: auto;
}

.notification__text {
    line-height: 1.333;
}

.notification__text-title {
    font-size: 1em;
    font-weight: bold;
}

.notification__text-subtitle {
    font-size: 0.8em;
    opacity: 0.75;
}

.notification__btns {
    box-shadow: -1px 0 0 hsla(var(--hue), 10%, 10%, 0.15);
    flex-direction: column;
    flex-shrink: 0;
    min-width: 4em;
    height: 100%;
    transition: box-shadow var(--transDur);

}

.notification__btn {
    background-color: transparent;
    box-shadow: 0 0 0 hsla(var(--hue), 10%, 10%, 0.5) inset;
    font-size: 0.8em;
    line-height: 1;
    font-weight: 500;
    height: 100%;
    padding: 0 0.5rem;
    transition: background-color var(--transDur),
    color var(--transDur);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.notification__btn-text {
    display: inline-block;
    pointer-events: none;
}

.notification__btn:first-of-type {
    border-radius: 0 0.75rem 0 0;
}

.notification__btn:last-of-type {
    border-radius: 0 0 0.75rem 0;
}

.notification__btn:only-child {
    border-radius: 0 0.75rem 0.75rem 0;
}

.notification__btn + .notification__btn {
    box-shadow: 0 -1px 0 hsla(var(--hue), 10%, 10%, 0.15);
    font-weight: 400;
}

.notification__btn:active,
.notification__btn:focus {
    background-color: hsl(var(--hue), 10%, 95%);
}

.notification__btn:focus {
    outline: transparent;
}

@keyframes flyIn {
    from {
        transform: translateX(calc(100% + 1.5em));
    }
    to {
        transform: translateX(0);
    }
}

@keyframes flyOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100% + 1.5em));
    }
}