.coverit-weather-shell {
    position: relative; display: inline-flex; flex: 0 0 auto; max-width: 176px; align-self: stretch; border-inline-start: 1px solid var(--coverit-border);
}
.coverit-weather-shell[hidden], .coverit-weather-shell [hidden] { display: none !important; }
.coverit-weather-shell button, .coverit-weather-shell input { font: inherit; border-radius: 0; }
.coverit-weather-shell .coverit-weather__trigger {
    display: flex; width: 100%; height: 100%; min-height: 44px; padding: 12px 32px; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--coverit-text); cursor: pointer; transition: background-color var(--coverit-hover-duration);
}
.coverit-weather-shell .coverit-weather__trigger:hover, .coverit-weather-shell .coverit-weather__trigger:focus-visible,
.coverit-weather-shell .coverit-weather__trigger[aria-expanded="true"] { background: var(--coverit-active-surface); }
/* Open state: accent bar on the cell's bottom edge, flush with the panel's accent top edge. */
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__trigger[aria-expanded="true"] { background-image: linear-gradient(var(--coverit-accent), var(--coverit-accent)); background-position: bottom; background-size: 100% 2px; background-repeat: no-repeat; }
.coverit-weather-shell .coverit-weather__trigger:focus-visible { outline: 2px solid var(--coverit-accent); outline-offset: -4px; }
.coverit-weather { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; max-width: 160px; font: 400 16px/1.1 Montserrat, sans-serif; white-space: nowrap; }
.coverit-weather__primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.coverit-weather__icon svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.coverit-weather__icon { color: var(--coverit-muted); }
.coverit-weather__temperatur { color: var(--coverit-text); font-variant-numeric: tabular-nums; }
.coverit-weather__temperatur, .coverit-weather__empty { font-weight: 600; line-height: 1.1; }
.coverit-weather__temperatur { font-size: 20px; }
.coverit-weather__ort, .coverit-weather__empty { max-width: 144px; }
.coverit-weather__ort { overflow: hidden; font-size: 13px; color: var(--coverit-copy); text-overflow: ellipsis; white-space: nowrap; }
.coverit-weather__empty { overflow-wrap: anywhere; hyphens: auto; display: block; font-size: 15px; text-align: center; white-space: normal; }
.coverit-weather-shell .coverit-weather__trigger:is(:hover, :focus-visible, [aria-expanded="true"]) .coverit-weather__empty { color: var(--coverit-accent); }
[data-weather-state="locating"] .coverit-weather__trigger { cursor: progress; }
/* Panel hangs from the header's bottom line: flat dark surface, 1 px line, 2 px accent top edge, no shadow, no radius. */
.coverit-weather__panel {
    position: absolute; z-index: 5; top: 100%; right: 0; display: flex; flex-direction: column; gap: 12px; width: min(336px, 100vw); max-height: calc(100vh - var(--coverit-header-height));
    overflow: auto; padding: 20px; border: 1px solid var(--coverit-line); border-top: 2px solid var(--coverit-accent); background: var(--coverit-background); color: var(--coverit-text);
    font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5;
}
.coverit-weather__panel p, .coverit-weather__panel form { margin: 0; }
.coverit-weather__panel [data-weather-prompt] { color: var(--coverit-copy); font-size: 15px; }
.coverit-weather__panel form { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--coverit-border); }
.coverit-weather__panel label, .coverit-weather__panel label span { display: block; }
.coverit-weather__panel label span { font-size: 14px; font-weight: 600; }
.coverit-weather__panel input { box-sizing: border-box; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--coverit-unavailable); background: var(--coverit-search-surface); color: var(--coverit-background); }
.coverit-weather__panel input::placeholder { color: color-mix(in srgb, var(--coverit-background) 70%, var(--coverit-search-surface)); opacity: 1; }
.coverit-weather-shell .coverit-weather__panel button { margin: 0; padding: 12px; border: 1px solid var(--coverit-text); background: transparent; color: var(--coverit-text); cursor: pointer; }
.coverit-weather-shell .coverit-weather__panel button:hover, .coverit-weather-shell .coverit-weather__panel button:focus-visible { background: var(--coverit-active-surface); border-color: var(--coverit-accent); color: var(--coverit-accent); }
.coverit-weather-shell .coverit-weather__panel button:disabled { border-color: var(--coverit-unavailable); background: transparent; color: var(--coverit-unavailable); cursor: wait; }
/* Header panel buttons follow the site buttons: full width, 48 px, primary orange, secondary with accent or border line. */
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel button { width: 100%; min-height: 48px; padding: 12px 16px; border-color: var(--coverit-accent); color: var(--coverit-accent); font-weight: 600; line-height: 1.25; text-align: center; transition: background-color var(--coverit-hover-duration), color var(--coverit-hover-duration), border-color var(--coverit-hover-duration); }
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel [data-weather-locate] { background: var(--coverit-accent); color: var(--coverit-background); }
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel [data-weather-locate]:is(:hover, :focus-visible) { background: transparent; color: var(--coverit-accent); }
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel :is([data-weather-delete], [data-weather-close]) { border-color: var(--coverit-border); color: var(--coverit-muted); font-weight: 400; }
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel :is([data-weather-delete], [data-weather-close]):is(:hover, :focus-visible) { border-color: var(--coverit-text); background: transparent; color: var(--coverit-text); }
.coverit-weather-shell:not(.coverit-weather-shell--console) .coverit-weather__panel button:disabled { border-color: var(--coverit-unavailable); background: transparent; color: var(--coverit-unavailable); }
.coverit-weather__panel a, .coverit-weather__status { color: var(--coverit-accent); }
.coverit-weather__status { font-size: 14px; font-weight: 600; }
.coverit-weather__status:empty { display: none; }
[data-weather-state="error"] .coverit-weather__status { color: var(--coverit-invalid); }
.coverit-weather__attribution { padding-top: 12px; border-top: 1px solid var(--coverit-border); font-size: 12px; line-height: 1.6; color: var(--coverit-muted); }
.coverit-weather__panel .coverit-weather__attribution a { color: var(--coverit-muted); text-underline-offset: 2px; }
.coverit-weather__panel .coverit-weather__attribution a:hover { color: var(--coverit-accent); }
.coverit-weather-shell button:focus-visible, .coverit-weather-shell input:focus-visible, .coverit-weather__panel a:focus-visible { outline: 2px solid var(--coverit-accent); outline-offset: 2px; }
.coverit-weather-shell input:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) {
    .coverit-weather-shell .coverit-weather__trigger, .coverit-weather-shell .coverit-weather__panel button { transition: none; }
}
@media (max-width: 1024px) {
    .coverit-weather { max-width: 128px; }
    .coverit-weather__primary { gap: 6px; }
    .coverit-weather__icon svg { width: 26px; height: 26px; }
    .coverit-weather__temperatur { font-size: 18px; }
    .coverit-weather__ort, .coverit-weather__empty { max-width: 120px; }
    .coverit-weather__ort { font-size: 13px; }
    .coverit-weather-shell .coverit-weather__trigger { padding-block: 10px; }
    .coverit-weather__panel { position: fixed; top: var(--coverit-header-height); right: var(--coverit-gutter); width: min(336px, calc(100vw - 2 * var(--coverit-gutter))); max-height: calc(100vh - var(--coverit-header-height) - 16px); }
}
/* Phones: compact cell with icon over temperature; without data a weather symbol, messages stay in the panel status. */
@media (max-width: 767px) {
    .coverit-weather-shell { flex: 0 0 var(--header-weather-width, 52px); width: var(--header-weather-width, 52px); max-width: none; }
    .coverit-weather-shell .coverit-weather__trigger { padding: 4px 0; }
    .coverit-weather { gap: 2px; max-width: 100%; }
    .coverit-weather__primary { flex-direction: column; gap: 2px; }
    .coverit-weather__icon svg { width: 22px; height: 22px; }
    .coverit-weather__temperatur { font-size: 14px; }
    .coverit-weather__ort, .coverit-weather__empty { display: none; }
    .coverit-weather--leer::before { content: ""; width: 26px; height: 21px; background: var(--coverit-muted); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M575.2 325.7c.2-1.9.8-3.7.8-5.6 0-35.3-28.7-64-64-64-12.6 0-24.2 3.8-34.1 10-17.6-38.8-56.5-66-101.9-66-61.8 0-112 50.1-112 112 0 3 .7 5.8.9 8.7-49.6 3.7-88.9 44.7-88.9 95.3 0 53 43 96 96 96h272c53 0 96-43 96-96 0-42.1-27.2-77.4-64.8-90.4zm-430.4-22.6c-43.7-43.7-43.7-114.7 0-158.3 43.7-43.7 114.7-43.7 158.4 0 9.7 9.7 16.9 20.9 22.3 32.7 9.8-3.7 20.1-6 30.7-7.5L386 81.1c4-11.9-7.3-23.1-19.2-19.2L279 91.2 237.5 8.4C232-2.8 216-2.8 210.4 8.4L169 91.2 81.1 61.9C69.3 58 58 69.3 61.9 81.1l29.3 87.8-82.8 41.5c-11.2 5.6-11.2 21.5 0 27.1l82.8 41.4-29.3 87.8c-4 11.9 7.3 23.1 19.2 19.2l76.1-25.3c6.1-12.4 14-23.7 23.6-33.5-13.1-5.4-25.4-13.4-36-24zm-4.8-79.2c0 40.8 29.3 74.8 67.9 82.3 8-4.7 16.3-8.8 25.2-11.7 5.4-44.3 31-82.5 67.4-105C287.3 160.4 258 140 224 140c-46.3 0-84 37.6-84 83.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
    /* Phones: the panel spans the full width directly under the header row. */
    .coverit-weather__panel { top: var(--header-row-height, 56px); right: 0; width: 100vw; max-height: calc(100vh - var(--header-row-height, 56px)); padding: 16px var(--coverit-gutter) 20px; border-inline: 0; }
}
