/* =============================================================================
   TECSON Heizölpreise Manager — Elementor Widget Styles
   Layout structure only — colors and typography are controlled via Elementor
   ============================================================================= */

/* --- Chart Widget --- */
.topm-chart-card {
    overflow: hidden;
    /* Background, border, shadow injected by Elementor */
}

.topm-chart-header {
    /* Padding, background injected by Elementor */
}

.topm-chart-title {
    margin: 0 0 4px;
    line-height: 1.3;
}

.topm-chart-subtitle {
    margin: 0;
}

.topm-chart-body {
    padding: 20px;
}

.topm-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    /* Gap injected by Elementor */
}

.topm-avg-label {
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    color: #64748b; /* Fallback */
}

.topm-avg-btn {
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    /* Padding, border-radius, colors injected by Elementor */
}

.topm-chart-plot-area {
    position: relative;
    /* Background injected by Elementor */
}

.topm-infobox {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 20px;
    left: 80px;
    padding: 12px 16px;
    z-index: 10;
    /* Colors, border, shadow injected by Elementor */
}

.topm-infobox-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.topm-infobox-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.topm-infobox-price {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.topm-infobox-unit {
    font-size: 11px;
}

.topm-chart-credits {
    margin: 16px 0 0;
    font-size: 11px;
    text-align: right;
}

/* --- Current Price Widget --- */
.topm-current-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding, bg, radius, shadow injected by Elementor */
}

.topm-current-price-inner {
    /* text-align injected by Elementor */
}

.topm-current-price-value {
    display: block;
    font-weight: 800;
    line-height: 1.1;
    /* font-size, margin-bottom, color injected by Elementor */
}

.topm-current-price-unit {
    font-size: 0.4em;
    font-weight: 400;
    opacity: 0.7;
}

.topm-current-price-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* --- Comparison Card Widget --- */
.topm-comparison-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding, bg, radius, shadow, border-left injected by Elementor */
}

.topm-comparison-row {
    display: flex;
    align-items: center;
    /* gap, margin-bottom injected by Elementor */
}

.topm-comparison-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size, color injected by Elementor */
}

.topm-comparison-value {
    font-weight: 700;
    line-height: 1.2;
}

.topm-comparison-label {
    /* typography, color injected by Elementor */
}

.topm-comparison-compare-date {
    opacity: 0.7;
    margin-left: 4px;
}

/* --- Header Ticker Widget --- */
.topm-header-ticker {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    line-height: 1.3;
}

.topm-ht-dot-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
}

.topm-ht-dot {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #00FF9D;
}

.topm-ht-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #00FF9D;
    opacity: 0.6;
    animation: topm-ht-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes topm-ht-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.topm-ht-label {
    white-space: nowrap;
}

.topm-ht-price {
    font-weight: 700;
    white-space: nowrap;
}

.topm-ht-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.topm-ht-trend-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.topm-ht-date {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .topm-ht-hide-sm {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .topm-ht-hide-md {
        display: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .topm-chart-body {
        padding: 12px;
    }
    .topm-infobox {
        position: static;
        margin-bottom: 16px;
        align-items: center;
        text-align: center;
    }
}
