/*
 * Block Skin: device/hyetaek-card — 혜택의 차이 시안 E #phones
 * 색은 프레임 토큰(--hy-accent, --foreground, --muted-foreground, --border, --muted)만 소비하고
 * 토큰이 없는 프레임에서도 시안 색으로 보이도록 폴백을 둔다.
 */
.hy-dev {
    --hy-dev-accent: var(--hy-accent, #C4001A);
    --hy-dev-accent-soft: #FCEBED;
    --hy-dev-ink: var(--foreground, #111111);
    --hy-dev-sub: var(--muted-foreground, #555555);
    --hy-dev-faint: #767676;
    --hy-dev-line: var(--border, #E5E5E5);
    --hy-dev-soft: var(--muted, #F4F4F4);
    min-width: 0;
    color: var(--hy-dev-ink);
}
.hy-dev *, .hy-dev *::before, .hy-dev *::after { box-sizing: border-box; }

/* ── 제목줄 + 통신사 탭 ── */
.hy-dev__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.hy-dev__head > .block-title { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.hy-dev__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hy-dev__tab {
    height: 40px;
    min-width: 40px;
    padding: 0 14px;
    border: 1px solid #DDDDDD;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--hy-dev-ink);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}
.hy-dev__tab:hover { border-color: var(--hy-dev-ink); }
.hy-dev__tab.is-active {
    border-color: #111111;
    background: #111111;
    color: #FFFFFF;
    font-weight: 700;
}
.hy-dev__tab:focus-visible { outline: 2px solid var(--hy-dev-accent); outline-offset: 2px; }

/* ── 목록 (열 수는 관리자 설정 — MubloItemLayout) ── */
.hy-dev__layout:not(.is-slide) > .hy-dev__list { gap: 28px 18px; }
.hy-dev__item { min-width: 0; }

/* ── 카드 ── */
.hy-dev__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: var(--hy-dev-ink);
    text-decoration: none;
}
.hy-dev__card:hover { color: var(--hy-dev-ink); text-decoration: none; }
.hy-dev__card:hover .hy-dev__name { color: var(--hy-dev-accent); }

.hy-dev__media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--hy-dev-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hy-dev__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 8%;
}
.hy-dev__ph { width: 34%; height: 34%; color: #BBBBBB; }
.hy-dev__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 999px;
    background: #111111;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}
.hy-dev__tag[hidden] { display: none; }

.hy-dev__maker { display: block; font-size: 12px; font-weight: 700; color: var(--hy-dev-sub); }
.hy-dev__name {
    display: -webkit-box;
    margin-top: -6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 색상 점 */
.hy-dev__colors { display: flex; flex-wrap: wrap; gap: 6px; }
.hy-dev__colors i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #DDDDDD;
}

/* 월 납부액 */
.hy-dev__basis {
    display: block;
    margin-bottom: -4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--hy-dev-faint);
}
.hy-dev__boxes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
}
.hy-dev__box {
    display: block;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--hy-dev-soft);
}
.hy-dev__box--sel { background: var(--hy-dev-accent-soft); }
.hy-dev__box-label { display: block; color: var(--hy-dev-sub); }
.hy-dev__box--sel .hy-dev__box-label { color: var(--hy-dev-accent); }
.hy-dev__box-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.hy-dev__box--sel .hy-dev__box-value { color: var(--hy-dev-accent); }
/* 계산되지 않은 할인 유형 — 상세에서 비교하도록 안내 */
.hy-dev__box-value.is-empty { font-size: 12px; font-weight: 500; color: var(--hy-dev-faint); }
.hy-dev__box--sel .hy-dev__box-value.is-empty { color: var(--hy-dev-faint); }

/* 선택한 통신사에 이 모델이 없을 때 */
.hy-dev__off { display: none; font-size: 12px; color: var(--hy-dev-faint); }
.hy-dev__item.is-off .hy-dev__card { opacity: 0.45; }
.hy-dev__item.is-off .hy-dev__basis,
.hy-dev__item.is-off .hy-dev__boxes { display: none; }
.hy-dev__item.is-off .hy-dev__off { display: block; }

/* ── 모바일 ── */
@media (max-width: 768px) {
    .hy-dev__head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .hy-dev__head > .block-title { width: 100%; }
    .hy-dev__layout:not(.is-slide) > .hy-dev__list { gap: 18px 10px; }
    .hy-dev__name { font-size: 15px; }
    /* 2열 카드에서 상자가 좁아지므로 세로로 쌓고 라벨·금액을 한 줄에 둔다 */
    .hy-dev__boxes { grid-template-columns: minmax(0, 1fr); }
    .hy-dev__box {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
        padding: 7px 9px;
    }
    .hy-dev__box-label { flex: none; font-size: 11px; }
    .hy-dev__box-value { min-width: 0; font-size: 13px; text-align: right; }
}
