/* Component */
.alert-item {
    top: 1rem;
    right: 1rem;
    position: fixed !important;
    width: 70%;
}

.alert-item {
    max-height: 9.5rem !important;
    z-index: 50 !important;
    transform: translateX(100%);
    transition-duration: 0.3s;
    padding: .75rem 1.5rem;
    margin-bottom: .5rem;
    cursor: pointer;
}

.border-rounded .alert-item {
    border-radius: .75rem;
}

.archive .alert-item .desc {
    padding-top: 0;
    padding-bottom: 0;
}

.alert-item .title {
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 0.6rem;
    color: var(--color-background);
}

.alert-item .editor {
    font-size: 1rem;
    color: var(--color-background);
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-item .btn-wrapper {
    margin-top: 0.6rem;
}

.alert-item .btn {
    font-size: 1.1rem;
    color: var(--color-background) !important;
    text-decoration: none;
}

.alert-item.open {
    transform: unset;
    cursor: default;
}

.floatingAlert:not(.open):not(.closing):hover {
    transform: translateX(calc(100% - 86px));
}

.alert-item .alert-content {
    display: flex;
    column-gap: 1.5rem;
}

.alert-item .alert-content svg {
    height: 3.75rem;
    transform: rotate(-25deg);
    fill: var(--color-background)
}

.alert-item button.close {
    background: 0 0;
    border: none;
    position: absolute;
    right: 1.3rem;
    top: 1.3rem !important;
}

.alert-item button svg {
    fill: var(--color-background);
    opacity: .75;
}

.archive-alertes {
    display: flex;
    flex-direction: column;
    margin-bottom: 5%;
    margin-top: 5%;
}

.archive-alertes .alert-item {
    left: 0;
    position: relative !important;
    width: 100%;
    transform: unset;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    max-height: unset !important;
    z-index: 1 !important;
}

.archive-alertes .alert-item .editor {
    -webkit-line-clamp: none;
}

.alert-item {
    display: flex;
    align-items: center;
}

.alert-item.alert-info {
    background-color: #117da3;
}

.alert-item.alert-yellow {
    background-color: #f1bc00;
}

.alert-item.alert-warning {
    background-color: #EB7700;
}

.alert-item.alert-danger {
    background-color: #e44e1c;
}

.alert-item .alert-content-inner .alert-heading,
.alert-item .alert-content-inner div {
    color: white;
}

.bell {
    display: inline-block;
}

.bell.ring-once .bell-swing {
    animation: bell-ring 0.65s cubic-bezier(.2, .8, .3, 1) 0s 3 both;
}

.bell.ring-once .bell-clapper {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: clapper-swing 0.65s cubic-bezier(.2, .8, .3, 1) 0.05s 3 both;
}

.view-all-alerts {
    position: absolute;
    right: 0;
    bottom: -3.9rem;
}

@media screen and (max-width: 768px) {
    .alert-item {
        width: 85%;
        padding: 1rem 1rem .5rem;
    }

    .alert-item .alert-content {
        column-gap: 1rem;
    }

    .alert-item .alert-content svg {
        height: 2.5rem;
    }

    .alert-item .title {
        font-size: 1.05rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .alert-item .editor {
        -webkit-line-clamp: 1;
    }

    .alert-item button.close {
        right: .6rem;
        top: .6rem !important;
    }
}

@keyframes bell-ring {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-25deg);
    }

    30% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    70% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes clapper-swing {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    10% {
        transform: translateX(-1px) rotate(-35deg);
    }

    30% {
        transform: translateX(1px) rotate(20deg);
    }

    50% {
        transform: translateX(-0.6px) rotate(-12deg);
    }

    70% {
        transform: translateX(0.3px) rotate(6deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}