/**
 * Block Skin: rental-live-orders/basic — 모던 카드 그리드.
 *
 * list / slide 모드 모두 mublo-item-layout 의 CSS Grid + Swiper 가
 * 알아서 처리하므로 여기선 카드 디자인만 정의.
 */

.block-live-orders__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* slide 모드에서 swiper-slide 가 0 으로 짜부되지 않도록 안전망 */
.block-live-orders__item {
    min-width: 0;
    height: auto;
    display: flex;
}

.block-live-orders .swiper-wrapper {
    align-items: stretch;
}

/* ── 카드 ─────────────────────────────────────────────── */
.block-live-orders__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

a.block-live-orders__card:hover {
    transform: translateY(-3px);
    border-color: #d6d6e3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    color: inherit;
    text-decoration: none;
}

/* ── 이미지 ───────────────────────────────────────────── */
.block-live-orders__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

@supports not (aspect-ratio: 1) {
    .block-live-orders__media { padding-top: 75%; }
    .block-live-orders__media > img,
    .block-live-orders__media-placeholder { position: absolute; inset: 0; }
}

.block-live-orders__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

a.block-live-orders__card:hover .block-live-orders__media img {
    transform: scale(1.06);
}

.block-live-orders__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #cbd5e1;
}

/* LIVE 칩 */
.block-live-orders__live-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(2px);
}

.block-live-orders__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
    animation: liveorder-pulse 1.6s infinite;
}

@keyframes liveorder-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── 본문 ────────────────────────────────────────────── */
.block-live-orders__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}

/* 브랜드 영역 (로고 또는 이름) + 시각 */
.block-live-orders__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
}

.block-live-orders__brand-logo {
    max-height: 20px;
    max-width: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
}

.block-live-orders__brand-name {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 모델명 */
.block-live-orders__model {
    font-size: 0.75rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 제품명 */
.block-live-orders__goods {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(1.35em * 2);
}

/* 푸터 — "○*○님이 N분 전에 주문" 한 문장 */
.block-live-orders__customer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.4;
}

.block-live-orders__customer-name {
    font-weight: 700;
    color: #6366f1;
}

.block-live-orders__customer-when {
    color: #0f172a;
    font-weight: 600;
}

.block-live-orders__customer-tag {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* 빈 상태 */
.block-live-orders__empty {
    padding: 36px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 12px;
}

/* ── 모바일 ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .block-live-orders__body { padding: 10px 12px 12px; gap: 4px; }
    .block-live-orders__goods { font-size: 0.875rem; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .block-live-orders__pulse { animation: none; }
    a.block-live-orders__card:hover { transform: none; }
    a.block-live-orders__card:hover .block-live-orders__media img { transform: none; }
}
