.forecast-widget {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 600px;
    margin: 30px auto;
}

.forecast-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2;
    display: block;
}

.forecast-box {
    background: #f1f1f1;
    border: 3px solid #ffcc00;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
}

.forecast-section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.2;
    display: block;
}

.forecast-meta {
    text-align: center;
    font-size: 1em;
    color: #444;
    margin-bottom: 10px;
}

.forecast-scenarios {
    margin-top: 10px;
}

.forecast-scenario-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    flex-wrap: wrap;
}

.forecast-scenario-label {
    width: 33%;
    font-weight: bold;
}

.forecast-scenario-price {
    width: 33%;
    text-align: right;
    padding-right: 8px;
}

.forecast-scenario-percent {
    width: 33%;
    text-align: right;
    color: green;
}

@media (max-width: 520px) {
    .forecast-box {
        padding: 12px;
    }

    .forecast-scenario-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .forecast-scenario-label,
    .forecast-scenario-price,
    .forecast-scenario-percent {
        width: 100%;
        text-align: center;
        padding-right: 0;
        margin-bottom: 2px;
    }
}

.forecast-last-update {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
    margin-bottom: 10px;
}

.forecast-hover {
    position: relative;
}

.forecast-hover[data-tooltip]:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 120%;
    background: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    font-size: 15px;
    pointer-events: none;
}
