/* KMR 0.14.88 — frontend regression repair */

/*
 * Kalendarz rozkładu ma pozostać zakotwiczony przy kontrolce daty.
 * Nadpisujemy dawną regułę mobilną, która wymuszała viewport modal
 * position:fixed + top/left 50%.
 */
@media (max-width: 560px) {
    .schedule-date-card .schedule-date-calendar {
        position: relative;
    }

    .schedule-date-card
    .schedule-date-calendar
    .stats-calendar-popover {
        position: absolute !important;
        top: calc(100% + 7px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: min(310px, calc(100vw - 32px)) !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 300;
        box-shadow: 0 18px 48px rgba(16, 42, 86, .20);
    }
}

/* Belka ulubionych — wyłącznie gdy użytkownik ma zapisane ulubione. */
.kmr-favorites-bar {
    position: relative;
    z-index: 42;
    border-bottom: 1px solid rgba(16, 42, 86, .08);
    background:
        linear-gradient(
            90deg,
            rgba(244, 196, 48, .10),
            rgba(16, 42, 86, .035)
        );
}

.kmr-favorites-bar-inner {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 7px;
}

.kmr-favorites-bar-title {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kmr-favorites-bar-links {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 1px 3px;
    scrollbar-width: thin;
}

.kmr-favorites-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid rgba(16, 42, 86, .12);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, .92);
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(16, 42, 86, .045);
}

.kmr-favorites-chip:hover {
    border-color: rgba(16, 42, 86, .28);
    background: #fff;
}

.kmr-favorites-chip-type {
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}

.kmr-favorites-chip strong {
    font-size: 10px;
    font-weight: 900;
}

.kmr-favorites-chip.is-line strong {
    color: var(--primary);
}

.kmr-favorites-chip.is-stop strong {
    color: #34425a;
}

@media (max-width: 640px) {
    .kmr-favorites-bar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-block: 7px 8px;
    }

    .kmr-favorites-bar-links {
        width: 100%;
    }
}

/* R38-R5-R2 INVALID DATE NOTICE PROMINENCE */
.date-fallback-notice {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin: 14px 0 16px;
    padding: 13px 15px;
    border: 1px solid #e6c565;
    border-left: 4px solid #d69a08;
    border-radius: 14px;
    color: #5f490b;
    background: linear-gradient(90deg, #fff8dc 0%, #fffdf3 100%);
    box-shadow: 0 7px 20px rgba(122, 89, 0, .06);
}

.date-fallback-notice-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #5c4300;
    background: #f7d66f;
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
}

.date-fallback-notice-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.date-fallback-notice-copy > strong {
    color: #4e3900;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
}

.date-fallback-notice-copy > span {
    color: #6d5718;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 560px) {
    .date-fallback-notice {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        padding: 12px 13px;
    }

    .date-fallback-notice-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
}
/* /R38-R5-R2 INVALID DATE NOTICE PROMINENCE */
