/* Elbob.dk – [vis_elbob_priser_v2]
 * Flyttet fra tidligere inline/site CSS til et dedikeret plugin-asset.
 * Reglerne er scoped til #elbob-main for at undgå CSS-læk til resten af sitet.
 */
#elbob-main {
    --eb-green: #004630;
    --eb-yellow: #FDB913;
    --eb-light: #f9f9f9;
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

#elbob-main .eb-header-main {
    background: var(--eb-green);
    color: #fff;
    padding: 20px 20px 45px 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

#elbob-main .eb-header-main h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 800;
    color: #fff;
    border: none;
}

#elbob-main #eb-current-date {
    color: var(--eb-yellow);
    margin: 5px 0 15px 0;
    font-weight: bold;
    font-size: 0.9em;
}

#elbob-main .eb-moms-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

#elbob-main .eb-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

#elbob-main .eb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#elbob-main .eb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 22px;
}

#elbob-main .eb-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#elbob-main .eb-switch input:checked + .eb-slider {
    background-color: var(--eb-yellow);
}

#elbob-main .eb-switch input:checked + .eb-slider::before {
    transform: translateX(22px);
}

#elbob-main .eb-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: -30px;
    padding: 0 20px;
}

#elbob-main .eb-price-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 6px solid var(--eb-yellow);
}

#elbob-main .eb-price-card .zone-title {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

#elbob-main .eb-price-card .current-price {
    font-size: 2.8em;
    font-weight: 900;
    color: var(--eb-green);
    display: block;
    line-height: 1;
}

#elbob-main .eb-price-card .unit {
    font-size: 0.4em;
    color: #999;
    margin-left: 3px;
    vertical-align: middle;
}

#elbob-main .eb-price-card .label-now {
    font-size: 0.8em;
    color: #888;
    margin-top: 8px;
}

#elbob-main .eb-graph-container {
    background: #fff;
    margin: 25px 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#elbob-main .eb-chart-wrapper {
    height: 320px;
    position: relative;
    width: 100%;
}

#elbob-main .eb-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
}

#elbob-main .stat-card {
    background: var(--eb-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

#elbob-main .stat-card h4 {
    margin: 0 0 8px 0;
    color: var(--eb-green);
    border-bottom: 2px solid var(--eb-yellow);
    display: inline-block;
    font-size: 0.95em;
}

#elbob-main .stat-content {
    font-size: 0.85em;
    line-height: 1.5;
    color: #555;
}

#elbob-main .eb-loading-placeholder {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #999;
}

#elbob-main .eb-disclaimer {
    text-align: center;
    font-size: 0.75em;
    color: #888;
    margin-top: 25px;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 600px) {
    #elbob-main .eb-grid-main,
    #elbob-main .eb-quick-stats {
        grid-template-columns: 1fr;
    }

    #elbob-main .eb-header-main h2 {
        font-size: 1.5em;
    }
}
