/* KAMAR side-menu "Ostatnio oglądane" — native-looking JetMenu row.
   Brand: navy #103547, hover green #059239, selected dark-red #962020. */

li.kamar-sm-wrap.kamar-sm-recent {
    list-style: none !important;
    border-bottom: 1px solid rgba(16, 53, 71, .17);   /* match the native item separator */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
li.kamar-sm-wrap.kamar-sm-recent::marker { content: "" !important; }

.kamar-sm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 9px 0;               /* arrow sits flush to the content edge, like native (~46px) */
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    font-size: 17px;              /* match native menu items */
    font-weight: 500;
    line-height: 1.4;
    color: #103547;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
/* kill any theme hover/active/focus background */
.kamar-sm-head:hover,
.kamar-sm-head:focus,
.kamar-sm-head:active { background: transparent !important; }

.kamar-sm-label { color: inherit; }
/* emoji sized/spaced like a native .jet-menu-icon: 20px box + 10px gap to text */
.kamar-sm-recent .kamar-sm-label::before {
    content: "🕘";
    display: inline-block;
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* hover → success green; selected (expanded) → dark red */
.kamar-sm-head:hover,
.kamar-sm-head:hover .kamar-sm-arrow { color: #059239; }
.kamar-sm-head[aria-expanded="true"],
.kamar-sm-head[aria-expanded="true"] .kamar-sm-arrow { color: #962020; }

.kamar-sm-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: #103547;
    transition: transform .2s ease, color .15s ease;
}
.kamar-sm-arrow i { font-size: 20px; line-height: 1; }
.kamar-sm-head[aria-expanded="true"] .kamar-sm-arrow { transform: rotate(90deg); }

/* ── recently-viewed product list ─────────────────────────────────────── */
.kamar-sm-list {
    padding: 2px 8px 12px 0;
    max-height: 344px;           /* ~5 product rows */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;       /* Firefox: thinnest scrollbar */
    scrollbar-color: rgba(16, 53, 71, .35) transparent;
}
.kamar-sm-list::-webkit-scrollbar { width: 4px; }
.kamar-sm-list::-webkit-scrollbar-thumb { background: rgba(16, 53, 71, .35); border-radius: 4px; }
.kamar-sm-list::-webkit-scrollbar-track { background: transparent; }

.kamar-sm-loading, .kamar-sm-empty {
    padding: 8px 4px;
    font-size: 13px;
    color: #75795E;
}

.kamar-sm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: #103547;
}
.kamar-sm-item:hover { background: #f4f7ff; }

.kamar-sm-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f4f7ff center/cover no-repeat;
    border: 1px solid rgba(16, 53, 71, .1);
}

.kamar-sm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.kamar-sm-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #103547;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kamar-sm-price { font-size: 13px; font-weight: 700; color: #D40513; }
.kamar-sm-price del { opacity: 1; font-weight: 400; margin-right: 4px; color: #565651; }
.kamar-sm-price ins { text-decoration: none; color: #D40513; }
