/* elpris-prisudvikling.css */
.elpris-changes-wrapper {
    font-family: system-ui, sans-serif;
    margin: 20px auto;
    max-width: 1080px;
}

.elpris-change-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 759px) {
    .elpris-change-cards {
        gap: 5px;
    }
}

.elpris-change-card {
    background: #f7f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px 20px;
    flex: 1 1 calc(25% - 20px);
    min-width: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.elpris-change-text {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size:14px;
}

.elpris-change-card h5 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
}

.elpris-change-percentage {
    font-size: 18px;
    font-weight: bold;
}

.elpris-change-percentage.positive {
    color: #c0392b; /* rød */
}

.elpris-change-percentage.negative {
    color: #27ae60; /* grøn */
}

.elpris-change-diff {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    font-weight: 400;
}

.elpris-change-icon {
    position: relative;
    width: 30px;
    height: 30px;
    font-size: 0;
    margin-left: 12px;
}

.elpris-change-icon::after {
    content: "\279C";
    display: block;
    background-color: #d33131;
    color: #fff;
    font-size: 21px;
    text-align: center;
    border-radius: 15px;
    transform: rotate(-45deg);
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-weight: 300;
}

.elpris-change-icon.negative::after {
    background-color: #27ae60;
    transform: rotate(135deg);
}
@media (max-width: 639px) {
    .elpris-change-cards {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }

    .elpris-change-card {
        flex: 1 1 100%;
        width: 100%;
    }
}
