.bss-meteoswiss-widget {
    --meteo-font-family: var(--bss-setTextFont, "Open Sans", sans-serif);
    --meteo-text-color: var(--bss-text-color, #000);
    --meteo-muted-color: rgba(0, 0, 0, 0.62);
    --meteo-border-color: #d8d8d8;
    --meteo-panel-color: rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
    background: #ffffff;
    color: var(--meteo-text-color);
    font-family: var(--meteo-font-family);
    font-size: 16px;
    line-height: 1.45;
    padding: 24px 28px;
    border-radius: 0;
    border: 1px solid var(--meteo-border-color);
    box-sizing: border-box;
}

.bss-meteoswiss-widget.bss-has-custom-colors {
}

.meteo-header-line {
    font-size: 0.9375rem;
    color: var(--meteo-text-color);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 14px;
}

.station-name {
    font-weight: 600;
}

.station-canton,
.station-altitude,
.station-coords,
.station-time,
.station-license {
    color: var(--meteo-muted-color);
    font-size: 0.8125rem;
}

.nowcast-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 10px 0;
    align-items: flex-start;
}
.nowcast-symbol {
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.compact-icon-temp {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-icon {
    width: 112px;
    height: 112px;
    display: block;
}

.compact-temp {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}

.nowcast-time-line {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
}

.nowcast-time-line span[data-bss-role="now-time"] {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.compact-desc {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: inherit;
    opacity: 0.9;
    line-height: 1.3;
    max-width: 260px;
    font-weight: 600;
}
.nowcast-params {
    grid-column: 4 / span 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    margin-left: 50px;
}
.nowcast-param-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nowcast-param-label {
    flex: 1 1 auto;
    line-height: 1.3;
    opacity: 0.9;
}

.nowcast-param-value {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nowcast-cards {
    grid-column: 7 / span 6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.nowcast-cards-compact {
    grid-template-columns: minmax(240px, 320px);
    justify-content: end;
}

.nowcast-cards-compact .forecast-card {
    min-height: 100%;
}

.mw-full-forecast {
    border-top: 1px solid var(--meteo-border-color);
    margin-top: 20px;
}

.mw-full-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
}

.mw-full-sidebar {
    border: 1px solid var(--meteo-border-color);
    background: #fff;
    padding: 14px;
}

.mw-full-sidebar-title {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-bottom: 12px;
}

.mw-full-params {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nowcast-cards-full {
    grid-column: auto;
}

.forecast-card {
    border-radius: 0;
    border: 1px solid var(--meteo-border-color);
    padding: 14px;
    background: var(--meteo-panel-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forecast-card-header {
    font-size: 0.8125rem;
    color: inherit;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.forecast-card-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forecast-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.forecast-card-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.forecast-temp,
.forecast-temp-range {
    font-weight: 600;
    color: inherit;
}

.forecast-precip {
    font-size: 12px;
    color: inherit;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .nowcast-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .nowcast-symbol {
        grid-column: 1 / span 4;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .compact-desc {
        max-width: none;
    }

    .nowcast-params {
        grid-column: 1 / span 4;
    }

    .nowcast-cards {
        grid-column: 1 / span 4;
        grid-template-columns: 1fr;
    }

    .nowcast-cards-compact {
        justify-content: stretch;
    }

    .mw-full-layout {
        grid-template-columns: 1fr;
    }
}
.mw-full-hidden {
    display: none;
}

.forecast-symbol-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0 12px 0;
}

.forecast-icon-large {
    width: 44px;
    height: 44px;
}

.forecast-symbol-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forecast-symbol-temp {
    font-size: 1.25rem;
    font-weight: 600;
}

.forecast-symbol-desc {
    font-size: 0.9375rem;
    opacity: 0.9;
    color: inherit;
}


.forecast-param-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.forecast-param-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.35;
    min-width: 0;
}

.forecast-param-label {
    flex: 1 1 auto;
    min-width: 0;
    opacity: 0.85;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.forecast-param-value {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    padding-left: 4px;
}

.mw-toggle-full {
    margin-left: auto;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 16px;
    min-width: 150px;

    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    background: #fff;
    border: 1px solid var(--meteo-text-color);
    border-radius: 0;
    cursor: pointer;

    color: var(--meteo-text-color);
    box-shadow: none;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.mw-toggle-full::after {
    content: "▾";
    font-size: 11px;
    line-height: 1;
}

.mw-toggle-full:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.mw-toggle-full:active {
    transform: translateY(0);
    opacity: 0.85;
}

.meteo-full-inner {
    padding: 24px 0;
}

.full-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

.full-weather-strip {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.full-weather-strip .day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.full-weather-strip img {
    width: 36px;
    height: 36px;
}

.full-weather-strip .date {
    font-size: 12px;
    opacity: 0.7;
}

.full-weather-strip .desc {
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.2;
}

/* GRAPH */
.full-graph-area {
    width: 100%;
    margin-bottom: 28px;
}

#full-graph-canvas {
    width: 100%;
    height: 380px;
    display: block;
}


.full-back-btn {
    border: none;
    background: #1976d2;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-topicLinkElement {
    background-color: #fff;
    color: var(--bss-main-color);
    border-color: var(--bss-main-color);
    border-width: 1px;
    border-radius: 0px;
    margin-right: 10px;
    margin-bottom: 14px;
}
.bss-flip-gallery {
    display: grid;
    gap: 10px;
    padding: 10px;
    background-color: var(--flip-gallery-bg);
}

.bss-flip-gallery.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.bss-flip-gallery.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.bss-flip-gallery.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.bss-flip-gallery.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.bss-flip-card {
    perspective: 1000px;
}

.bss-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.bss-flip-card:hover .bss-flip-card-inner {
    transform: rotateY(180deg);
}

.bss-flip-card-front,
.bss-flip-card-back {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0px;
    overflow: hidden;
    backface-visibility: hidden;
    /*box-shadow: 0 2px 6px #676767;*/
}

.bss-flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bss-flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--flipbox-bg, #fff);
    color: #383838;
    transform: rotateY(180deg);
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
}

.bss-flip-card-back h3 {
    margin-top: 0;
    color: var(--flipbox-text-color, #676767);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.bss-flip-card-back p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.bss-flip-card-back a {
    color: #676767;
    text-decoration: none;
}

.bss-flip-card-back a:hover {
    text-decoration: underline;
}
