@import "../widget-button/widget-button.scss";

[widget] {
    overflow: hidden;
}

[widget-content] {
    justify-content: flex-start;
    transition: all 0.3s;
}

.data-box {
    margin-top: 1px;
    font-size: 12px;
    display: flex;
    align-items: center;

    .unit {
        font-size: 10px;
        transform: scale(0.9);
    }
}

[chart] {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 99;
}

.s1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;

    i {
        margin-left: 1px;
    }
}

.s2 {
    flex-shrink: 0;
    width: 100%;
    align-items: flex-end;
    transition: all 0.3s;

    .value {
        font-size: 24px;
        line-height: 24px;
        font-weight: 600;
    }

    .unit {
        font-size: 12px;
        color: #666;
    }
}

.s3 {
    width: 100%;
    height: 100%;
    background-color: rgba(253, 133, 133, 0.5);
    position: absolute;
    right: 0;
}

.x44 {
    .s1 {
        width: 50%;
    }

    .s2 {
        width: 50%;
    }
}