/* Cloudflare Public Visitor Stats. Loaded only when the shortcode is used. */
.cfvs-stats {
    margin: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cfvs-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.cfvs-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.cfvs-card-label,
.cfvs-card-value {
    display: block;
}

.cfvs-card-label {
    margin-bottom: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cfvs-card-value {
    color: #1d2327;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.cfvs-last-updated {
    margin: 10px 0 0;
    color: #777;
    font-size: 12px;
}

.cfvs-unavailable {
    padding: 14px 16px;
    color: #666;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

/* Detailed view only. */
.cfvs-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cfvs-tab-buttons {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: #f0f0f1;
    border-radius: 6px;
}

.cfvs-tab {
    padding: 6px 11px;
    color: #50575e;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.cfvs-tab:hover,
.cfvs-tab:focus {
    color: #1d2327;
}

.cfvs-tab:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.cfvs-tab-active {
    color: #fff;
    background: #f38020;
}

.cfvs-tab-active:hover,
.cfvs-tab-active:focus {
    color: #fff;
}

.cfvs-range-label {
    color: #777;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cfvs-sparkline {
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 7px;
}

@media (max-width: 480px) {
    .cfvs-tabs {
        align-items: flex-start;
        flex-direction: column;
    }

    .cfvs-card-value {
        font-size: 27px;
    }
}
