#wr-flight-panel {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px 10px 14px;
    margin: 0;
    background: #f4f4f4;
    color: #333;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    border-bottom:
        1px solid #ccc;
}

.wrfp-head {
    display: grid;
    grid-template-columns:
        1fr 54px 1fr;
    align-items: center;
    text-align: center;
}

.wrfp-airport {
    min-width: 0;
}

.wrfp-code {
    font-size: 34px;
    line-height: 38px;
    font-weight: 500;
}

.wrfp-city {
    margin-top: 2px;
    font-size: 13px;
    line-height: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrfp-plane {
    font-size: 30px;
    color: #e3ae21;
    transform: rotate(0deg);
}

.wrfp-times {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    margin-top: 11px;
    border-top:
        1px solid #d0d0d0;
    border-bottom:
        1px solid #d0d0d0;
}

.wrfp-times > div {
    display: flex;
    align-items: center;
    justify-content:
        space-between;
    padding: 7px 5px;
}

.wrfp-times > div:first-child {
    border-right:
        1px solid #d0d0d0;
}

.wrfp-times span {
    font-size: 11px;
    color: #666;
}

.wrfp-times b {
    font-size: 15px;
    font-weight: 600;
}

.wrfp-progress {
    position: relative;
    height: 25px;
    margin:
        10px 3px 0 3px;
}

.wrfp-progress::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 11px;
    height: 5px;
    border-radius: 4px;
    background: #d9d9d9;
}

.wrfp-progress-fill {
    position: absolute;
    left: 0;
    top: 11px;
    height: 5px;
    width: 0%;
    border-radius: 4px;
    background: #efb51d;
}

.wrfp-progress-plane {
    position: absolute;
    top: -2px;
    left: 0%;
    transform:
        translateX(-50%);
    font-size: 25px;
    line-height: 25px;
    color: #555;
    transition:
        left 0.5s linear;
}

.wrfp-distance {
    display: grid;
    grid-template-columns:
        1fr auto 1fr;
    gap: 5px;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.wrfp-distance span:last-child {
    text-align: right;
}

.wrfp-callsign {
    padding:
        2px 5px;
    border-radius: 3px;
    background: #ddd;
    color: #333;
    font-weight: 600;
}

.wrfp-source {
    margin-top: 5px;
    text-align: center;
    color: #888;
    font-size: 9px;
}

@media (max-width: 600px) {
    .wrfp-code {
        font-size: 28px;
    }

    .wrfp-city {
        font-size: 11px;
    }

    #wr-flight-panel {
        padding:
            10px 8px 8px 8px;
    }
}

/* ===== WORLDRADAR FLIGHT PANEL COMPACT ===== */

#wr-flight-panel {
    width: 100%;
    max-width: 100%;
    padding: 8px 7px 7px 7px;
    overflow: hidden;
    box-sizing: border-box;
}

.wrfp-head {
    grid-template-columns:
        minmax(0, 1fr)
        36px
        minmax(0, 1fr);
    gap: 2px;
}

.wrfp-airport {
    min-width: 0;
    overflow: hidden;
}

.wrfp-code {
    font-size: 27px;
    line-height: 30px;
    white-space: nowrap;
}

.wrfp-city {
    font-size: 10px;
    line-height: 13px;
    margin-top: 1px;
}

.wrfp-plane {
    font-size: 22px;
    line-height: 24px;
}

.wrfp-times {
    margin-top: 7px;
}

.wrfp-times > div {
    padding: 5px 3px;
    min-width: 0;
}

.wrfp-times span {
    font-size: 9px;
}

.wrfp-times b {
    font-size: 13px;
    line-height: 14px;
}

.wrfp-progress {
    height: 21px;
    margin: 7px 5px 0 5px;
}

.wrfp-progress::before,
.wrfp-progress-fill {
    top: 9px;
    height: 4px;
}

.wrfp-progress-plane {
    top: -3px;
    font-size: 21px;
    line-height: 21px;
}

.wrfp-distance {
    grid-template-columns:
        minmax(0,1fr)
        auto
        minmax(0,1fr);
    gap: 3px;
    font-size: 9px;
    line-height: 11px;
}

.wrfp-callsign {
    font-size: 9px;
    padding: 2px 4px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrfp-source {
    margin-top: 4px;
    font-size: 8px;
}
