.blognavi-weather-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: inherit;
    line-height: 1.2;
    outline: none;
}

.blognavi-weather-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.blognavi-weather-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 19px;
    line-height: 1;
}

.blognavi-weather-temp {
    font-size: 13px;
    font-weight: 700;
}

.blognavi-weather-city {
    max-width: 86px;
    overflow: hidden;
    color: var(--muted-color2);
    font-size: 12px;
    text-overflow: ellipsis;
}

.blognavi-weather-detail {
    visibility: hidden;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    min-width: 178px;
    padding: 10px 12px;
    border: 1px solid var(--muted-bg-color);
    border-radius: 10px;
    color: var(--main-color);
    background: var(--main-bg-color);
    box-shadow: 0 8px 24px var(--main-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.blognavi-weather-widget:hover .blognavi-weather-detail,
.blognavi-weather-widget:focus .blognavi-weather-detail,
.blognavi-weather-widget:focus-within .blognavi-weather-detail {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.blognavi-weather-detail strong,
.blognavi-weather-detail span,
.blognavi-weather-detail small {
    display: block;
}

.blognavi-weather-detail span {
    margin-top: 4px;
    color: var(--muted-color2);
    font-size: 12px;
}

.blognavi-weather-detail small {
    margin-top: 7px;
    color: var(--muted-color);
    font-size: 10px;
}

.btn-weather .blognavi-weather-widget {
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    color: #fff;
}

.btn-weather .blognavi-weather-city {
    display: none;
}

.btn-weather .blognavi-weather-icon {
    font-size: 20px;
}

.btn-weather .blognavi-weather-temp {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 27px;
    padding: 2px 4px;
    border-radius: 9px;
    color: #fff;
    background: #d30b0b;
    font-size: 10px;
    line-height: 1.35;
}

.btn-weather .blognavi-weather-detail {
    top: auto;
    right: 50px;
    bottom: 0;
    left: auto;
    text-align: left;
}

.blognavi-weather-loading .blognavi-weather-icon {
    animation: blognavi-weather-pulse 1.1s ease-in-out infinite;
}

@keyframes blognavi-weather-pulse {
    50% { opacity: .45; transform: scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
    .blognavi-weather-loading .blognavi-weather-icon {
        animation: none;
    }
}
