.listing-status-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100px;
    right: 30px;
    white-space: nowrap;
    z-index: 200;
    height: 44px;
}

.listing-status-banner--visible {
    display: flex;
}

.listing-status-banner__close-btn {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #9ca3af;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition:
        background-color 0.15s ease,
        opacity 0.15s ease;
    opacity: 0;
}

.listing-status-banner:hover .listing-status-banner__close-btn {
    opacity: 1;
}

.listing-status-banner__close-btn:hover {
    background: #6b7280;
}

.listing-status-banner__label {
    color: #374151;
}

.listing-status-banner__status {
    font-weight: 700;
}

.listing-status-banner--low .listing-status-banner__status {
    color: #dc2626;
}

.listing-status-banner--medium .listing-status-banner__status {
    color: #d97706;
}

/* Signal bars icon */
.listing-status-banner__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    margin-right: 4px;
}

.listing-status-banner__bar {
    width: 4px;
    border-radius: 1px;
}

.listing-status-banner__bar--1 {
    height: 6px;
}

.listing-status-banner__bar--2 {
    height: 10px;
}

.listing-status-banner__bar--3 {
    height: 14px;
}

/* LOW status - only first bar filled */
.listing-status-banner--low .listing-status-banner__bar--1 {
    background: #dc2626;
}

.listing-status-banner--low .listing-status-banner__bar--2,
.listing-status-banner--low .listing-status-banner__bar--3 {
    background: #e5e7eb;
}

/* MEDIUM status - first two bars filled */
.listing-status-banner--medium .listing-status-banner__bar--1,
.listing-status-banner--medium .listing-status-banner__bar--2 {
    background: #d97706;
}

.listing-status-banner--medium .listing-status-banner__bar--3 {
    background: #e5e7eb;
}

.listing-status-banner__fix-btn {
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: 1px solid;
    background: white;
}

.listing-status-banner--low .listing-status-banner__fix-btn {
    color: #dc2626;
    border-color: #dc2626;
}

.listing-status-banner--low .listing-status-banner__fix-btn:hover {
    background: #fef2f2;
}

.listing-status-banner--medium .listing-status-banner__fix-btn {
    color: #16a34a;
    border-color: #16a34a;
}

.listing-status-banner--medium .listing-status-banner__fix-btn:hover {
    background: #f0fdf4;
}

/* Scheduled Heat Map page adjustment - position below action buttons */
body:has(.actionButtonsContainer) .listing-status-banner {
    top: 130px;
}

/* When timeline is hidden (lift mode), buttons move up so banner can too */
body:has(.actionButtonsContainer.lift) .listing-status-banner {
    top: 82px;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 1059px) {
    .listing-status-banner {
        top: 60px;
        right: 10px;
        font-size: 12px;
        padding: 0 8px;
        height: 36px;
    }

    body:has(.actionButtonsContainer) .listing-status-banner {
        top: 60px;
    }

    body:has(.actionButtonsContainer.lift) .listing-status-banner {
        top: 60px;
    }
}
