* {
    box-sizing: border-box;
}

html {
    min-width: 0;
}

body {
    margin: 0;
    padding: 8px;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.coin_widget {
    width: 100%;
    min-width: 0;
    padding: 18px 20px 14px;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.market_info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.market_label {
    display: inline-block;
    align-self: flex-start;
    padding: 0 8px;
    border-radius: 3px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 22px;
    height: 22px;
    text-decoration: none;
    transition: background-color 0.5s ease;
}
.market_label:hover {
    background: #ff0000;
    transition: background-color 0.5s ease;
}

.name {
    overflow: hidden;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chg {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 7px;
    background: #f1f3f6;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.chg.up {
    background: #fff0ef;
    color: #d60000;
}

.chg.down {
    background: #edf4ff;
    color: #0051c7;
}

.price_info {
    padding: 14px 0 11px;
}

.krw {
    color: #101828;
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.usd {
    min-height: 20px;
    margin-top: 5px;
    color: #8a94a6;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.chart_section {
    padding-top: 11px;
    border-top: 1px solid #eef0f4;
}

.chart_heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.chart_interval {
    color: #98a2b3;
    font-weight: 400;
}

#chart {
    display: block;
    width: 100%;
    height: 118px;
}

.foot {
    margin-top: 4px;
    color: #a0a8b5;
    font-size: 10px;
    text-align: right;
}

@media (max-width: 360px) {
    body {
        padding: 4px;
    }

    .coin_widget {
        padding: 14px 14px 11px;
        border-radius: 11px;
    }
}
