:root {
    --brand-500: #0080ff;
    --blue-l-40: #d6ecfd;
    --blue-300: #829fd2;

    --btn-stat-green-text: #00a85c;
    --btn-stat-green-bg: #e6f5ea;
    --btn-stat-green-border: #00a85c;
}

.badge-new,
.badge-beta,
.badge-map,
.badge-local-pack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
    cursor: default;
    white-space: nowrap;
}

.badge-new {
    align-items: flex-end;
    color: var(--nightShade);
    background: var(--light-emerald);
}

.badge-beta {
    margin-left: 8px;
    color: var(--nightShade);
    background: var(--light-amber);
}

.badge-map {
    color: var(--btn-stat-green-text);
    background: var(--btn-stat-green-bg);
    border: 1px solid var(--btn-stat-green-border);
    border-radius: 9999px;
    height: 16px;
    align-items: flex-end;
}

.badge-local-pack {
    color: var(--brand-500);
    background: var(--blue-l-40);
    border: 1px solid var(--blue-300);
    border-radius: 9999px;
    height: 16px;
}

.serp-device-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: default;
}

/* Mobile icon + Map/Local Pack chip — same row (edit, scan results, share) */
.heatmap-header-badge-row,
.business-header__badge-row,
.businessDetailsBadgeRow {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.business-header__serp-device-badge,
.businessDetailsSerpDeviceBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.business-header__serp-device-badge:empty,
.businessDetailsSerpDeviceBadge:empty {
    display: none;
}

.heatmap-header-badge-row .badge-map,
.heatmap-header-badge-row .badge-local-pack,
.business-header__badge-row .badge-map,
.business-header__badge-row .badge-local-pack,
.businessDetailsBadgeRow .badge-map,
.businessDetailsBadgeRow .badge-local-pack {
    align-items: center;
}

.businessDetailsBadge,
.business-header__badge {
    display: inline-flex;
    align-items: center;
}

.serp-device-mobile-icon img {
    display: block;
    width: 18px;
    height: auto;
    opacity: 0.9;
}
