.wp-analytics-shortcode-stat {
    font-weight: 600;
    color: #2271b1;
}

.wp-analytics-top-pages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-analytics-top-pages li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wp-analytics-top-pages li:last-child {
    border-bottom: none;
}

.wp-analytics-top-pages a {
    text-decoration: none;
}

.wp-analytics-top-pages .page-count {
    color: #646970;
    font-size: 12px;
}

.wp-analytics-table-sc {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wp-analytics-table-sc th,
.wp-analytics-table-sc td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.wp-analytics-table-sc th {
    font-weight: 600;
    color: #3c434a;
    background: #f6f7f7;
}

.wp-analytics-table-sc tr:last-child td {
    border-bottom: none;
}

/* Compact counter widget ([analytics_counter]) */

:root {
    --wp-analytics-ivory: #fffff0;
    --wp-analytics-coral: #ff7f50;
    --wp-analytics-white: #fff;
    --wp-analytics-space-sm: 8px;
}

.wp-analytics-sc {
    position: relative;
    width: 125px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp-analytics-ivory);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: default;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.wp-analytics-sc:hover {
    transform: translateY(-2px);
}

.wp-analytics-sc .sc-l,
.wp-analytics-sc .sc-r {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wp-analytics-sc .sc-row {
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.wp-analytics-sc .sc-row + .sc-row {
    margin-top: 3px;
}

.wp-analytics-sc .sc-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.8;
}

.wp-analytics-sc .sc-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wp-analytics-sc .sc-num {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.sc-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.sc-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1d2327;
}

.wp-analytics-sc:hover .sc-tooltip {
    opacity: 1;
    visibility: visible;
}

.wp-as-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-as-tip-row:last-child {
    border-bottom: none;
}

.wp-as-tip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.wp-as-tip-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wp-as-tip-label {
    font-weight: 600;
    color: #fff;
}

.wp-as-tip-sub {
    color: #a7aaad;
    font-size: 11px;
    font-weight: 400;
    flex-shrink: 0;
}

.wp-as-tip-num {
    margin-left: auto;
    font-weight: 700;
    color: #f0c040;
}

@media (max-width: 600px) {
    .wp-analytics-sc {
        width: 110px;
        height: 44px;
        padding: 3px 4px;
    }

    .wp-analytics-sc .sc-icon {
        width: 10px;
        height: 10px;
    }

    .wp-analytics-sc .sc-num {
        font-size: 10px;
    }

    .sc-tooltip {
        left: auto;
        right: 0;
        transform: none;
        min-width: 180px;
        max-width: calc(100vw - 20px);
    }

    .sc-tooltip::after {
        left: auto;
        right: 14px;
        transform: none;
    }
}
