.ptvs-widget,
.ptvs-widget * {
    box-sizing: border-box;
}

.ptvs-widget {
    --ptvs-accent: #e30613;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    color: #071a3b;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(7, 26, 59, 0.06);
}

.ptvs-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 16px;
}

.ptvs-heading-bar {
    width: 4px;
    height: 28px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--ptvs-accent);
}

.ptvs-heading h2 {
    margin: 0;
    padding: 0;
    color: #071a3b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.ptvs-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.ptvs-tab {
    appearance: none;
    border: 1px solid #dce4ef;
    background: #f5f7fa;
    color: #38506f;
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ptvs-tab:hover,
.ptvs-tab:focus-visible {
    border-color: var(--ptvs-accent);
    outline: none;
}

.ptvs-tab.is-active {
    color: #fff;
    border-color: var(--ptvs-accent);
    background: var(--ptvs-accent);
}

.ptvs-panel-content[hidden] {
    display: none !important;
}

.ptvs-current {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.ptvs-current-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--ptvs-accent);
    background: color-mix(in srgb, var(--ptvs-accent) 9%, white);
    border-radius: 15px;
}

.ptvs-current-icon svg {
    width: 46px;
    height: 46px;
}

.ptvs-current-main {
    min-width: 0;
}

.ptvs-city-name {
    margin-bottom: 1px;
    overflow: hidden;
    color: #071a3b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptvs-temperature {
    color: #071a3b;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -1.5px;
    line-height: 1;
}

.ptvs-temperature span {
    margin-left: 1px;
    font-size: 17px;
    font-weight: 800;
    vertical-align: top;
}

.ptvs-condition {
    margin-top: 4px;
    color: #51647e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.ptvs-today-range {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #51647e;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ptvs-today-range .ptvs-max {
    color: #cf2f32;
}

.ptvs-today-range .ptvs-min {
    color: #2572b8;
}

.ptvs-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7fa;
    color: #51647e;
    font-size: 11px;
    line-height: 1.3;
}

.ptvs-details strong {
    color: #203b60;
}

.ptvs-days {
    display: grid;
    grid-auto-columns: minmax(74px, 1fr);
    grid-auto-flow: column;
    gap: 7px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.ptvs-day {
    min-width: 74px;
    padding: 9px 6px;
    border: 1px solid #e5eaf1;
    border-radius: 11px;
    background: #fff;
    text-align: center;
}

.ptvs-day-name {
    color: #334c6c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
}

.ptvs-day-icon {
    width: 30px;
    height: 30px;
    margin: 4px auto;
    color: var(--ptvs-accent);
}

.ptvs-day-icon svg {
    width: 30px;
    height: 30px;
}

.ptvs-day-range {
    color: #5d6d82;
    font-size: 11px;
    line-height: 1.15;
}

.ptvs-day-range strong {
    color: #cf2f32;
}

.ptvs-day-range span {
    color: #2572b8;
}

.ptvs-rain {
    min-height: 12px;
    margin-top: 4px;
    color: #54718f;
    font-size: 9px;
    line-height: 1.15;
}

.ptvs-updated {
    margin-top: 8px;
    color: #8b98a9;
    font-size: 9px;
    text-align: right;
}

.ptvs-credit {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
    color: #8793a2;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

.ptvs-credit a {
    color: #68788c;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ptvs-error,
.ptvs-admin-front-notice {
    padding: 12px;
    border-left: 4px solid var(--ptvs-accent, #e30613);
    border-radius: 7px;
    background: #f7f8fa;
    color: #415673;
    font-size: 13px;
    line-height: 1.45;
}

.ptvs-layout-cards {
    padding: 24px;
}

.ptvs-layout-cards .ptvs-panels {
    min-width: 0;
}

.ptvs-layout-cards .ptvs-current {
    grid-template-columns: 76px minmax(0, 1fr) auto;
}

.ptvs-layout-cards .ptvs-current-icon {
    width: 76px;
    height: 76px;
}

.ptvs-layout-cards .ptvs-current-icon svg {
    width: 56px;
    height: 56px;
}

.ptvs-layout-cards .ptvs-days {
    grid-auto-columns: minmax(95px, 1fr);
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .ptvs-current-icon {
        background: #f7f2f3;
    }
}

@media (max-width: 380px) {
    .ptvs-widget {
        padding: 17px;
    }

    .ptvs-heading h2 {
        font-size: 18px;
    }

    .ptvs-current {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .ptvs-current-icon {
        width: 54px;
        height: 54px;
    }

    .ptvs-current-icon svg {
        width: 40px;
        height: 40px;
    }

    .ptvs-today-range {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
}
