/* JASA.DELIVERY LIVE - ringan, tanpa framework */
.jd-live,
.jd-live * {
    box-sizing: border-box;
}

.jd-live {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 10px 28px;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

.jd-live-heading {
    text-align: center;
    margin: 0 0 18px;
}

.jd-live-heading h2 {
    margin: 0;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.15;
    font-weight: 800;
}

.jd-live-heading p {
    margin: 7px 0 0;
    color: #777;
    font-size: 14px;
}

.jd-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.jd-live-card {
    display: block;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    text-decoration: none !important;
    color: #111 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.jd-live-card:active {
    transform: scale(.985);
}

.jd-live-card.is-live {
    border: 2px solid var(--jd-live-color, #e32620);
    box-shadow: 0 5px 18px rgba(227,38,32,.16);
}

.jd-live-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e9e9e9;
}

.jd-live-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jd-live-card.is-live .jd-live-photo img {
    filter: saturate(1.08);
}

.jd-live-dummy {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    background: linear-gradient(145deg, #ededed, #d5d5d5);
}

.jd-live-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 7px;
    background: var(--jd-live-color, #e32620);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(0,0,0,.2);
}

.jd-live-livebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px 9px;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.jd-live-info {
    padding: 10px 11px 12px;
}

.jd-live-info strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.jd-live-info span {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 11px;
}

.jd-live-card.is-live .jd-live-info span {
    color: var(--jd-live-color, #e32620);
    font-weight: 700;
}

.jd-live-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.jd-live-page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    color: #222 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.jd-live-page-link.is-current {
    background: #08a63c;
    border-color: #08a63c;
    color: #fff !important;
}

.jd-live-empty,
.jd-live-control-login {
    max-width: 760px;
    margin: 20px auto;
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.jd-live-control {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
}

.jd-live-control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jd-live-control-buttons button {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    background: #eee;
    color: #111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.jd-live-control-buttons button[data-jd-status="live"] {
    background: #e32620;
    color: #fff;
}

.jd-live-control-message {
    display: block;
    margin-top: 9px;
    color: #777;
}

@media (max-width: 380px) {
    .jd-live {
        padding-left: 7px;
        padding-right: 7px;
    }

    .jd-live-grid {
        gap: 8px;
    }

    .jd-live-card {
        border-radius: 12px;
    }

    .jd-live-info {
        padding: 8px 9px 10px;
    }

    .jd-live-info strong {
        font-size: 12px;
    }
}
