.annunciatoralert-wrapper {
    position: fixed;
    bottom: 15px;
    /*    left: 70px;*/
    width: 340px;
    z-index: 1049;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    background: var(--bs-body-bg);
    color: currentColor;
    margin-left: 5px;
    border: 1px dashed currentColor;
}

.annunciatoralert-header {
    display: flex;
    justify-content: flex-end;
}

    .annunciatoralert-header .annunciatoralert-title {
        width: 70%;
        font-weight: 700;
    }
    /* Controls */
    .annunciatoralert-header .annunciatoralert-controls {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
        margin-bottom: 8px;
        width: 30%;
    }

        .annunciatoralert-header .annunciatoralert-controls button {
            padding: 4px 8px;
            font-size: 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            background: var(--bs-body-bg);
            color: currentColor;
        }

.annunciatoralert-controls button:hover {
    background: var(--site-primary);
}
/* Alert container */
.annunciatoralert-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: height 0.35s ease;
}
/* Height states */
.height-1 {
    height: 66px;
}
/* 1 alert */
.height-3 {
    height: 200px;
    overflow-y: auto;
}
/* default 3 alerts */
.height-8 {
    height: 620px;
    overflow-y: auto;
}
/* 8 alerts */
.annunciatoralert-wrapper:has(.annunciatoralert-container.height-8) .btn-height-8 {
    display: none;
}

.annunciatoralert-wrapper:has(.annunciatoralert-container.height-3) .btn-height-3 {
    display: none;
}

.annunciatoralert-wrapper:has(.annunciatoralert-container.height-1) .btn-height-1 {
    display: none;
}

.annunciatoralert-header .annunciatoralert-controls button span {
    width: 16px;
    height: 16px;
    display: block;
	opacity: .5;
}

.annunciatoralert-header .annunciatoralert-controls button:hover span {
    filter: var(--icon-filter-white);
}

.annunciatoralert-wrapper .btn-height-8 span {
    background: url("../IImageService/chevron-up-double") center center no-repeat;
}

.annunciatoralert-wrapper .btn-height-3 span {
    background: url("../IImageService/chevron-up") center center no-repeat;
}

.annunciatoralert-wrapper:has(.annunciatoralert-container.height-8) .btn-height-3 span {
    background: url("../IImageService/chevron-down") center center no-repeat;
}

.annunciatoralert-wrapper .btn-height-1 span {
    background: url("../IImageService/minus") center center no-repeat;
}
/* Alert style */
.annunciatoralert {
    background: var(--bs-body-bg);
    color: currentColor;
    border: 0px solid rgba(0,0,0,0.25);
    padding: 8px;
    border-radius: 6px;
    /* box-shadow: 0 1px 1px rgba(0,0,0,0.25); */
    font-size: 14px;
/*    transform: translateX(120%);
    opacity: 0;*/
    cursor: pointer;
}

    .annunciatoralert:hover {
        background: rgba(var(--primary), 0.1);
    }

    .annunciatoralert .al-alert-line1 {
        display: block;
    }

    .annunciatoralert .al-alert-line2 {
        display: block;
    }

    .annunciatoralert .al-alert-line1 > div {
        display: inline-block;
    }

    .annunciatoralert .al-alert-line1 .al-alert-icon {
        width: 40px;
        height: 40px;
        background-color: rgba(0,0,0,0.3);
        border-radius: 40px;
    }

        .annunciatoralert .al-alert-line1 .al-alert-icon img {
            filter: var(--icon-filter-white);
            display: block;
            margin: 8px auto;
        }

    .annunciatoralert .al-alert-line1 .al-route-name {
        padding: 10px 0px;
        color: currentColor;
        font-weight: 700;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
		vertical-align: top;
    }
    .al-route-name {
        max-width: 230px;
    }
    .annunciatoralert .al-alert-line1 .al-alert-alert {
        padding: 10px 10px;
        color: currentColor;
        opacity: .75;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        vertical-align: top
    }

    .annunciatoralert .al-alert-line1 .al-route-id .al-route-color {
        height: 14px;
        width: 14px;
        display: inline-block;
        margin: 13px 6px;
        border-radius: 10px;
        background-color: rgba(0,0,0,0.4);
    }

    .annunciatoralert .al-alert-line2 .al-alert-content {
        padding: 0px 10px 0px 50px;
        font-size: 12px;
        min-height: 6px;
        color: currentColor;
        opacity: .75;
        width: 100%;
        margin-top: -10px;
        display: block;
        text-align: left;
        line-height: 1.1;
    }

    .annunciatoralert-wrapper:has(.annunciatoralert-container.height-1) .annunciatoralert .al-alert-line2 .al-alert-content {
        display: none;
    }
    /*.annunciatoralert .al-alert-line2 .al-alert-content::before {
		content:"“";
		font-size: 36px;
		font-family: Times New Roman, serif;
		display: block;
		opacity: .4;
		font-weight: 700;
		height: 20px;
		float: left;
	}
	.annunciatoralert .al-alert-line2 .al-alert-content::after {
		content:"”";
		font-size: 36px;
		font-family: Times New Roman, serif;
		display: block;
		opacity: .4;
		font-weight: 700;
		height: 20px;
		float: right;
	}*/
    /*.slide-in {
    animation: slideInRight 0.3s ease forwards;
}*/
    /* Add this at the end of your existing CSS */
    /* Animation for new messages - only this is new */
    .annunciatoralert.slide-in {
        animation: slideInRight 0.3s ease forwards;
    }

    @keyframes slideInRight {
        0% {
            transform: translateX(20px);
            opacity: 0.5;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }
    /* Optional subtle highlight for new messages */
    .annunciatoralert.highlight {
        background: rgba(var(--site-primary-rgb), 0.1);
        transition: background 0.5s ease;
    }
    /*@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}*/

.annunciator-driver-img {
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    padding: 1px;
    margin-right: 10px;
}

.annunciator-route-header-content {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.annunciator-route-driver {
    display: inline-block;
    vertical-align: middle;
    margin-top: -5px;
    width: calc(100% - 115px);
}

.annunciator-driver-icon {
    width: 48px;
    height: 48px;
    border-radius: 30px;
    padding: 0px;
}

.annunciator-route-no-driver-icon {
    width: 39px;
    height: 39px;
    border-radius: 30px;
    margin: 6px;
    filter: var(--icon-filter-white);
    opacity: 0.75;
}
