/* Fills its container — the page/theme layout controls the actual width */
.suedwest-chart-wrap {
    position: relative;
    width: 100%;
}

#suedwest-stats-bar {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-family: Arial, sans-serif;
}

.suedwest-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 6px;
    padding: 8px 14px;
    box-sizing: border-box;
    width: 100%;
}

.suedwest-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

.suedwest-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-align: right;
}

.suedwest-stat-value.stat-down    { color: #2ecc71; }
.suedwest-stat-value.stat-up      { color: #e74c3c; }
.suedwest-stat-value.stat-neutral { color: #888; }
.suedwest-stat-value.stat-buy     { color: #2ecc71; }
.suedwest-stat-value.stat-watch   { color: #f39c12; }

#suedwest-control-wrapper {
    display: none;
}

/* Base height — overridden by inline CSS injected from settings */
#suedwest-chart-wrapper {
    width: 100%;
    height: 340px;
}

@media (min-width: 768px) {
    #suedwest-chart-wrapper {
        height: 420px;
    }
}

#suedwest-zoom-range {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #999;
    text-align: right;
    padding: 4px 3% 0;
    min-height: 18px;
}

#suedwest-range-selector {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

#suedwest-range-selector li {
    margin: 0;
    padding: 0;
}

#suedwest-range-selector label {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: transparent;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
}

#suedwest-range-selector label input {
    display: none;
}

/* Active + hover states injected as inline CSS from settings */

#suedwest-comparison-selector {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
}

#suedwest-comparison-selector.visible {
    display: flex;
}

.suedwest-compare-label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    white-space: nowrap;
}

.suedwest-compare-reset {
    padding: 5px 14px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: transparent;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    align-self: center;
    transition: border-color 0.15s, color 0.15s;
}

.suedwest-compare-reset:hover {
    border-color: #555;
    color: #333;
}

.suedwest-compare-select {
    padding: 5px 32px 5px 12px;
    margin: 0 !important;
    border-radius: 4px;
    border: 2px solid #ccc;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    align-self: center;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}

#suedwest-cta {
    margin-top: 20px;
    text-align: left;
}

.suedwest-cta-button {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: transparent;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.suedwest-cta-button:hover {
    border-color: #555;
    color: #333;
}


#suedwest-chart-disclaimer {
    margin: 12px 0 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    color: #8a8a8a;
}

#suedwest-delivery-note {
    margin: 12px 0 0;
    padding: 12px 16px;
    border-left: 3px solid #ffcd01;
    background: rgba(255, 205, 1, 0.08);
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
